From 4fe0c8e9c76b96e7aff21696a40dacc09d0237bc Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 30 May 2009 00:08:05 +0000 Subject: Refactor and clean up the AST printer, so that it uses a DeclVisitor, walks through DeclContexts properly, and prints more of the information available in the AST. The functionality is still available via -ast-print, -ast-dump, etc., and also via the new member functions Decl::dump() and Decl::print(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72597 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/DocumentXML.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Frontend/DocumentXML.cpp') diff --git a/lib/Frontend/DocumentXML.cpp b/lib/Frontend/DocumentXML.cpp index ac1d7d2a8b..7562d2ae87 100644 --- a/lib/Frontend/DocumentXML.cpp +++ b/lib/Frontend/DocumentXML.cpp @@ -566,6 +566,8 @@ void DocumentXML::PrintDecl(Decl *D) case LinkageSpecDecl::lang_cxx: addAttribute("lang", "CXX"); break; default: assert(0 && "Unexpected lang id"); } + } else if (isa(D)) { + // FIXME: Implement this } else { assert(0 && "Unexpected decl"); } -- cgit v1.2.3-18-g5258