[PATCH] D60742: [analyzer] RegionStore: Enable loading default bindings from variables.
Aleksei Sidorin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 16 02:56:38 PDT 2019
a_sidorin accepted this revision.
a_sidorin added a comment.
I like the test even more than the change itself!
================
Comment at: clang/unittests/StaticAnalyzer/StoreTest.cpp:49
+ // Bind(Zero)
+ Store StX0 =
+ StMgr.Bind(StInit, LX0, Zero).getStore();
----------------
This can fit one line.
================
Comment at: clang/unittests/StaticAnalyzer/StoreTest.cpp:82
+ VariableBindConsumer(CompilerInstance &C) : ExprEngineConsumer(C) {}
+ ~VariableBindConsumer() override {}
+
----------------
Do we need this dtor declaration?
================
Comment at: clang/unittests/StaticAnalyzer/StoreTest.cpp:93
+public:
+ VariableBindAction() {}
+ std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
----------------
`= default`? (Or it seems like we can remove it at all)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60742/new/
https://reviews.llvm.org/D60742
More information about the cfe-commits
mailing list