C++ indexer, the outline view and preprocessor symbols [message #155297] |
Wed, 28 September 2005 11:08 |
Eclipse User |
|
|
|
Originally posted by: eclipse.kfdd.mine.nu
Hi all,
I'm struggling with getting a large code base of existing C/C++ into
Eclipse and CDT. So I've setup it using the standard make C/C++ project.
Now, consider the following sniplet:
#ifdef ARCH1
int tool1(int a)
{
}
#elif ARCH2
int tool2(int a, int b)
{
}
#else
void tool3(int a)
{
}
#endif
Depending on preprocessor symbols set in the "Projects:C/C++ Include
Paths & Symbols" the outline view will display different contents (i.e.
"tool1", "tool2" or "tool3".
Now, I can see that this is correct in some sense, but a quite common
scenario is to handle different variants using preprocessor symbols, so
it if one must go into the Project settings to modify those, this is a
quite tedious process when you have a large project.
Any comments? Experiences?
Also, how is preprocessor symbols handled by the C/C++ indexer?
Does it only consider the code according to the symbols defined in the
project settings?
Trying to get a grip on this "beast" and would like to hear how others
have handled this.
TIA!
--F
|
|
|
Powered by
FUDForum. Page generated in 0.03589 seconds