[PATCH] D131065: [clang][dataflow] Store DeclContext of block being analysed in Environment if available.

Stanislav Gatev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 3 04:37:29 PDT 2022


sgatev accepted this revision.
sgatev added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h:170
 
+  /// Returns the `DeclCtx` of the block being analysed if provided, otherwise
+  /// returns nullptr.
----------------



================
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h:370
 
+  // `DeclCtx` of the block being analysed if provided.
+  const DeclContext *DeclCtx;
----------------



================
Comment at: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp:170-172
+                         const DeclContext &DeclCtxArg)
     : Environment(DACtx) {
+  DeclCtx = &DeclCtxArg;
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131065



More information about the cfe-commits mailing list