codechecker icon indicating copy to clipboard operation
codechecker copied to clipboard

Analyzer profile "sensitive" enables the same check multiple times due to aliasing

Open Oddegamra opened this issue 4 years ago • 0 comments

Describe the bug It seems that the sensitive profile (as well as other profiles) enables several checks that are aliased to other checks in Clang-Tidy, resulting in duplicated warnings and increased analysis time. Apparently, this is a longstanding problem in Clang-Tidy (e.g. https://reviews.llvm.org/D72566), but no solution has been implemented yet. Thus it is up to the caller of Clang-Tidy to weed out aliases.

At the least, these checks are duplicates: cert-dcl37-c, cert-dcl51-cpp -> bugprone-reserved-identifier (all three are enabled) cert-err09-cpp, cert-err61-cpp -> misc-throw-by-value-catch-by-reference (the last only enabled in extreme profile) cert-str34-c -> bugprone-signed-char-misuse

Only one check each should be active in a profile.

CodeChecker version 6.19.0 (26f7f42e9aec90953194cc6c0252dcd10ac8aa0a)

To Reproduce Steps to reproduce the behaviour:

  1. Use the sensitive profile to check a project
  2. Use CodeChecker parse

Expected behaviour The same error is not reported multiple times, each time with a different aliased check

Desktop (please complete the following information) Not applicable

Oddegamra avatar Jan 19 '22 10:01 Oddegamra