aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorKristof Umann <dkszelethus@gmail.com>2019-01-26 14:23:08 +0000
committerKristof Umann <dkszelethus@gmail.com>2019-01-26 14:23:08 +0000
commit058a7a450aac183d28451191333b3eb33814f62a (patch)
tree07c0f89710aea1f833e3b0dd15cabc0f79e93b32 /llvm/unittests/Support/CommandLineTest.cpp
parentdb07683d866bdd0c1d2b651066081b64f9563333 (diff)
downloadllvm-058a7a450aac183d28451191333b3eb33814f62a.zip
llvm-058a7a450aac183d28451191333b3eb33814f62a.tar.gz
llvm-058a7a450aac183d28451191333b3eb33814f62a.tar.bz2
[analyzer] Supply all checkers with a shouldRegister function
Introduce the boolean ento::shouldRegister##CHECKERNAME(const LangOptions &LO) function very similarly to ento::register##CHECKERNAME. This will force every checker to implement this function, but maybe it isn't that bad: I saw a lot of ObjC or C++ specific checkers that should probably not register themselves based on some LangOptions (mine too), but they do anyways. A big benefit of this is that all registry functions now register their checker, once it is called, registration is guaranteed. This patch is a part of a greater effort to reinvent checker registration, more info here: D54438#1315953 Differential Revision: https://reviews.llvm.org/D55424 llvm-svn: 352277
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions