<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Nov 28, 2010, at 5:06 PM, Chandler Carruth wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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></blockquote><br></div><div>I'd be at least interested in seeing it.</div><div><br></div><div>John.</div><br></body></html>