Hi,<br><br>i don't know if this is what you are looking for, but i use the following command to create the AST of a code file from the command line:<br><br>clang -cc1 -ast-dump -x <LANGUAGE> <INPUT_FILE><br>
<br>For example, to generate the AST of an OpenCL kernel file: clang -cc1 -ast-dump -x cl <a href="http://file.cl">file.cl</a> > output.ast<br><br><div class="gmail_quote">2012/4/11 akshay ratnaparkhi <span dir="ltr"><<a href="mailto:ackk007@gmail.com">ackk007@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>        Can any one tell me what is logic or code of ast dump. how the clang dump the ast on console using dump option.<br>
<br>thanks.<span class="HOEnZb"><font color="#888888"><br> akshay<br>
</font></span><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>
<br></blockquote></div><br>