Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ indexer, the outline view and preprocessor symbols
C++ indexer, the outline view and preprocessor symbols [message #155297] Wed, 28 September 2005 11:08
Eclipse UserFriend
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
Previous Topic:Failed to build managed make project
Next Topic:Re: Multi-platform project
Goto Forum:
  


Current Time: Sun Jul 27 13:57:04 EDT 2025

Powered by FUDForum. Page generated in 0.03589 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top