Bug 133181 - Navigation to funciton implementation of nestet classes in C++ does not work properly
Summary: Navigation to funciton implementation of nestet classes in C++ does not work ...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-29 14:12 UTC by Christian Schneider
Modified: 2013-03-31 00:45 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 Christian Schneider 2006-08-29 14:12:01 UTC
Version:           3.3.92 (using KDE 3.5.4, compiled sources)
Compiler:          gcc version 3.4.4
OS:                Linux (x86_64) release 2.6.16.22

The following legal class declarations is not parsed correctely. Clicking on the constructor of class Foo::Bar in the class tree will only bring you to the declaration of the function, but not the implementation. The split header/implementation-view also suffers from this problem and the declaration and implementation are not synchronized.

// Declaration
class Foo
{
	class Bar;

	Foo();
	~Foo();
};

class Foo::Bar
{
	Bar();
	~Bar();
};

// Implementation
Foo::Foo(){}
Foo::~Foo(){}

Foo::Bar::Bar(){}
Foo::Bar::~Bar(){}
Comment 1 Jens Dagerbo 2007-01-02 05:15:04 UTC
Confirmed.
Comment 2 David Nolden 2007-01-20 21:47:26 UTC
This is funny, because it works perfectly when the declaration of Foo and Foo::Bar are placed within different files(Which is much more complex and I've put a lot of work into making that work). I'll look at it. :)
Comment 3 David Nolden 2007-01-20 22:13:07 UTC
Fixed in current svn
Comment 4 Aleix Pol 2013-03-31 00:45:37 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