[CFG] Provide construction contexts for return value constructors.
authorArtem Dergachev <artem.dergachev@gmail.com>
Mon, 12 Feb 2018 22:36:36 +0000 (22:36 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Mon, 12 Feb 2018 22:36:36 +0000 (22:36 +0000)
commit9ac2e1138519c78f6b4850a367b0801b5988c74e
treefbb80f75cc9df76452a39510c04ea483fbc717d7
parent005e7c3d758053d06b4790971321305a1dc1f247
[CFG] Provide construction contexts for return value constructors.

When the current function returns a C++ object by value, CFG elements for
constructors that construct the return values can now be queried to discover
that they're indeed participating in construction of the respective return value
at the respective return statement.

Differential Revision: https://reviews.llvm.org/D42875

llvm-svn: 324952
clang/lib/Analysis/CFG.cpp
clang/test/Analysis/cfg-rich-constructors.cpp
clang/test/Analysis/temp-obj-dtors-cfg-output.cpp