File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -38,21 +38,11 @@ class DocumentXML::DeclPrinter : public DeclVisitor<DocumentXML::DeclPrinter> {
38
38
}
39
39
40
40
void addSubNodes (RecordDecl* RD) {
41
- for (RecordDecl::field_iterator i = RD->field_begin (),
42
- e = RD->field_end (); i != e; ++i) {
43
- Visit (*i);
44
- Doc.toParent ();
45
- }
46
-
47
41
for (RecordDecl::decl_iterator i = RD->decls_begin (),
48
42
e = RD->decls_end (); i != e; ++i) {
49
- Decl *d = *i;
50
- if (isa<RecordDecl>(d)) {
51
- RecordDecl* pRec = cast<RecordDecl>(d);
52
- if (pRec->isDefinition ()) {
53
- Visit (pRec);
54
- Doc.toParent ();
55
- }
43
+ if (!(*i)->isImplicit ()) {
44
+ Visit (*i);
45
+ Doc.toParent ();
56
46
}
57
47
}
58
48
}
@@ -83,15 +73,7 @@ class DocumentXML::DeclPrinter : public DeclVisitor<DocumentXML::DeclPrinter> {
83
73
Doc.addAttribute (" is_virtual" , base->isVirtual ());
84
74
Doc.toParent ();
85
75
}
86
-
87
- for (CXXRecordDecl::method_iterator i = RD->method_begin (),
88
- e = RD->method_end (); i != e; ++i) {
89
- Visit (*i);
90
- Doc.toParent ();
91
- }
92
-
93
76
}
94
-
95
77
}
96
78
97
79
void addSubNodes (EnumDecl* ED) {
You can’t perform that action at this time.
0 commit comments