• 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: Static Analyzer doesn't always analyze all touched files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static Analyzer doesn't always analyze all touched files?


  • Subject: Re: Static Analyzer doesn't always analyze all touched files?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 21 Jan 2014 11:36:04 -0800


On Jan 21, 2014, at 9:03 AM, Kyle Sluder <email@hidden> wrote:

Starting in Xcode 5, the analyzer does a "shallow" analysis by default.
We were bitten by the same thing—Analyze is part of our build process,
and the analyzer was just blithely skipping some errors.

I think you mean the analysis that's done during Build operations, as opposed to Analyze?

See if adding CLANG_STATIC_ANALYZER_MODE = deep to your project settings
makes Product > Analyze work correctly. If so, file a bug.

There's no need to enter textual settings for this. In the Xcode 5 prefs there is a "Static Analyzer - Analysis Policy" section. The default values shown in that section are to do a deep analysis during Analyze, and no analysis during Build. You can enable "Analyze during 'Build'", and then the default setting for that is "Shallow" (but can be changed to "Deep").

So this doesn't explain what Jerry's getting — the default setting for the Analyze command is still a deep analysis.

—Jens
 _______________________________________________
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: Static Analyzer doesn't always analyze all touched files?
      • From: Fritz Anderson <email@hidden>
References: 
 >Static Analyzer doesn't always analyze all touched files? (From: Jerry Krinock <email@hidden>)
 >Re: Static Analyzer doesn't always analyze all touched files? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Static Analyzer doesn't always analyze all touched files?
  • Next by Date: Re: Static Analyzer doesn't always analyze all touched files?
  • Previous by thread: Re: Static Analyzer doesn't always analyze all touched files?
  • Next by thread: Re: Static Analyzer doesn't always analyze all touched files?
  • Index(es):
    • Date
    • Thread