[PATCH] D131438: [clang][dataflow] Analyze constructor bodies
Sam Estep via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 10 06:54:44 PDT 2022
samestep added inline comments.
================
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h:379
+ /// Shared implementation of `pushCall` overloads.
+ void pushCallInternal(const FunctionDecl *FuncDecl,
+ ArrayRef<const Expr *> Args);
----------------
sgatev wrote:
> Let's add a note that unlike `pushCall`, this member is invoked on the environment of the callee.
Will do, thanks!
================
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h:380
+ void pushCallInternal(const FunctionDecl *FuncDecl,
+ ArrayRef<const Expr *> Args);
+
----------------
sgatev wrote:
> `#include "llvm/ADT/ArrayRef.h"`
When I add this, I get a warning: "Included header `ArrayRef.h` is not used directly"
================
Comment at: clang/lib/Analysis/FlowSensitive/Transfer.cpp:667-670
+ const ControlFlowContext *CFCtx = Env.getControlFlowContext(F);
+
+ if (!CFCtx)
+ return;
----------------
sgatev wrote:
>
👍
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131438/new/
https://reviews.llvm.org/D131438
More information about the cfe-commits
mailing list