[cfe-dev] How to run only a specific checker with scan-build (Static Analyzer)?

Anna Zaks ganna at apple.com
Tue Jan 20 13:48:17 PST 2015


Unfortunately, we don't have such a flag for scan-build.

Note that some checkers depend on "core" checkers to be enabled. Some of the core checkers are responsible for modeling tasks, for example, dealing with noreturn functions.

Cheers,
Anna.
> On Jan 20, 2015, at 9:04 AM, Saheel Godhane <srgodhane at ucdavis.edu> wrote:
> 
> Hello everyone,
> 
> I have written a checker and wish to run it over a whole-program (entire project). I think the scan-build utility comes pretty handy in this case. But it has lots of default checkers enabled. I found no straightforward way to disable all of them, other than using the -disable-checker flag in scan-build for each one of them.
> 
> Hence my question: how to run only a specific checker with scan-build? OR how to disable all default checkers at once?
> 
> Worst comes to worst, I will just use the -disable-checker flag, but wanted to know if there's a better way to accomplish this.
> 
> Regards,
> Saheel.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150120/0c7424b4/attachment.html>


More information about the cfe-dev mailing list