• 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: Pruning the include file set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pruning the include file set


  • Subject: Re: Pruning the include file set
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 2 May 2008 13:52:31 -0500

On 2 May 2008, at 1:11 PM, Scott Thompson wrote:

Is there any way that gcc and/or XCode could tell me what include files my project is actually using?

What I'd like to do is remove any header files from the project that are not actually in-use by my code.

gcc's -M flag will run the preprocessor (only) and emit makefile fragments for the current source file's dependencies. This can't easily be made useful from Xcode (though I guess a separate target with a special .c/.cpp/.m rule might take care of it), and you'll have to massage the results, but it's a start.


	— F

_______________________________________________
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


References: 
 >Pruning the include file set (From: Scott Thompson <email@hidden>)

  • Prev by Date: Pruning the include file set
  • Next by Date: Package Maker: pkg instead of mpkg?
  • Previous by thread: Pruning the include file set
  • Next by thread: Package Maker: pkg instead of mpkg?
  • Index(es):
    • Date
    • Thread