[PATCH] Add a flag to disable all analyzer warnings

Jordan Rose jordan_rose at apple.com
Fri Aug 29 11:42:39 PDT 2014


Code looks good. I would suggest adding to the comment above the AnalyzerOptions setting to explain why we still want to do any processing at all (i.e. to validate the command-line options and ensure the file still parses, as you pointed out to me yesterday).

Nitpick: the option should be next to other bitfield options; otherwise it will take up a whole word on its own.

Jordan
 

> On Aug 29, 2014, at 11:38, Anna Zaks <ganna at apple.com> wrote:
> 
> Please, review:
> 
> Add an option to silence all analyzer warnings.
> 
> People have been incorrectly using "-analyzer-disable-checker" to 
> silence analyzer warnings on a file, when analyzing a project. Add 
> the "-analyzer-disable-all-checks" option, which would allow to do 
> this and suggest it as part of the error message for 
> "-analyzer-disable-checker".
> 
> <disable-all-checks.diff>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140829/9da2367f/attachment.html>


More information about the cfe-commits mailing list