• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Indexer and preprocessor symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Indexer and preprocessor symbols
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: zlib and cross development
  • Next by Date: Re: Developer Transition System
  • Previous by thread: Re: zlib and cross development
  • Next by thread: Re: Indexer and preprocessor symbols
  • Index(es):
    • Date
    • Thread