[CFG] [analyzer] Find argument constructors in CXXTemporaryObjectExprs.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 14 Aug 2018 21:10:46 +0000 (21:10 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 14 Aug 2018 21:10:46 +0000 (21:10 +0000)
commitc531d549677609f976b62b90c05829c7c6807369
tree3abc0d3214309f5c9e1fb40eb5ca6a8b5e3e9358
parentbf33a2cdf2bb01abdf79f5a51792591ad1f6b8e5
[CFG] [analyzer] Find argument constructors in CXXTemporaryObjectExprs.

CXXTemporaryObjectExpr is a sub-class of CXXConstructExpr. If it has arguments
that are structures passed by value, their respective constructors need to be
handled by providing a ConstructionContext, like for regular function calls and
for regular constructors.

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

llvm-svn: 339727
clang/lib/Analysis/CFG.cpp
clang/test/Analysis/cfg-rich-constructors.cpp