Bug 31838

Summary: Class parser need explicit namespace
Product: [Applications] kdevelop Reporter: pfrancq
Component: Language Support: CPP (old)Assignee: KDevelop-Devel List <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 2.0   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description pfrancq 2001-08-30 10:44:24 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kdevelop
Version:           2.0 (using KDE 2.2.0 )
Severity:          wishlist
Installed from:    Linux-Mandrake 8.0 (Traktopel) - Unsupported
Compiler:          gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)
OS:                Linux (i686) release 2.4.3-20mdksmp
OS/Compiler notes: 

When classes are declared in a namespace the namespace must be given to make the methods' declaration accessible from the class parser.

Ex.:
// c.h
namespace n
{
  class c
  {
     c(void);
  }
}

// c.pp
#include <c.h>
using namespace n;
n::c::c(void)
{
}

The "n::" part of the declaration has to be specify to make the class parser find the declaration but because a "using namespace instruction has been added" it is not necessary (and it makes the code less readable).

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Andreas Koepfle 2003-10-20 02:54:44 UTC
This is problem is no longer present in cvs HEAD. Closing.
Comment 2 Aleix Pol 2013-03-31 00:46:09 UTC
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively