[Bug 68463] New: C++ autocompletion wrong when several classes with same names in different namespaces

shift at newmail.ru shift at newmail.ru
Tue Nov 18 00:13:04 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=68463     
           Summary: C++ autocompletion wrong when several classes with same
                    names in different namespaces
           Product: kdevelop
           Version: 3.0.0b1
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: shift at newmail.ru


Version:           3.0.0b1 (using KDE 3.1.93 (CVS >= 20031111), SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-99-default

when i have two classes with same names in different namespaces, that 
when i expect hints of methods/fields list for an object of either of the classes, 
i see hints only for the class from the first namespace only. 

in other words: 
image the following C++ project: 

in file file2.cpp 
i have namespace called "secondary_space", and have class "Foo" inside it. 
in file file1.cpp 
i have namespace called "primary_space", and have class "Foo" inside it. 

then, in file file3.cpp, 
i type: 

namespace primary_space {
 void test() { 
 Foo obj1;
 obj.
}
};

OK. when i typed "obj.", i see the list of secondary_space::Foo class instead of primary. 
(or, if didnot work, try vice-versa -- namespace as secondary_space, and you will see hints for primary_space::Foo -- it depends)




More information about the KDevelop-devel mailing list