[clang-tools-extra] 4c38953 - [clang-tidy] Remove reference to CSA AnalysisStoreOpt field
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 10 04:22:00 PDT 2022
Author: Balazs Benics
Date: 2022-06-10T13:21:28+02:00
New Revision: 4c38953f32f29a0cd3b8b9d9ae894bb49d3cd44b
URL: https://github.com/llvm/llvm-project/commit/4c38953f32f29a0cd3b8b9d9ae894bb49d3cd44b
DIFF: https://github.com/llvm/llvm-project/commit/4c38953f32f29a0cd3b8b9d9ae894bb49d3cd44b.diff
LOG: [clang-tidy] Remove reference to CSA AnalysisStoreOpt field
D126215 removed the `AnalysisStoreOpt` field, so `clang-tidy` should not
refer to it.
http://45.33.8.238/linux/78232/step_4.txt
../../clang-tools-extra/clang-tidy/ClangTidy.cpp:444:22: error: no
member named 'AnalysisStoreOpt' in 'clang::AnalyzerOptions'
AnalyzerOptions->AnalysisStoreOpt = RegionStoreModel;
~~~~~~~~~~~~~~~~~^
../../clang-tools-extra/clang-tidy/ClangTidy.cpp:444:41: error: use of
undeclared identifier 'RegionStoreModel'
AnalyzerOptions->AnalysisStoreOpt = RegionStoreModel;
This one liner patch should resolve the build failure.
Differential Revision: https://reviews.llvm.org/D126215
Added:
Modified:
clang-tools-extra/clang-tidy/ClangTidy.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/ClangTidy.cpp b/clang-tools-extra/clang-tidy/ClangTidy.cpp
index fbfe27b388bc..57b19bd30c1c 100644
--- a/clang-tools-extra/clang-tidy/ClangTidy.cpp
+++ b/clang-tools-extra/clang-tidy/ClangTidy.cpp
@@ -441,7 +441,6 @@ ClangTidyASTConsumerFactory::createASTConsumer(
Context, Context.canEnableAnalyzerAlphaCheckers());
if (!AnalyzerOptions->CheckersAndPackages.empty()) {
setStaticAnalyzerCheckerOpts(Context.getOptions(), *AnalyzerOptions);
- AnalyzerOptions->AnalysisStoreOpt = RegionStoreModel;
AnalyzerOptions->AnalysisDiagOpt = PD_NONE;
AnalyzerOptions->eagerlyAssumeBinOpBifurcation = true;
std::unique_ptr<ento::AnalysisASTConsumer> AnalysisConsumer =
More information about the cfe-commits
mailing list