Re: Static Analyzer doesn't always analyze all touched files?
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