[all-commits] [llvm/llvm-project] 6cff2e: [Analyzer] Bugfix for CheckerRegistry
Balogh, Ádám via All-commits
all-commits at lists.llvm.org
Thu Mar 19 08:07:01 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6cff2e9f7884690d480b961f78806cbb91773b34
https://github.com/llvm/llvm-project/commit/6cff2e9f7884690d480b961f78806cbb91773b34
Author: Adam Balogh <adam.balogh at ericsson.com>
Date: 2020-03-19 (Thu, 19 Mar 2020)
Changed paths:
M clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistry.h
M clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
Log Message:
-----------
[Analyzer] Bugfix for CheckerRegistry
`CheckerRegistry` registers a checker either if it is excplicitly
enabled or it is a dependency of an explicitly enabled checker and is
not explicitly disabled. In both cases it is also important that the
checker should be registered (`shoudRegister`//XXX//`()` returns true).
Currently there is a bug here: if the dependenct checker is not
explicitly disabled it is registered regardless of whether it should
be registered. This patch fixes this bug.
Differential Revision: https://reviews.llvm.org/D75842
More information about the All-commits
mailing list