Skip to content

Disable a certain analyzer #4324

Closed Answered by dkrupp
TimmRuppert asked this question in Q&A
Aug 23, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi,

you can explicitly enable analyzers you want to be executed:

e.g.
CodeChecker analyze ./compile_commands.json --analyzers clang-tidy cppcheck -o ./report_dir

Leaving out clangsa will solve your case.

You may also consider running clangsa in shallow mode. This shortens the clang static analyzer execution time considerably (on the cost of missing out some potential bugs).

CodeChecker analyze ./compile_commands.json --analyzer-config clangsa:mode=shallow -o ./report_dir

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TimmRuppert
Comment options

Answer selected by dkrupp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants