Bug 31838 - Class parser need explicit namespace
Summary: Class parser need explicit namespace
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 2.0
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-30 10:48 UTC by pfrancq
Modified: 2013-03-31 00:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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