[PATCH] D42875: [analyzer] Add construction context for ReturnStmt.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 2 17:37:04 PST 2018


NoQ created this revision.
NoQ added reviewers: rsmith, dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet.
Herald added subscribers: cfe-commits, rnkovacs.

This one's new, the analyzer didn't enjoy this before. This patch adds construction context for `ReturnStmt`, which means that we'd be able to properly return objects from functions by value.

This is the CFG part of the work, the Analyzer-side improvement to make use of it will be in the next patch.


Repository:
  rC Clang

https://reviews.llvm.org/D42875

Files:
  lib/Analysis/CFG.cpp
  test/Analysis/cfg-rich-constructors.cpp
  test/Analysis/temp-obj-dtors-cfg-output.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42875.132712.patch
Type: text/x-patch
Size: 4714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180203/69c8d940/attachment-0001.bin>


More information about the cfe-commits mailing list