[cfe-dev] Remove implicitly generated AST nodes by Sema

Eli Friedman eli.friedman at gmail.com
Tue Jun 4 19:29:42 PDT 2013


On Tue, Jun 4, 2013 at 2:51 PM, Pan, Wei <wei.pan at intel.com> wrote:

>  For the following example, the argument in the call “foo(x)” does not
> have an implicit cast on top of  the CXXConstructExpr. Is it generally
> right to generate one for this call? If yes, then
> CastExpr::getSubExprAsWritten would work here. ** **
>
> ** **
>
> void foo(Y y);****
>
> ** **
>
> void bar(X x) {****
>
>    foo(x);
> }****
>
>
>
There are three CXXConstructExprs here: one is the ConstructorConversion,
and the other two are copy constructors.  Off the top of my head, I'm not
sure there's a convenient way to check whether a CXXConstructExpr is an
implicit copy constructor call.

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130604/c0d963e9/attachment.html>


More information about the cfe-dev mailing list