code completion and namespace
Posted: Sun Jun 07, 2009 8:59 pm
Hi Eran
I usualy use namespace in my own projects. I define one in a .h file, and in the .cpp file according to the .h file, I write
In the cpp file, code completion doesn't work. Here is an example :
The problem probably comes from the fact that the code completion is looking for the global namespace and no Foo class is define in the global namespace. I think that an improvment can be done by adding a search in all namespace defined by the using namespace keywords in a file. I would like to try to fixe this. Could you give me a clue where I can begin a patch for this ?
Thanks
I usualy use namespace in my own projects. I define one in a .h file, and in the .cpp file according to the .h file, I write
Code: Select all
using namespace xxx;
Code: Select all
// h file
namespace ns {
class Foo
{
...
void Bar();
};
}
Code: Select all
// cpp file
#include "foo.h"
using namespace ns;
void Foo:: // <- code completion doesn't show anything
void ns::Foo:: // <- code completion is OK
Thanks