vsapsai added a comment.

Thanks for response, Richard. I'll look into using `CXXDefaultInitExpr`.

As for

In https://reviews.llvm.org/D42498#1007028, @rsmith wrote:

> […] your approach will still go wrong if the `This` pointer is used in other 
> ways, such as an explicit mention of `this` or a member function call.


I wasn't able to find a failing test case. Maybe I misunderstood you but in my 
testing functions declared in named structs had correct `This` pointer and in 
anonymous structs functions cannot be declared.


https://reviews.llvm.org/D42498



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to