[PATCH] D144730: [FlowSensitive][WIP] log analysis progress for debugging purposes

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 9 13:26:44 PST 2023


gribozavr2 added inline comments.


================
Comment at: clang/include/clang/Analysis/FlowSensitive/Logger.h:22
+
+// A logger is notified as the analysis progresses.
+// It  can produce a report of the analysis's findings and how it came to them.
----------------
Elsewhere under Analysis/FlowSensitive we use triple slash as a doc comment marker - could you make the new header follow the pattern?


================
Comment at: clang/include/clang/Analysis/FlowSensitive/Logger.h:23
+// A logger is notified as the analysis progresses.
+// It  can produce a report of the analysis's findings and how it came to them.
+//
----------------



================
Comment at: clang/include/clang/Analysis/FlowSensitive/Logger.h:38
+  // Forms a pair with endAnalysis().
+  virtual void beginAnalysis(const ControlFlowContext &,
+                             TypeErasedDataflowAnalysis &) {}
----------------
Why not DataflowAnalysisContext instead of ControlFlowContext?

You can reach the latter from the former, but not vice versa.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144730



More information about the cfe-commits mailing list