[clang] 4ca1ae5 - [clang][dataflow] Remove old diagnoser API
Dmitri Gribenko via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 14 11:45:55 PST 2022
Author: Dani Ferreira Franco Moura
Date: 2022-12-14T20:45:48+01:00
New Revision: 4ca1ae580b0ce44c3a83992cf3abae45c3a229b4
URL: https://github.com/llvm/llvm-project/commit/4ca1ae580b0ce44c3a83992cf3abae45c3a229b4
DIFF: https://github.com/llvm/llvm-project/commit/4ca1ae580b0ce44c3a83992cf3abae45c3a229b4.diff
LOG: [clang][dataflow] Remove old diagnoser API
This is a clean up following the revision D139868 (https://reviews.llvm.org/D139868).
Reviewed By: gribozavr2, ymandel
Differential Revision: https://reviews.llvm.org/D140037
Added:
Modified:
clang/unittests/Analysis/FlowSensitive/TestingSupport.h
Removed:
################################################################################
diff --git a/clang/unittests/Analysis/FlowSensitive/TestingSupport.h b/clang/unittests/Analysis/FlowSensitive/TestingSupport.h
index d20e1ed0d34fd..c72e8e47dd8e3 100644
--- a/clang/unittests/Analysis/FlowSensitive/TestingSupport.h
+++ b/clang/unittests/Analysis/FlowSensitive/TestingSupport.h
@@ -125,20 +125,6 @@ template <typename AnalysisT> struct AnalysisInputs {
PostVisitCFG = std::move(Arg);
return std::move(*this);
}
-
- AnalysisInputs<AnalysisT> &&
- withPostVisitCFG(std::function<void(ASTContext &, const CFGElement &,
- const TypeErasedDataflowAnalysisState &)>
- Arg) && {
- PostVisitCFG =
- [Arg = std::move(Arg)](ASTContext &Context, const CFGElement &Element,
- const TransferStateForDiagnostics<typename AnalysisT::Lattice>
- &State) {
- Arg(Context, Element,
- TypeErasedDataflowAnalysisState({State.Lattice}, State.Env));
- };
- return std::move(*this);
- }
AnalysisInputs<AnalysisT> &&withASTBuildArgs(ArrayRef<std::string> Arg) && {
ASTBuildArgs = std::move(Arg);
return std::move(*this);
More information about the cfe-commits
mailing list