[cfe-commits] r120088 - in /cfe/trunk: include/clang/AST/DeclBase.h include/clang/Driver/CC1Options.td include/clang/Frontend/ASTConsumers.h include/clang/Frontend/FrontendActions.h include/clang/Frontend/FrontendOptions.h lib/AST/CMakeLists.txt lib/Frontend/ASTConsumers.cpp lib/Frontend/CompilerInvocation.cpp lib/Frontend/FrontendActions.cpp lib/FrontendTool/ExecuteCompilerInvocation.cpp

Chris Lattner clattner at apple.com
Sun Nov 28 10:19:46 PST 2010


On Nov 24, 2010, at 3:21 AM, John McCall wrote:

> Author: rjmccall
> Date: Wed Nov 24 05:21:45 2010
> New Revision: 120088
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=120088&view=rev
> Log:
> Add -cc1 -ast-dump-xml, an excessively detailed XML dump of the internals
> of the ASTs.  Only available in assertions builds.  No stability guarantee.
> 
> This is intended solely as a debugging tool.  I'm not sure if the goals
> are sufficiently aligned with the XML printer to allow a common
> implementation.
> 
> Currently just falls back on the StmtDumper to display statements,
> which means it doesn't produce valid XML in those cases.

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.  Also, why only in assert builds?  We have no precedent for that.

-Chris



More information about the cfe-commits mailing list