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

weiyi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 3 07:50:41 PDT 2022


wyt added a reviewer: samestep.
wyt removed a subscriber: samestep.
wyt added inline comments.


================
Comment at: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp:170-172
+                         const DeclContext &DeclCtxArg)
     : Environment(DACtx) {
+  DeclCtx = &DeclCtxArg;
----------------
sgatev wrote:
> 
Unfortunately doesn't work, I get a warning about "An initializer for a delegating constructor must appear alone".



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