No, that won't find includes. It will be more useful to run<div>`clang main.c -Xclang -ast-dump`</div><div><br></div><div>The `-Xclang` passes the next argument to the "-cc1" invocation of clang. (warning, the dump will probably be huge, but you can grep and such to get just the parts you want). Btw I didn't know that you could trigger the ast dump from the command line; awesome!</div>
<div><br></div><div>--Sean Silva<br><br><div class="gmail_quote">On Tue, Feb 28, 2012 at 3:40 AM, Nikola Smiljanic <span dir="ltr"><<a href="mailto:popizdeh@gmail.com">popizdeh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Feb 22, 2012 at 12:09 AM, Perry Smith <<a href="mailto:pedzsan@gmail.com">pedzsan@gmail.com</a>> wrote:<br>
><br>
> I got clang working.  I put it on my Mac.  I see the -S option and I see that -emit-ast spews out some binary stuff.  I've also found a page describing how to read it back in but I'm assuming that somewhere is a utility to pretty print the AST (or perhaps it is built right into clang).<br>

><br>
</div>try clang -cc1 main.c -ast-dump<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>