<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>I think the right approach is:</div>
<div>1. Ignore default constructors that satisfy isTrivial().</div><div>2. Check getDefinition().</div><div></div></div></blockquote><div><br></div><div>Hi John,</div><div><br></div><div>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?<br>
</div><div><br></div></div>-- <br>Peeter<br>
</div>