• 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
Re: #include dependency tools?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #include dependency tools?


  • Subject: Re: #include dependency tools?
  • From: Tommy Nordgren <email@hidden>
  • Date: Wed, 5 Jan 2005 23:44:03 +0100


Jan 5, 2005 kl. 10:55 PM skrev Andy Wiese:

I would like to determine exactly what header files are included in my c++ project. I know that header dependency tools exist, but I've never used them, and don't know what might be available and usable with Xcode/gcc/os-x without too much brain damage.

My immediate desire is simple--I just want to figure out exactly what boost headers are used by my project so I can trim my source tree to just what is needed. Can I use the gcc preprocessor for this somehow? In CodeWarrior, I could preprocess the source and then extract the header include comments with perl script. Primitive, but good enough for this purpose.

Any suggestions how I could do this in Xcode?

In a broader sense, I would like to get familiar with more sophisticated header dependency tools if there is something available that works well with Xcode. Any suggestions?



It is possible to extract this info by opening each source file in the project, and choosing the preprocess command and then saving the preprocessor output document. It will be named the same as your source file, but with another suffix (for dot.m files the suffix will be .i)
It might also be possible to do this via an applescript instead of interactively.


Then you can use a PERL script on the generated files.
Hope this helps
Tommy Nordgren

_______________________________________________
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: #include dependency tools?
      • From: Mark Lentczner <email@hidden>
References: 
 >#include dependency tools? (From: Andy Wiese <email@hidden>)

  • Prev by Date: Re: XCode and STL/STD code completion/code sense - possible???
  • Next by Date: Re: XCode and STL/STD code completion/code sense - possible???
  • Previous by thread: #include dependency tools?
  • Next by thread: Re: #include dependency tools?
  • Index(es):
    • Date
    • Thread