<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body><div><br></div><div>On Jun 15, 2012, at 11:58 AM, Carlos Andrade <<a href="mailto:carlosviansi@gmail.com">carlosviansi@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><span>I am interested on seeing this sort of information on the tree. Do you believe it would be hard to implement this given what information the other parts that already exist get the tree? I could contribute to it. Few pointers where to look into the source would be very appreciated.</span><br><span></span><br><span>Specifically I want to see code lines and the values of operators etc. </span><br></div></blockquote><div><br></div>All of the information is in the tree. It's simply the Decl and Stmt printers that are not complete. Both live in the AST library. <div><br></div><div>  - Doug</div><div><br><blockquote type="cite"><div><span>Best,</span><br><span></span><br><span>--</span><br><span>Carlos Andrade</span><br><span><a href="http://carlosandrade.co">http://carlosandrade.co</a></span><br><span></span><br><span>Sent from my iPhone. </span><br><span></span><br><span>On 15/06/2012, at 10:20, Douglas Gregor <<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>> wrote:</span><br><span></span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>On Jun 13, 2012, at 9:28 AM, Carlos Andrade wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>Hi,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>I have been trying without much success figuring a way to map the -ast-view from Clang cc1 option to code, and --ast-dump-XML as well. Is this possible? If so, how?</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Please let me know if this is the wrong list to post this.. </span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Neither of these is directly possible. The AST-printing facilities do not print well-formed code, and the XML dumps are both incomplete and not necessarily well structured for anything other than debugging the compiler. That's why both options are hidden behind the compiler's internal -cc1 interface.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>What are you actually trying to accomplish?</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   - Doug</span><br></blockquote></div></blockquote></div></body></html>