Index: lib/Frontend/DeclXML.cpp
===================================================================
--- lib/Frontend/DeclXML.cpp	(revision 114536)
+++ lib/Frontend/DeclXML.cpp	(working copy)
@@ -43,6 +43,18 @@
       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) {
