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

Dani Ferreira Franco Moura via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 14 11:17:41 PST 2022


merrymeerkat created this revision.
Herald added subscribers: martong, xazax.hun.
Herald added a project: All.
merrymeerkat requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This is a clean up following the revision D139868 <https://reviews.llvm.org/D139868> (https://reviews.llvm.org/D139868).


Repository:
  rG LLVM Github Monorepo

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.482941.patch
Type: text/x-patch
Size: 1071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221214/b167b9e8/attachment.bin>


More information about the cfe-commits mailing list