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

Saheel Godhane srgodhane at ucdavis.edu
Tue Jan 20 09:04:32 PST 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150120/4b593f91/attachment.html>


More information about the cfe-dev mailing list