diff options
author | Alexander Kornienko <alexfh@google.com> | 2017-07-20 12:02:03 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2017-07-20 12:02:03 +0000 |
commit | 1a4aa5af46c2daf4388ce720c3992edbc5f94bd2 (patch) | |
tree | 2cbca53c785baacda9e679cad858467ba2eabba2 /clang-tidy/performance | |
parent | f8b16115ac303629376de854b4430c80146f4661 (diff) |
[clang-tidy] Unify the way IncludeStyle and HeaderFileExtesions options are used
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@308605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/performance')
-rw-r--r-- | clang-tidy/performance/TypePromotionInMathFnCheck.cpp | 2 | ||||
-rw-r--r-- | clang-tidy/performance/UnnecessaryValueParamCheck.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang-tidy/performance/TypePromotionInMathFnCheck.cpp b/clang-tidy/performance/TypePromotionInMathFnCheck.cpp index 82f9535e..441bad38 100644 --- a/clang-tidy/performance/TypePromotionInMathFnCheck.cpp +++ b/clang-tidy/performance/TypePromotionInMathFnCheck.cpp @@ -33,7 +33,7 @@ TypePromotionInMathFnCheck::TypePromotionInMathFnCheck( StringRef Name, ClangTidyContext *Context) : ClangTidyCheck(Name, Context), IncludeStyle(utils::IncludeSorter::parseIncludeStyle( - Options.get("IncludeStyle", "llvm"))) {} + Options.getLocalOrGlobal("IncludeStyle", "llvm"))) {} void TypePromotionInMathFnCheck::registerPPCallbacks( CompilerInstance &Compiler) { diff --git a/clang-tidy/performance/UnnecessaryValueParamCheck.cpp b/clang-tidy/performance/UnnecessaryValueParamCheck.cpp index a34f7076..04b81826 100644 --- a/clang-tidy/performance/UnnecessaryValueParamCheck.cpp +++ b/clang-tidy/performance/UnnecessaryValueParamCheck.cpp @@ -64,7 +64,7 @@ UnnecessaryValueParamCheck::UnnecessaryValueParamCheck( StringRef Name, ClangTidyContext *Context) : ClangTidyCheck(Name, Context), IncludeStyle(utils::IncludeSorter::parseIncludeStyle( - Options.get("IncludeStyle", "llvm"))) {} + Options.getLocalOrGlobal("IncludeStyle", "llvm"))) {} void UnnecessaryValueParamCheck::registerMatchers(MatchFinder *Finder) { const auto ExpensiveValueParamDecl = |