llvm-project/clang/unittests/StaticAnalyzer
Kristof Umann 83cc1b35d1 [analyzer] Remove the default value arg from getChecker*Option
Since D57922, the config table contains every checker option, and it's default
value, so having it as an argument for getChecker*Option is redundant.

By the time any of the getChecker*Option function is called, we verified the
value in CheckerRegistry (after D57860), so we can confidently assert here, as
any irregularities detected at this point must be a programmer error. However,
in compatibility mode, verification won't happen, so the default value must be
restored.

This implies something else, other than adding removing one more potential point
of failure -- debug.ConfigDumper will always contain valid values for
checker/package options!

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

llvm-svn: 361042
2019-05-17 15:52:13 +00:00
..
AnalyzerOptionsTest.cpp [analyzer] Remove the default value arg from getChecker*Option 2019-05-17 15:52:13 +00:00
CMakeLists.txt [analyzer] Make default bindings to variables actually work. 2019-04-18 23:35:56 +00:00
RegisterCustomCheckersTest.cpp Accomodate gcc 7.3.0's -Wdangling-else 2019-01-31 15:26:03 +00:00
Reusables.h Add header guard to Reusables.h [NFC] 2019-04-19 00:42:54 +00:00
StoreTest.cpp [analyzer] Make default bindings to variables actually work. 2019-04-18 23:35:56 +00:00
SymbolReaperTest.cpp [analyzer] NFC: Make reusable unittest mocks reusable. 2019-04-18 23:24:50 +00:00