aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/DeclXML.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Frontend/DeclXML.cpp')
-rw-r--r--lib/Frontend/DeclXML.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Frontend/DeclXML.cpp b/lib/Frontend/DeclXML.cpp
index 97a7f55583..3b600ffd2f 100644
--- a/lib/Frontend/DeclXML.cpp
+++ b/lib/Frontend/DeclXML.cpp
@@ -43,6 +43,18 @@ class DocumentXML::DeclPrinter : public DeclVisitor<DocumentXML::DeclPrinter> {
Visit(*i);
Doc.toParent();
}
+
+ for (RecordDecl::decl_iterator i = RD->decls_begin(),
+ e = RD->decls_end(); i != e; ++i) {
+ Decl *d = *i;
+ if (isa<RecordDecl>(d)) {
+ RecordDecl* pRec = cast<RecordDecl>(d);
+ if (pRec->isDefinition()) {
+ Visit(pRec);
+ Doc.toParent();
+ }
+ }
+ }
}
void addSubNodes(CXXRecordDecl* RD) {