[cfe-commits] r116702 - in /cfe/trunk: include/clang/Frontend/DeclXML.def lib/Frontend/DeclXML.cpp
Douglas Gregor
dgregor at apple.com
Mon Oct 18 07:35:28 PDT 2010
Author: dgregor
Date: Mon Oct 18 09:35:28 2010
New Revision: 116702
URL: http://llvm.org/viewvc/llvm-project?rev=116702&view=rev
Log:
Add declarations nested in a linkage specification to the output of
-ast-print-xml, from Martin Vejnar!
Modified:
cfe/trunk/include/clang/Frontend/DeclXML.def
cfe/trunk/lib/Frontend/DeclXML.cpp
Modified: cfe/trunk/include/clang/Frontend/DeclXML.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/DeclXML.def?rev=116702&r1=116701&r2=116702&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/DeclXML.def (original)
+++ cfe/trunk/include/clang/Frontend/DeclXML.def Mon Oct 18 09:35:28 2010
@@ -320,6 +320,7 @@
ENUM_XML(LinkageSpecDecl::lang_c, "C")
ENUM_XML(LinkageSpecDecl::lang_cxx, "CXX")
END_ENUM_XML
+ SUB_NODE_XML(DeclContext)
END_NODE_XML
NODE_XML(TemplateDecl, "Template")
Modified: cfe/trunk/lib/Frontend/DeclXML.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/DeclXML.cpp?rev=116702&r1=116701&r2=116702&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/DeclXML.cpp (original)
+++ cfe/trunk/lib/Frontend/DeclXML.cpp Mon Oct 18 09:35:28 2010
@@ -104,7 +104,7 @@
Doc.PrintStmt(argDecl->getDefaultArg());
}
- void addSubNodes(NamespaceDecl* ns) {
+ void addSubNodes(DeclContext* ns) {
for (DeclContext::decl_iterator
d = ns->decls_begin(),
More information about the cfe-commits
mailing list