]> granicus.if.org Git - clang/commit
[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)
commitfe37f716a66869abbaf9a21fc5953efe814486b3
tree3bc1d7afa748d1d4d78f80e38f294675f97d0f27
parent3463c9ea4607dd986af7d82c905acbb8b2e21f27
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339727 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/Analysis/cfg-rich-constructors.cpp