tags settings options

General questions regarding the usage of CodeLite
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

tags settings options

Post 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 ?
Jérémie
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: tags settings options

Post by eranif »

The 'preprocessor' part of codelite is not that sophisticated ... it cant handle this case.

Eran
Make sure you have read the HOW TO POST thread
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: tags settings options

Post 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:
Jérémie
Post Reply