diff options
author | Vince Bridgers <vince.a.bridgers@gmail.com> | 2022-04-10 07:44:11 -0500 |
---|---|---|
committer | einvbri <vince.a.bridgers@ericsson.com> | 2022-04-23 14:47:29 -0500 |
commit | 5114db933dbf2507d613e50372aa62a1108f830c (patch) | |
tree | 5834e64cd6f20ababba31b7ee0e5b6df7c7c6698 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | 3530c35c660919b9367f1ac598abfb9a569e7606 (diff) | |
download | llvm-5114db933dbf2507d613e50372aa62a1108f830c.zip llvm-5114db933dbf2507d613e50372aa62a1108f830c.tar.gz llvm-5114db933dbf2507d613e50372aa62a1108f830c.tar.bz2 |
[analyzer] Clean checker options from bool to DefaultBool (NFC)
A recent review emphasized the preference to use DefaultBool instead of
bool for checker options. This change is a NFC and cleans up some of the
instances where bool was used, and could be changed to DefaultBool.
Reviewed By: steakhal
Differential Revision: https://reviews.llvm.org/D123464
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp index 5a8edca..4239eda 100644 --- a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp @@ -563,7 +563,7 @@ public: CK_StdCLibraryFunctionsTesterChecker, CK_NumCheckKinds }; - DefaultBool ChecksEnabled[CK_NumCheckKinds]; + bool ChecksEnabled[CK_NumCheckKinds] = {false}; CheckerNameRef CheckNames[CK_NumCheckKinds]; bool DisplayLoadedSummaries = false; |