Re: Counting header includes
Re: Counting header includes
- Subject: Re: Counting header includes
- From: Philip Aker <email@hidden>
- Date: Fri, 14 Mar 2008 10:03:56 -0700
On 08-03-14, at 07:15, Paul Sargent wrote:
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.
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 ...! .
Thanks Paul,
I actually didn't know about -H. I used something like: -dMMDI …
but I think your suggestion is a nicer solution (certainly easier to
remember :-).
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
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