• 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: Automatically Remove Unused #import Directives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >re: Automatically Remove Unused #import Directives (From: George Warner <email@hidden>)
 >Re: Automatically Remove Unused #import Directives (From: Jerry Krinock <email@hidden>)
 >Re: Automatically Remove Unused #import Directives (From: Dave Carrigan <email@hidden>)
 >Re: Automatically Remove Unused #import Directives (From: Dan Korn <email@hidden>)

  • Prev by Date: Re: Automatically Remove Unused #import Directives
  • Next by Date: Re: Automatically Remove Unused #import Directives
  • Previous by thread: Re: Automatically Remove Unused #import Directives
  • Next by thread: Re: Automatically Remove Unused #import Directives
  • Index(es):
    • Date
    • Thread