[clang-tools-extra] 5f88c3b - [clang tidy] Fix SIMDIntrinsicsCheck not storing options
Nathan James via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 18 07:56:51 PDT 2020
Author: Nathan James
Date: 2020-10-18T15:56:39+01:00
New Revision: 5f88c3b6392f54ee0d31f560b1897b8fbc828ee7
URL: https://github.com/llvm/llvm-project/commit/5f88c3b6392f54ee0d31f560b1897b8fbc828ee7
DIFF: https://github.com/llvm/llvm-project/commit/5f88c3b6392f54ee0d31f560b1897b8fbc828ee7.diff
LOG: [clang tidy] Fix SIMDIntrinsicsCheck not storing options
Added:
Modified:
clang-tools-extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp b/clang-tools-extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
index db9cc8c5a08c..9391670df622 100644
--- a/clang-tools-extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
+++ b/clang-tools-extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
@@ -82,8 +82,8 @@ SIMDIntrinsicsCheck::SIMDIntrinsicsCheck(StringRef Name,
Suggest(Options.get("Suggest", false)) {}
void SIMDIntrinsicsCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
- Options.store(Opts, "Std", "");
- Options.store(Opts, "Suggest", 0);
+ Options.store(Opts, "Std", Std);
+ Options.store(Opts, "Suggest", Suggest);
}
void SIMDIntrinsicsCheck::registerMatchers(MatchFinder *Finder) {
More information about the cfe-commits
mailing list