Page 1 of 1

Code completion for namespace alias

Posted: Wed Mar 03, 2010 9:50 pm
by Sami
Hi all,

It seems that code completion doesn't work for namespace alias.
For example, when i make an alias to namespace boost::filesystem:

Code: Select all

#include "boost/filesystem.hpp"

namespace bf = boost::filesystm;
bf::  //no completion
NB.
- I am using CodeLite 2.3.0.3833.
- The project compiles without errors.
- I included BOOST_HOME/include to parser search path.

is there a way to fix the problem?

Thanks.
Sami

Re: Code completion for namespace alias

Posted: Wed Mar 03, 2010 9:54 pm
by eranif
Currently this is not supported by the parser.

You could try and workaround it by doing this:
'settings -> tags settings -> advanced'

In this tab, select the 'Types' page (from the bottom tabs) and add:
bf=boost::filesystm

I am not sure it will work... you could try it

Also, please submit a FR for this.
Eran

Re: Code completion for namespace alias

Posted: Wed Mar 03, 2010 10:03 pm
by Sami
Thank you for your response,
I already tested type substitution and it doesn't work.

Regards.
Sami

Re: Code completion for namespace alias

Posted: Thu Mar 04, 2010 9:03 am
by eranif
Out of curiosity:
Does it work for you without the namespace aliasing?

Eran

Re: Code completion for namespace alias

Posted: Thu Mar 04, 2010 4:16 pm
by Sami
It work perfectly without aliasing.
For the type substitution it doesn't work and i think it must stay this way because namespace is not a type specifier.

Sami

Re: Code completion for namespace alias

Posted: Thu Mar 04, 2010 5:26 pm
by eranif
Yes, I agreed. I only tried to provide a workaround not a permanent solution.

If you are following the SVN commit logs, you will notice that I already started on fixing this

Eran