• 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: Jerry Krinock <email@hidden>
  • Date: Thu, 30 Oct 2008 08:37:26 -0700


On 2008 Oct, 28, at 10:23, George Warner wrote:

On Mon, 27 Oct 2008 22:38:07 -0700, Jerry Krinock <email@hidden> wrote:
After major remodeling of a project, I'm going to have about a hundred
files with an average of maybe 20 #import directives at the top of
each one, and half of them will be no longer necessary since the
symbols that required them were removed or moved to other files during
remodeling.

You could move all the "#import"'s into a precompiler header (.pch) file;
then sort and remove dups.

Thanks, George. I did some reading on .pch files. My conclusion is that, while it would completely eliminate the clutter and make my code ^look^ stunningly beautiful, I'd pay a big penalty in compiler time whenever I added or changed a .h file, which I typically do several times per hour.


I like my "minimalist" approach better, but it looks like I either have to do it manually or write my own script. We'll see...

_______________________________________________
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: Automatically Remove Unused #import Directives
      • From: Dave Carrigan <email@hidden>
References: 
 >re: Automatically Remove Unused #import Directives (From: George Warner <email@hidden>)

  • Prev by Date: Re: Getting Precompiled Headers To Share
  • 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