I have a project that currently uses both scan-build and clang-tidy (enabled via CMake).
If I enable clang-analyzer-* in my set of clang-tidy checks, is the usage of scan-build redundant?
For reference, there is a similar question asked here about the usage of clang-tidy with clang-check.
These are the available checks reported by
scan-build --help(the "+" indicates that the check is enabled by default):And this is the output of
clang-tidy --list-checks | grep clang-analyzer-:The clang-tidy version is 12.0.0.
So, it seems like scan-build is a subset of clang-tidy (as far as the available checks are concerned), and the answer to your question is "yes".