summaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 9469ff72..dc4b6e06 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -614,7 +614,7 @@ fn visit_composite(cursor: &Cursor, parent: &Cursor,
let field = FieldInfo::new(name, ty, comment, bitfields);
ci.members.push(CompMember::Field(field));
}
- CXCursor_StructDecl | CXCursor_UnionDecl => {
+ CXCursor_ClassDecl | CXCursor_StructDecl | CXCursor_UnionDecl => {
fwd_decl(ctx, cursor, |ctx_| {
// If the struct is anonymous (i.e. declared here) then it
// cannot be used elsewhere and so does not need to be added