Re: Automatically Remove Unused #import Directives
Re: Automatically Remove Unused #import Directives
- Subject: Re: Automatically Remove Unused #import Directives
- From: "Charles Nicholson" <email@hidden>
- Date: Thu, 30 Oct 2008 09:47:09 -0700
On Thu, Oct 30, 2008 at 9:36 AM, Dan Korn
<email@hidden> wrote:
On Oct 30, 2008, at 11:20 AM, Dave Carrigan wrote:
You don't ever put your own headers into a pch file; only system headers.
Are you saying that only system headers should be precompiled? I don't agree with that statement at all. What is your basis for saying that?
Yeah, I agree. We PCH all sorts of third-party middleware APIs that have poor insulation practices and #include the kitchen sink. When anything slows down compile times on the .cpp/.mm files that #includes it, PCH can be a sledgehammer solution for speeding it back up.
Visual Studio lets you control PCH on a per-cpp-file basis, though, can XCode do that as well? I admittedly looked very briefly, but only saw per-target settings, which can pollute the lexical scope of cpp/mm files that don't need all those symbols...
-charles
_______________________________________________
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