| ... | @@ -1486,17 +1486,9 @@ fn transDeclStmtOne(rp: RestorePoint, scope: *Scope, decl: *const ZigClangDecl, | ... | @@ -1486,17 +1486,9 @@ fn transDeclStmtOne(rp: RestorePoint, scope: *Scope, decl: *const ZigClangDecl, |
| 1486 | const underlying_type = ZigClangQualType_getTypePtr(underlying_qual); | 1486 | const underlying_type = ZigClangQualType_getTypePtr(underlying_qual); |
| 1487 | | 1487 | |
| 1488 | const mangled_name = try block_scope.makeMangledName(c, name); | 1488 | const mangled_name = try block_scope.makeMangledName(c, name); |
| 1489 | if (checkForBuiltinTypedef(name)) |builtin| { | 1489 | const node = (try transCreateNodeTypedef(rp, typedef_decl, false, mangled_name)) orelse |
| 1490 | try block_scope.variables.append(.{ | 1490 | return error.UnsupportedTranslation; |
| 1491 | .alias = builtin, | 1491 | return &node.base; |
| 1492 | .name = mangled_name, | | |
| 1493 | }); | | |
| 1494 | @panic("what are we supposed to return here?"); | | |
| 1495 | } else { | | |
| 1496 | const node = (try transCreateNodeTypedef(rp, typedef_decl, false, mangled_name)) orelse | | |
| 1497 | return error.UnsupportedTranslation; | | |
| 1498 | return &node.base; | | |
| 1499 | } | | |
| 1500 | }, | 1492 | }, |
| 1501 | else => |kind| return revertAndWarn( | 1493 | else => |kind| return revertAndWarn( |
| 1502 | rp, | 1494 | rp, |