diff options
author | John McCall <rjmccall@apple.com> | 2010-11-24 11:21:45 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-24 11:21:45 +0000 |
commit | f35142413974e9dfe2c5f202084db4bd1c2073e9 (patch) | |
tree | 6eab7e324c81acb18b617808c1a3456ebb40edfe /include/clang/AST/DeclBase.h | |
parent | 19b78d9e3dbbc27bbcbdd8c3017a00fe88849ecd (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclBase.h')
-rw-r--r-- | include/clang/AST/DeclBase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index cc4e41abfe..9d49c1e642 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -622,6 +622,8 @@ public: llvm::raw_ostream &Out, const PrintingPolicy &Policy, unsigned Indentation = 0); void dump() const; + void dumpXML() const; + void dumpXML(llvm::raw_ostream &OS) const; private: const Attr *getAttrsImpl() const; |