From 4ca1ae580b0ce44c3a83992cf3abae45c3a229b4 Mon Sep 17 00:00:00 2001 From: Dani Ferreira Franco Moura Date: Wed, 14 Dec 2022 20:27:03 +0100 Subject: [PATCH] [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 --- clang/unittests/Analysis/FlowSensitive/TestingSupport.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/clang/unittests/Analysis/FlowSensitive/TestingSupport.h b/clang/unittests/Analysis/FlowSensitive/TestingSupport.h index d20e1ed..c72e8e4 100644 --- a/clang/unittests/Analysis/FlowSensitive/TestingSupport.h +++ b/clang/unittests/Analysis/FlowSensitive/TestingSupport.h @@ -125,20 +125,6 @@ template struct AnalysisInputs { PostVisitCFG = std::move(Arg); return std::move(*this); } - - AnalysisInputs && - withPostVisitCFG(std::function - Arg) && { - PostVisitCFG = - [Arg = std::move(Arg)](ASTContext &Context, const CFGElement &Element, - const TransferStateForDiagnostics - &State) { - Arg(Context, Element, - TypeErasedDataflowAnalysisState({State.Lattice}, State.Env)); - }; - return std::move(*this); - } AnalysisInputs &&withASTBuildArgs(ArrayRef Arg) && { ASTBuildArgs = std::move(Arg); return std::move(*this); -- 2.7.4