[cfe-dev] better way to test for explicit C++ constructor?
Peeter Joot
peeter.joot at gmail.com
Fri Dec 14 15:42:27 PST 2012
>
>
> I think the right approach is:
> 1. Ignore default constructors that satisfy isTrivial().
> 2. Check getDefinition().
>
Hi John,
That function appears to require a CXXRecordDecl. I can get that for the
containing structure type using getParent(). How can I get the
CXXRecordDecl for the structure type of the field being initialized?
--
Peeter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121214/6df445f6/attachment.html>
More information about the cfe-dev
mailing list