[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)
commitceb7d91a484982cfca84c102cfddb90b3963c46e
treecc1383f10e70f864e3f97dc2ecc1cde4ae5c4698
parentf43ac4c9acb023ac9fd44e2836d852dc5ce9d0e2
[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

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