]> granicus.if.org Git - clang/commit
[analyzer][NFC] Keep track of whether enabling a checker was explictly specified...
authorKristof Umann <dkszelethus@gmail.com>
Sat, 26 Jan 2019 16:35:33 +0000 (16:35 +0000)
committerKristof Umann <dkszelethus@gmail.com>
Sat, 26 Jan 2019 16:35:33 +0000 (16:35 +0000)
commit47f10be35d639587a90b6406495d489e7648d2ce
tree00c3694400a70732a1548436193ab129eb2017c0
parentd080f935ce18612f028f65f6bd7c6632ded46729
[analyzer][NFC] Keep track of whether enabling a checker was explictly specified in command line arguments

I added a new enum to CheckerInfo, so we can easily track whether the check is
explicitly enabled, explicitly disabled, or isn't specified in this regard.
Checkers belonging in the latter category may be implicitly enabled through
dependencies in the followup patch. I also made sure that this is done within
CheckerRegisty's constructor, leading to very significant simplifications in
its query-like methods.

Differential Revision: https://reviews.llvm.org/D56989

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352282 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Frontend/CheckerRegistry.h
lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp