[Bug 58502] code completion doesn't work with namespace

Unai Uribarri unaiur at yahoo.es
Sun Nov 30 02:54:02 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=58502     




------- Additional Comments From unaiur at yahoo.es  2003-11-30 02:24 -------
Kdevelop 3.0beta1 doesn't handles "using namespace" correctly.

a) When the project defines two or more classes with the same name in different namespaces, kdevelop completes from  a randomly chosen class that match the class name, whenever its namespace is in use or not (with "use namespace XXX;").

For example:

namespace test1 { class test; };
namespace test2 { class test; };
using namespace test2;
test t; // t is wrongly parsed as an instance of test1::test

b) When a class is loaded from a persistant store, kdevelop only check it if you  write the complete namespace before the class name. 

For example, this works:
  #include <list>
  std::list<int> l; // l is correctly parsed as an instance of std::list
but this doesn't:
  #include <list>
  using namespace std;
  list<int> l; // Kdevelop doesn't find the class of l




More information about the KDevelop-devel mailing list