by scscsc · 3y ago · 0 comments
"Real" static analyzers, which are more useful, are based on symbolic execution and abstract interpretation and they will uncover more interesting classes of errors, like double frees, out of bounds array access, etc.
Note that all analyzers will have FPs and FNs, because the underlying problem is uncomputable.
The best open source "real" static analyzer overall for C++ is the Clang static analyzer. There are many commercial analyzers available, and most C++ shops will use one or more of these.
E.g. quote from the documentation page (https://clang.llvm.org/extra/clang-tidy/):
clang-tidy has its own checks and can also run Clang Static Analyzer checks.