<div class="gmail_quote">On Sun, Nov 28, 2010 at 4:56 PM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com">rjmccall@apple.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"><br>
On Nov 28, 2010, at 10:19 AM, Chris Lattner wrote:<br>
<br>
><br>
> On Nov 24, 2010, at 3:21 AM, John McCall wrote:<br>
><br>
>> Author: rjmccall<br>
>> Date: Wed Nov 24 05:21:45 2010<br>
>> New Revision: 120088<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=120088&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=120088&view=rev</a><br>
>> Log:<br>
>> Add -cc1 -ast-dump-xml, an excessively detailed XML dump of the internals<br>
>> of the ASTs. Only available in assertions builds. No stability guarantee.<br>
>><br>
>> This is intended solely as a debugging tool. I'm not sure if the goals<br>
>> are sufficiently aligned with the XML printer to allow a common<br>
>> implementation.<br>
>><br>
>> Currently just falls back on the StmtDumper to display statements,<br>
>> which means it doesn't produce valid XML in those cases.<br>
><br>
> I'm a bit dubious about this given the struggles we've had with the current XML dumper. Please document somewhere that the output isn't guaranteed to be stable.<br>
<br>
</div>Can you elaborate on those struggles? It seems to mostly be unmaintained.<br>
<br>
I would like this to eventually replace -dump-ast, if we can agree on a syntax; -dump-ast is nice for expressions, but useless for declarations.</blockquote><div><br></div><div>Craig and Zhanyong have an analogous dump output built around RecursiveASTVisitor. Its output is also structured in a form to make it easy to write FileCheck-based tests for IIRC. I believe they were intending to commit that, but had held off thinking the existing system was "Good Enough". If they can contribute this, would that be a good place to focus effort on this front? I think it is already more complete than this dumper, although I've not audited it by any means.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I am not wedded to XML, but there are much better visualization / exploration tools for XML than for not-really s-exprs. :)<br>
<div class="im"><br>
> Also, why only in assert builds? We have no precedent for that.<br>
<br>
</div>Since it's just a debugging tool, I didn't want to pay for the code size in release. If you tell me not to sweat it, I won't. :)<br>
<font color="#888888"><br>
John.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br>