<div dir="ltr">Hello --<div><br></div><div>I'm trying to understand how ASTs for constructors are generated when they are referenced. In particular, I'm working on a libtooling tool that will dump the AST to another format on a per-file basis so I need to know the code for any constructors even if they are not called in the file.</div><div><br></div><div>Very concretely, if I write the following code:</div><div><br></div><div>class P {};</div><div>int main() {</div><div>   P x;</div><div>   return 0;</div><div>}</div><div><br></div><div>the result of -ast-dump will contain the implementation of the default constructor (not very interesting in this case). What code generates this?</div><div><br></div><div>Thank you.</div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>gregory malecha</div><div><a href="https://gmalecha.github.io" target="_blank">gmalecha.github.io</a></div></div></div></div></div></div></div>