authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2023-06-18 16:21:16+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2023-06-18 16:21:16+02:00
log3180a371e825e58a6aaadabff7350af25978b04e
tree3945f68601b361acc1fd44dbb4c14f7dafd8184e
parent329a585fbe50583d6cef7a554c27525afe2e9d41
parente7fd70a951b5bb80e4bcab2414491dbf36ab65b9
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #16086 from der-teufel-programming/master

autodoc: Handle more InternPool.Index types properly in Autodoc

1 files changed, 4 insertions(+), 1 deletions(-)

src/Autodoc.zig+4-1
...@@ -141,10 +141,12 @@ pub fn generateZirData(self: *Autodoc) !void {...@@ -141,10 +141,12 @@ pub fn generateZirData(self: *Autodoc) !void {
141 .i8_type,141 .i8_type,
142 .u16_type,142 .u16_type,
143 .i16_type,143 .i16_type,
144 .u29_type,
144 .u32_type,145 .u32_type,
145 .i32_type,146 .i32_type,
146 .u64_type,147 .u64_type,
147 .i64_type,148 .i64_type,
149 .u80_type,
148 .u128_type,150 .u128_type,
149 .i128_type,151 .i128_type,
150 .usize_type,152 .usize_type,
...@@ -157,14 +159,15 @@ pub fn generateZirData(self: *Autodoc) !void {...@@ -157,14 +159,15 @@ pub fn generateZirData(self: *Autodoc) !void {
157 .c_ulong_type,159 .c_ulong_type,
158 .c_longlong_type,160 .c_longlong_type,
159 .c_ulonglong_type,161 .c_ulonglong_type,
160 .c_longdouble_type,
161 => .{162 => .{
162 .Int = .{ .name = try tmpbuf.toOwnedSlice() },163 .Int = .{ .name = try tmpbuf.toOwnedSlice() },
163 },164 },
164 .f16_type,165 .f16_type,
165 .f32_type,166 .f32_type,
166 .f64_type,167 .f64_type,
168 .f80_type,
167 .f128_type,169 .f128_type,
170 .c_longdouble_type,
168 => .{171 => .{
169 .Float = .{ .name = try tmpbuf.toOwnedSlice() },172 .Float = .{ .name = try tmpbuf.toOwnedSlice() },
170 },173 },