• 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: Counting header includes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Counting header includes


  • Subject: Re: Counting header includes
  • From: Paul Sargent <email@hidden>
  • Date: Fri, 14 Mar 2008 14:15:17 +0000


On 14 Mar 2008, at 13:31, Jeff Nordquist wrote:

I think there's an option in cpp to list the headers. You'll have to munge those outputs as well.

Hi Philip,

Thanks for the response. I'm not sure where you're seeing this option - do you mean a CPP group in the project settings somewhere? Per-file settings? The closest setting I can see is "Scan All Source Files for Includes", which sounds promising until you read the description. :)

He means 'cpp' the unix command that Xcode uses.

If you put '-H' in the 'Other C Flags' field then as the compile happens all the header files read will be output to the build results console.

From the cpp man page ('man cpp')

-H Print the name of each header file used, in addition to other
normal activities. Each name is indented to show how deep in the
#include stack it is. Precompiled header files are also printed,
even if they are found to be invalid; an invalid precompiled header
file is printed with ...x and a valid one with ...! .


_______________________________________________
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: Counting header includes
      • From: Philip Aker <email@hidden>
References: 
 >Counting header includes (From: Jeff Nordquist <email@hidden>)
 >Re: Counting header includes (From: Philip Aker <email@hidden>)
 >Re: Counting header includes (From: Jeff Nordquist <email@hidden>)

  • Prev by Date: Re: Counting header includes
  • Next by Date: Debugger array view?
  • Previous by thread: Re: Counting header includes
  • Next by thread: Re: Counting header includes
  • Index(es):
    • Date
    • Thread