Clang Checkers

Hi Ted and Others ,

We we use the switch “–analyze” for clang ,Did all checkers that were pop up from the command “clang -cc1 -analyzer-checker-help” where enabled by default or some are ???

Any documents which says about this ,FYI we referred the information @ http://clang-analyzer.llvm.org/checker_dev_manual.html,But unlucky we couldn’t find any points w.r.t default checkers.

Thanks
~Umesh

Hi Umesh,
the list you get via "-analyzer-checker-help" contains the list of checkers which are registered in clang. Which checkers are run by default is not defined here. You can run the "scan-build" command in clang/tools/scan-build without arguments and it will output the list of checkers + if they are enabled by default. One Note: There was a bug in scan-build, recently fixed in svn, which did not list all enabled checkers correctly.

Hope this helped,
Thomas

Hi Ted and Others ,

We we use the switch “–analyze” for clang ,Did all checkers that were pop up from the command “clang -cc1 -analyzer-checker-help” where enabled by default or some are ???

Usually, all the checkers which are not part of experimental or debug package are on by default.

Any documents which says about this ,FYI we referred the information @ http://clang-analyzer.llvm.org/checker_dev_manual.html,But unlucky we couldn’t find any points w.r.t default checkers.

User Manual / Available Checks