[PATCH] D49811: [analyzer] Obtain a ReturnStmt from a CFGAutomaticObjDtor

Reka Kovacs via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 1 19:57:25 PDT 2018


rnkovacs updated this revision to Diff 158680.
rnkovacs added a comment.

In https://reviews.llvm.org/D49811#1175726, @NoQ wrote:

> I guess you could write a test with `debug.AnalysisOrder` (by making its `checkEndFunction` callback (that you'll have to define) print different things depending on the return statement), not sure if it's worth it; you can also merge this commit with https://reviews.llvm.org/D49361 instead.


This is what I could come up with, what do you think?


https://reviews.llvm.org/D49811

Files:
  lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp
  lib/StaticAnalyzer/Core/CoreEngine.cpp
  test/Analysis/end-function-return-stmt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49811.158680.patch
Type: text/x-patch
Size: 3431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180802/683ef888/attachment.bin>


More information about the cfe-commits mailing list