[PATCH] D80366: [Analyzer] Add `getReturnValueUnderConstruction()` to `CallEvent`
Gabor Marton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 28 03:12:59 PDT 2020
martong added inline comments.
================
Comment at: clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp:24
+public:
+ void checkPostCall(const CallEvent &Call, CheckerContext &C) const {
+ if (!Call.getOriginExpr())
----------------
I assume this tests this call expression: `returnC(1)` . But this is absolutely not trivial from the test code, could you please make this cleaner?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80366/new/
https://reviews.llvm.org/D80366
More information about the cfe-commits
mailing list