]> granicus.if.org Git - clang/commit
[CFG] Provide construction contexts for functional cast-like constructors.
authorArtem Dergachev <artem.dergachev@gmail.com>
Sat, 24 Feb 2018 02:05:11 +0000 (02:05 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Sat, 24 Feb 2018 02:05:11 +0000 (02:05 +0000)
commitf0918c00b994da3617a5b55b9ced0947cee359bd
treea3ae8e108c2d20f5be78f2924486460da379aad0
parentedbe243cbd26f2686b04b30f6be61bd370511c57
[CFG] Provide construction contexts for functional cast-like constructors.

When a constructor of a temporary with a single argument is treated
as a functional cast expression, skip the functional cast expression
and provide the correct construction context for the temporary.

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

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