Indexer and preprocessor symbols
Indexer and preprocessor symbols
- Subject: Indexer and preprocessor symbols
- From: Andreas Grosam <email@hidden>
- Date: Sun, 24 Jul 2005 20:37:52 +0200
The indexer does not determine the state of macros correctly when they
have been defined in the build settings panels ( in Other C/C++ Flags
respectively Preprocessor Macros).
As a result, it also does not determine and locate derived macros
correctly.
Example:
#if defined (NDEBUG)
#define XXX xxx
#else
#define XXX yyy
#endif
The indexer does not determine the state of NDEBUG, if it is defined in
the build settings (as opposed to when it is defined in a file), thus,
also does not determine the definition of the derioved macro XXX
correctly.
That is <command>-double-click, does not route me to the line where XXX
is/will be actually defined.
There is also no documentation, which build settings will be used when
the indexer is doing its work. Strictly, for each translation unit,
there might be different definitions!
In my case, i urgently need to locate derived macros correctly, which
are different in two targets, and also different in Release/Debug
versions.
That means, building *one* index for the whole project is worthless -
since there are different definitions, which i need to figure out.
Is this a known bug in XCode 2.1, or should I file one?
This is especially annoying if I would like to figure out how macros
will be expanded. In many given complex projects, it is really hard to
read through all configuration files in order to find that out.
Regards
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden