| ... | @@ -815,6 +815,9 @@ fn transRecordDecl(c: *Context, record_decl: *const ZigClangRecordDecl) Error!?* | ... | @@ -815,6 +815,9 @@ fn transRecordDecl(c: *Context, record_decl: *const ZigClangRecordDecl) Error!?* |
| 815 | raw_name = try std.fmt.allocPrint(c.a(), "unnamed_{}", .{c.getMangle()}); | 815 | raw_name = try std.fmt.allocPrint(c.a(), "unnamed_{}", .{c.getMangle()}); |
| 816 | is_anon = true; | 816 | is_anon = true; |
| 817 | } | 817 | } |
| | 818 | if (raw_name.len == 0) { |
| | 819 | continue; |
| | 820 | } |
| 818 | const field_name = try appendIdentifier(c, raw_name); | 821 | const field_name = try appendIdentifier(c, raw_name); |
| 819 | _ = try appendToken(c, .Colon, ":"); | 822 | _ = try appendToken(c, .Colon, ":"); |
| 820 | const field_type = transQualType(rp, field_qt, field_loc) catch |err| switch (err) { | 823 | const field_type = transQualType(rp, field_qt, field_loc) catch |err| switch (err) { |
| ... | @@ -5570,6 +5573,7 @@ fn parseCPrimaryExpr(c: *Context, it: *CTokenList.Iterator, source: []const u8, | ... | @@ -5570,6 +5573,7 @@ fn parseCPrimaryExpr(c: *Context, it: *CTokenList.Iterator, source: []const u8, |
| 5570 | return &group_node.base; | 5573 | return &group_node.base; |
| 5571 | }, | 5574 | }, |
| 5572 | else => { | 5575 | else => { |
| | 5576 | std.debug.warn("{}", .{source}); |
| 5573 | const first_tok = it.list.at(0); | 5577 | const first_tok = it.list.at(0); |
| 5574 | try failDecl( | 5578 | try failDecl( |
| 5575 | c, | 5579 | c, |