forked from OSchip/llvm-project
[clang-tidy] Use getLocalOrGlobal for the StrictMode option
llvm-svn: 304154
This commit is contained in:
parent
51152a3727
commit
0055d97d4b
|
@ -108,7 +108,8 @@ static bool isPossiblyBitMask(const EnumDecl *EnumDec) {
|
|||
|
||||
SuspiciousEnumUsageCheck::SuspiciousEnumUsageCheck(StringRef Name,
|
||||
ClangTidyContext *Context)
|
||||
: ClangTidyCheck(Name, Context), StrictMode(Options.get("StrictMode", 0)) {}
|
||||
: ClangTidyCheck(Name, Context),
|
||||
StrictMode(Options.getLocalOrGlobal("StrictMode", 0)) {}
|
||||
|
||||
void SuspiciousEnumUsageCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
|
||||
Options.store(Opts, "StrictMode", StrictMode);
|
||||
|
|
|
@ -24,7 +24,8 @@ void InefficientStringConcatenationCheck::storeOptions(
|
|||
|
||||
InefficientStringConcatenationCheck::InefficientStringConcatenationCheck(
|
||||
StringRef Name, ClangTidyContext *Context)
|
||||
: ClangTidyCheck(Name, Context), StrictMode(Options.get("StrictMode", 0)) {}
|
||||
: ClangTidyCheck(Name, Context),
|
||||
StrictMode(Options.getLocalOrGlobal("StrictMode", 0)) {}
|
||||
|
||||
void InefficientStringConcatenationCheck::registerMatchers(
|
||||
MatchFinder *Finder) {
|
||||
|
|
Loading…
Reference in New Issue