// cpp file
#include "foo.h"
using namespace ns;
void Foo:: // <- code completion doesn't show anything
void ns::Foo:: // <- code completion is OK
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
jfouche wrote: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
Not really.
When parsing the file, codelite also collect all the 'using namespace ...' lines and tries to search in each of the mentioned namespace (like you suggested)
Btw, your example works for me (see the attached screenshot)
Eran
You do not have the required permissions to view the files attached to this post.