[PATCH] D44051: [CFG] [analyzer] Add construction context for implicit constructor conversions.
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 2 16:06:33 PST 2018
NoQ created this revision.
NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet.
Herald added subscribers: cfe-commits, rnkovacs.
Implicit constructor conversions such as `A a = B()` are represented by surrounding the constructor for `B()` with an `ImplicitCastExpr` of `CK_ConstructorConversion` kind, similarly to how explicit constructor conversions are surrounded by a `CXXFunctionalCastExpr`. Support this syntax pattern in when understanding the construction context for the implicit constructor that performs the conversion.
Repository:
rC Clang
https://reviews.llvm.org/D44051
Files:
lib/Analysis/CFG.cpp
lib/Analysis/ConstructionContext.cpp
test/Analysis/cfg-rich-constructors.cpp
test/Analysis/temporaries.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44051.136875.patch
Type: text/x-patch
Size: 7408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180303/c30f2632/attachment.bin>
More information about the cfe-commits
mailing list