authorgravatar for vallahor91@gmail.comVallahor <vallahor91@gmail.com> 2022-05-28 14:22:46-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-19 19:10:11-07:00
log2809b01b2f3fcecc4eeec7c1ee44f65ea0b80abb
tree64a6c71ed1e2715170f44b5ed8a18ab16154808a
parenta3f44b0d21fd504cd306615f1bdf2294ddc28769

add: noreturn keyword at end of the fn decl


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

src/Autodoc.zig+4
...@@ -147,6 +147,9 @@ pub fn generateZirData(self: *Autodoc) !void {...@@ -147,6 +147,9 @@ pub fn generateZirData(self: *Autodoc) !void {
147 .Bool = .{ .name = tmpbuf.toOwnedSlice() },147 .Bool = .{ .name = tmpbuf.toOwnedSlice() },
148 },148 },
149149
150 .noreturn_type => .{
151 .NoReturn = .{ .name = tmpbuf.toOwnedSlice() },
152 },
150 .void_type => .{153 .void_type => .{
151 .Void = .{ .name = tmpbuf.toOwnedSlice() },154 .Void = .{ .name = tmpbuf.toOwnedSlice() },
152 },155 },
...@@ -525,6 +528,7 @@ const DocData = struct {...@@ -525,6 +528,7 @@ const DocData = struct {
525 try sentinel.jsonStringify(options, w);528 try sentinel.jsonStringify(options, w);
526 try w.print(",", .{});529 try w.print(",", .{});
527 }530 }
531 if (options.whitespace) |ws| try ws.outputIndent(w);
528 try w.print(532 try w.print(
529 \\"is_allowzero": {},533 \\"is_allowzero": {},
530 \\"is_mutable": {},534 \\"is_mutable": {},