authorgravatar for vallahor91@gmail.comVallahor <vallahor91@gmail.com> 2022-05-28 07:22:25-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-19 19:10:11-07:00
loga3f44b0d21fd504cd306615f1bdf2294ddc28769
tree98bea1b45703065c22afd8914ecb52cf1c618e8a
parent11eb11d7d6b54ac56aa9a5560f21140220bbe487

fixes: @check


1 files changed, 8 insertions(+), 7 deletions(-)

src/Autodoc.zig+8-7
......@@ -536,9 +536,9 @@ const DocData = struct {
536536 \\
537537 , .{ v.is_allowzero, v.is_mutable, v.is_volatile, v.has_sentinel, v.has_align, v.has_addrspace, v.has_bit_range });
538538 if (options.whitespace) |ws| try ws.outputIndent(w);
539 // try w.print(
540 // \\"child":
541 // , .{});
539 try w.print(
540 \\"child":
541 , .{});
542542
543543 if (options.whitespace) |*ws| ws.indent_level += 1;
544544 try v.child.jsonStringify(options, w);
......@@ -2761,9 +2761,10 @@ fn analyzeFunction(
27612761 const extra = file.zir.extraData(Zir.Inst.ExtendedFunc, inst_data.payload_index);
27622762 var cc_index: ?usize = null;
27632763 if (extra.data.bits.has_cc) {
2764 const cc_ref = @intToEnum(Zir.Inst.Ref, file.zir.extra[extra.end]);
2765 _ = try self.walkRef(file, scope, cc_ref, false);
2766 cc_index = self.types.items.len - 1;
2764 // @panic with .calling_convention_inline
2765 // const cc_ref = @intToEnum(Zir.Inst.Ref, file.zir.extra[extra.end]);
2766 // _ = try self.walkRef(file, scope, cc_ref, false);
2767 // cc_index = self.types.items.len - 1;
27672768 }
27682769
27692770 break :blk .{
......@@ -2773,7 +2774,7 @@ fn analyzeFunction(
27732774 .params = param_type_refs.items,
27742775 .ret = ret_type_ref.expr,
27752776 .is_extern = extra.data.bits.is_extern,
2776 .has_cc = extra.data.bits.has_cc,
2777 // .has_cc = extra.data.bits.has_cc,
27772778 .is_inferred_error = extra.data.bits.is_inferred_error,
27782779 .cc = cc_index,
27792780 },