Indexer fails to index my .h (using #define/#undef) [message #721029] |
Wed, 31 August 2011 14:12  |
Eclipse User |
|
|
|
Hello,
Can someone can help me to setup Indexer so it works with that (uncommon) design template:
A .h file is loaded multiple time in the same .c++ , with some #define changing from one include to another.
Thus the .h file cannot be parsed alone; its valid ( even at synntax level) only when included within .h or .c++ with good #define set.
The #include and #define ( and macro) are very standard one.
it turns out that this configuration break the indexer, and that, thus, the .c++ is mark as bad a nearly all lines.
Anyone to help me on this big problem for me ?
Thanks in advance for your help
hptf
*********** the coding template use:
I got a .c++ file with that sort of code
(simplified pseudo code for comprehension)
class toto {
enum menum {
#define myenum
#include <toto.h>
#undef myenum
};
myenum ivmenum;
#define myfunction
#include <toto.h>
#undef myenum
}
the .h is like this
#ifdef myenum
a,b,c
#elsif define myfunction
void foo();
#endif
|
|
|
|
Powered by
FUDForum. Page generated in 0.32657 seconds