[PATCH] D140037: [clang][dataflow] Remove old diagnoser API

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 14 11:46:10 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4ca1ae580b0c: [clang][dataflow] Remove old diagnoser API (authored by merrymeerkat, committed by gribozavr).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140037/new/

https://reviews.llvm.org/D140037

Files:
  clang/unittests/Analysis/FlowSensitive/TestingSupport.h


Index: clang/unittests/Analysis/FlowSensitive/TestingSupport.h
===================================================================
--- clang/unittests/Analysis/FlowSensitive/TestingSupport.h
+++ clang/unittests/Analysis/FlowSensitive/TestingSupport.h
@@ -125,20 +125,6 @@
     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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140037.482952.patch
Type: text/x-patch
Size: 1071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221214/c41d8590/attachment.bin>


More information about the cfe-commits mailing list