Bug 60044

Summary: Classes with same name confuses gideon
Product: [Developer tools] kdevplatform Reporter: Robert Jonsson <rj>
Component: classbrowserAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Robert Jonsson 2003-06-19 09:46:28 UTC
Version:           cvs (using KDE KDE 3.1)
Installed from:    Mandrake RPMs

I've got a C++ project that I'm trying to edit with Gideon. In one of the subdirs there are some classes that have the _same_ class name but are different classes and are declared in different files. 
Gideon gets really confused over these classes. Only one of them is visible in the Class tree, clicking on it the header for one of the classes get opened. If I instead expand the class view and click on one of the methods the implementation for the OTHER class is shown :)
Comment 1 Robert Jonsson 2003-06-19 12:24:47 UTC
Some more info. 
 
I discovered that clicking on a method sends you to the "right" file. Thing is 
that the methods from both classes are listed, so depending on which method I 
click on different files are opened/viewed. 
 
Comment 2 Thiago Macieira 2003-06-19 12:40:45 UTC
C++ classes are global, which means you can't have two classes with the same 
name that are non-trivial (i.e., implement anything virtual). 
Comment 3 Robert Jonsson 2003-06-19 12:47:01 UTC
Yes, sure, and it may be wrong to go by the name of the file to discover the 
true relationship. 
Comment 4 Jens Dagerbo 2003-09-01 04:38:10 UTC
I believe this is more or less fixed now, with Roberto's new classbrowser. Can
anyone confirm?
Comment 5 Mario Scalas 2003-09-01 16:04:31 UTC
Confirmed that the problem is  closed: we have two classes (and some more too ;-) 
which have the same name in parts/cvs and parts/cvsservice (CvsPart). They are 
both displayed belonging to the right subproject. 
Comment 6 Robert Jonsson 2003-09-10 18:40:10 UTC
It's working now as far as I can tell. Great! 
Comment 7 Aleix Pol 2013-03-31 01:31:46 UTC
moving to kdevplatform's classbrowser