[PATCH] D140501: [clang][dataflow] Account for global variables in constructor initializers.

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 21 14:21:27 PST 2022


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


================
Comment at: clang/unittests/Analysis/FlowSensitive/DataflowEnvironmentTest.cpp:112
+  const auto *Var = selectFirst<VarDecl>("global", Results);
+  ASSERT_TRUE(Fun != nullptr);
+  ASSERT_THAT(Var, NotNull());
----------------



================
Comment at: clang/unittests/Analysis/FlowSensitive/DataflowEnvironmentTest.cpp:144
+  const auto *Var = selectFirst<VarDecl>("global", Results);
+  ASSERT_TRUE(Ctor != nullptr);
+  ASSERT_THAT(Var, NotNull());
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140501



More information about the cfe-commits mailing list