Page 1 of 1

tags settings options

Posted: Sat Oct 10, 2009 6:38 pm
by jfouche
Hi Eran

I would like to know if there is a way to add some define in tags settings. Well, a sample will help you to understand what I mean.
I use BOOST_FOREACH macro, which doesn't allow me to have completion for the variable declaration :
BOOST_FOREACH(const MyType& type, myContainer) {
type.| // completion doesn't works
}
As I have an old (and slow) computer, I don't want to have a big tag database containing boost, wxWidgets and STL (didn't try if completion let me have what I want when tagging boost :? ).
Is it possible to tell CodeLite that I want the BOOST_FOREACH(var, container) macro to be expanded, for example, as var, while CodeLite is parsing the code ? Maybe in tags settings ?

Re: tags settings options

Posted: Sat Oct 10, 2009 7:22 pm
by eranif
The 'preprocessor' part of codelite is not that sophisticated ... it cant handle this case.

Eran

Re: tags settings options

Posted: Sat Oct 10, 2009 8:00 pm
by jfouche
Well ...
An awfull solution migth be to put in a header file (my_macros_for_codelite_completion.h) which is part of the project :

Code: Select all

#if 0
#define BOOST_FOREACH(var, container) var;
// and so on for each external macros used in my project
#endif
:mrgreen: