| ... | @@ -847,6 +847,15 @@ fn transType(rp: RestorePoint, ty: *const ZigClangType, source_loc: ZigClangSour | ... | @@ -847,6 +847,15 @@ fn transType(rp: RestorePoint, ty: *const ZigClangType, source_loc: ZigClangSour |
| 847 | else => return revertAndWarn(rp, error.UnsupportedType, source_loc, "unsupported builtin type"), | 847 | else => return revertAndWarn(rp, error.UnsupportedType, source_loc, "unsupported builtin type"), |
| 848 | } | 848 | } |
| 849 | }, | 849 | }, |
| | 850 | .FunctionProto => { |
| | 851 | const fn_proto_ty = @ptrCast(*const ZigClangFunctionProtoType, ty); |
| | 852 | const fn_proto = try transFnProto(rp, fn_proto_ty, source_loc, null); |
| | 853 | return &fn_proto.base; |
| | 854 | }, |
| | 855 | .Paren => { |
| | 856 | const paren_ty = @ptrCast(*const ZigClangParenType, ty); |
| | 857 | return transQualType(rp, ZigClangParenType_getInnerType(paren_ty), source_loc); |
| | 858 | }, |
| 850 | .Pointer => { | 859 | .Pointer => { |
| 851 | const child_qt = ZigClangType_getPointeeType(ty); | 860 | const child_qt = ZigClangType_getPointeeType(ty); |
| 852 | const child_node = try transQualType(rp, child_qt, source_loc); | 861 | const child_node = try transQualType(rp, child_qt, source_loc); |
| ... | @@ -870,11 +879,6 @@ fn transType(rp: RestorePoint, ty: *const ZigClangType, source_loc: ZigClangSour | ... | @@ -870,11 +879,6 @@ fn transType(rp: RestorePoint, ty: *const ZigClangType, source_loc: ZigClangSour |
| 870 | .BracketStarCBracket, | 879 | .BracketStarCBracket, |
| 871 | ); | 880 | ); |
| 872 | }, | 881 | }, |
| 873 | .FunctionProto => { | | |
| 874 | const fn_proto_ty = @ptrCast(*const ZigClangFunctionProtoType, ty); | | |
| 875 | const fn_proto = try transFnProto(rp, fn_proto_ty, source_loc, null); | | |
| 876 | return &fn_proto.base; | | |
| 877 | }, | | |
| 878 | else => { | 882 | else => { |
| 879 | const type_name = rp.c.str(ZigClangType_getTypeClassName(ty)); | 883 | const type_name = rp.c.str(ZigClangType_getTypeClassName(ty)); |
| 880 | return revertAndWarn(rp, error.UnsupportedType, source_loc, "unsupported type: '{}'", type_name); | 884 | return revertAndWarn(rp, error.UnsupportedType, source_loc, "unsupported type: '{}'", type_name); |