authorgravatar for goon.pri.low@gmail.comKendall Condon <goon.pri.low@gmail.com> 2026-03-12 17:44:03-04:00
committergravatar for goon.pri.low@gmail.comKendall Condon <goon.pri.low@gmail.com> 2026-03-12 17:44:03-04:00
log02e8339ca78e0f701b84da0bc31201a7fe95cec4
tree79b36f2a77b08be3ae4b319e6877a055a57423a1
parent9632ee3eb0c3eef525cdf95e86e04a8df090f26c

zig build fmt


8 files changed, 57 insertions(+), 37 deletions(-)

lib/compiler/aro/aro/Compilation.zig+2-1
......@@ -1707,7 +1707,8 @@ pub fn initSearchPath(comp: *Compilation, includes: []const Include, verbose: bo
17071707 std.debug.print("#include <...> search starts here:\n", .{});
17081708 }
17091709 std.debug.print(" {s}{s}\n", .{
1710 include.path, if (include.kind.isFramework())
1710 include.path,
1711 if (include.kind.isFramework())
17111712 " (framework directory)"
17121713 else
17131714 "",
lib/compiler/translate-c/ast.zig+4-2
......@@ -1213,7 +1213,8 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex {
12131213 .tag = .slice,
12141214 .main_token = l_bracket,
12151215 .data = .{ .node_and_extra = .{
1216 string, try c.addExtra(std.zig.Ast.Node.Slice{
1216 string,
1217 try c.addExtra(std.zig.Ast.Node.Slice{
12171218 .start = start,
12181219 .end = end,
12191220 }),
......@@ -2720,7 +2721,8 @@ fn renderCall(c: *Context, lhs: NodeIndex, args: []const Node) !NodeIndex {
27202721 .tag = .call,
27212722 .main_token = lparen,
27222723 .data = .{ .node_and_extra = .{
2723 lhs, try c.addExtra(NodeSubRange{
2724 lhs,
2725 try c.addExtra(NodeSubRange{
27242726 .start = span.start,
27252727 .end = span.end,
27262728 }),
lib/std/crypto/aes.zig+1-2
......@@ -8,8 +8,7 @@ const has_armaes = builtin.cpu.has(.aarch64, .aes);
88// C backend doesn't currently support passing vectors to inline asm.
99const impl = if (builtin.cpu.arch == .x86_64 and builtin.zig_backend != .stage2_c and has_aesni and has_avx) impl: {
1010 break :impl @import("aes/aesni.zig");
11} else if (builtin.cpu.arch == .aarch64 and builtin.zig_backend != .stage2_c and has_armaes)
12impl: {
11} else if (builtin.cpu.arch == .aarch64 and builtin.zig_backend != .stage2_c and has_armaes) impl: {
1312 break :impl @import("aes/armcrypto.zig");
1413} else impl: {
1514 break :impl @import("aes/soft.zig");
lib/std/unicode.zig+20-16
......@@ -1245,14 +1245,16 @@ test utf8ToUtf16Le {
12451245 const length = try utf8ToUtf16Le(utf16le[0..], "This string has been designed to test the vectorized implementat" ++
12461246 "ion by beginning with one hundred twenty-seven ASCII characters¡");
12471247 try testing.expectEqualSlices(u8, &.{
1248 'T', 0, 'h', 0, 'i', 0, 's', 0, ' ', 0, 's', 0, 't', 0, 'r', 0, 'i', 0, 'n', 0, 'g', 0, ' ', 0, 'h', 0, 'a', 0, 's', 0, ' ', 0,
1249 'b', 0, 'e', 0, 'e', 0, 'n', 0, ' ', 0, 'd', 0, 'e', 0, 's', 0, 'i', 0, 'g', 0, 'n', 0, 'e', 0, 'd', 0, ' ', 0, 't', 0, 'o', 0,
1250 ' ', 0, 't', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, 't', 0, 'h', 0, 'e', 0, ' ', 0, 'v', 0, 'e', 0, 'c', 0, 't', 0, 'o', 0, 'r', 0,
1251 'i', 0, 'z', 0, 'e', 0, 'd', 0, ' ', 0, 'i', 0, 'm', 0, 'p', 0, 'l', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 'a', 0, 't', 0,
1252 'i', 0, 'o', 0, 'n', 0, ' ', 0, 'b', 0, 'y', 0, ' ', 0, 'b', 0, 'e', 0, 'g', 0, 'i', 0, 'n', 0, 'n', 0, 'i', 0, 'n', 0, 'g', 0,
1253 ' ', 0, 'w', 0, 'i', 0, 't', 0, 'h', 0, ' ', 0, 'o', 0, 'n', 0, 'e', 0, ' ', 0, 'h', 0, 'u', 0, 'n', 0, 'd', 0, 'r', 0, 'e', 0,
1254 'd', 0, ' ', 0, 't', 0, 'w', 0, 'e', 0, 'n', 0, 't', 0, 'y', 0, '-', 0, 's', 0, 'e', 0, 'v', 0, 'e', 0, 'n', 0, ' ', 0, 'A', 0,
1255 'S', 0, 'C', 0, 'I', 0, 'I', 0, ' ', 0, 'c', 0, 'h', 0, 'a', 0, 'r', 0, 'a', 0, 'c', 0, 't', 0, 'e', 0, 'r', 0, 's', 0, '¡', 0,
1248 'T', 0, 'h', 0, 'i', 0, 's', 0, ' ', 0, 's', 0, 't', 0, 'r', 0, 'i', 0, 'n', 0, 'g', 0, ' ', 0, 'h', 0, 'a', 0, 's', 0, ' ', 0,
1249 'b', 0, 'e', 0, 'e', 0, 'n', 0, ' ', 0, 'd', 0, 'e', 0, 's', 0, 'i', 0, 'g', 0, 'n', 0, 'e', 0, 'd', 0, ' ', 0, 't', 0, 'o', 0,
1250 ' ', 0, 't', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, 't', 0, 'h', 0, 'e', 0, ' ', 0, 'v', 0, 'e', 0, 'c', 0, 't', 0, 'o', 0, 'r', 0,
1251 'i', 0, 'z', 0, 'e', 0, 'd', 0, ' ', 0, 'i', 0, 'm', 0, 'p', 0, 'l', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 'a', 0, 't', 0,
1252 'i', 0, 'o', 0, 'n', 0, ' ', 0, 'b', 0, 'y', 0, ' ', 0, 'b', 0, 'e', 0, 'g', 0, 'i', 0, 'n', 0, 'n', 0, 'i', 0, 'n', 0, 'g', 0,
1253 ' ', 0, 'w', 0, 'i', 0, 't', 0, 'h', 0, ' ', 0, 'o', 0, 'n', 0, 'e', 0, ' ', 0, 'h', 0, 'u', 0, 'n', 0, 'd', 0, 'r', 0, 'e', 0,
1254 'd', 0, ' ', 0, 't', 0, 'w', 0, 'e', 0, 'n', 0, 't', 0, 'y', 0, '-', 0, 's', 0, 'e', 0, 'v', 0, 'e', 0, 'n', 0, ' ', 0, 'A', 0,
1255 'S', 0, 'C', 0, 'I', 0, 'I', 0, ' ', 0, 'c', 0, 'h', 0, 'a', 0, 'r', 0, 'a', 0, 'c', 0, 't', 0, 'e', 0, 'r', 0, 's', 0,
1256 '¡',
1257 0,
12561258 }, mem.sliceAsBytes(utf16le[0..length]));
12571259 }
12581260}
......@@ -1317,14 +1319,16 @@ test utf8ToUtf16LeAllocZ {
13171319 "ion by beginning with one hundred twenty-seven ASCII characters¡");
13181320 defer testing.allocator.free(utf16);
13191321 try testing.expectEqualSlices(u8, &.{
1320 'T', 0, 'h', 0, 'i', 0, 's', 0, ' ', 0, 's', 0, 't', 0, 'r', 0, 'i', 0, 'n', 0, 'g', 0, ' ', 0, 'h', 0, 'a', 0, 's', 0, ' ', 0,
1321 'b', 0, 'e', 0, 'e', 0, 'n', 0, ' ', 0, 'd', 0, 'e', 0, 's', 0, 'i', 0, 'g', 0, 'n', 0, 'e', 0, 'd', 0, ' ', 0, 't', 0, 'o', 0,
1322 ' ', 0, 't', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, 't', 0, 'h', 0, 'e', 0, ' ', 0, 'v', 0, 'e', 0, 'c', 0, 't', 0, 'o', 0, 'r', 0,
1323 'i', 0, 'z', 0, 'e', 0, 'd', 0, ' ', 0, 'i', 0, 'm', 0, 'p', 0, 'l', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 'a', 0, 't', 0,
1324 'i', 0, 'o', 0, 'n', 0, ' ', 0, 'b', 0, 'y', 0, ' ', 0, 'b', 0, 'e', 0, 'g', 0, 'i', 0, 'n', 0, 'n', 0, 'i', 0, 'n', 0, 'g', 0,
1325 ' ', 0, 'w', 0, 'i', 0, 't', 0, 'h', 0, ' ', 0, 'o', 0, 'n', 0, 'e', 0, ' ', 0, 'h', 0, 'u', 0, 'n', 0, 'd', 0, 'r', 0, 'e', 0,
1326 'd', 0, ' ', 0, 't', 0, 'w', 0, 'e', 0, 'n', 0, 't', 0, 'y', 0, '-', 0, 's', 0, 'e', 0, 'v', 0, 'e', 0, 'n', 0, ' ', 0, 'A', 0,
1327 'S', 0, 'C', 0, 'I', 0, 'I', 0, ' ', 0, 'c', 0, 'h', 0, 'a', 0, 'r', 0, 'a', 0, 'c', 0, 't', 0, 'e', 0, 'r', 0, 's', 0, '¡', 0,
1322 'T', 0, 'h', 0, 'i', 0, 's', 0, ' ', 0, 's', 0, 't', 0, 'r', 0, 'i', 0, 'n', 0, 'g', 0, ' ', 0, 'h', 0, 'a', 0, 's', 0, ' ', 0,
1323 'b', 0, 'e', 0, 'e', 0, 'n', 0, ' ', 0, 'd', 0, 'e', 0, 's', 0, 'i', 0, 'g', 0, 'n', 0, 'e', 0, 'd', 0, ' ', 0, 't', 0, 'o', 0,
1324 ' ', 0, 't', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, 't', 0, 'h', 0, 'e', 0, ' ', 0, 'v', 0, 'e', 0, 'c', 0, 't', 0, 'o', 0, 'r', 0,
1325 'i', 0, 'z', 0, 'e', 0, 'd', 0, ' ', 0, 'i', 0, 'm', 0, 'p', 0, 'l', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 'a', 0, 't', 0,
1326 'i', 0, 'o', 0, 'n', 0, ' ', 0, 'b', 0, 'y', 0, ' ', 0, 'b', 0, 'e', 0, 'g', 0, 'i', 0, 'n', 0, 'n', 0, 'i', 0, 'n', 0, 'g', 0,
1327 ' ', 0, 'w', 0, 'i', 0, 't', 0, 'h', 0, ' ', 0, 'o', 0, 'n', 0, 'e', 0, ' ', 0, 'h', 0, 'u', 0, 'n', 0, 'd', 0, 'r', 0, 'e', 0,
1328 'd', 0, ' ', 0, 't', 0, 'w', 0, 'e', 0, 'n', 0, 't', 0, 'y', 0, '-', 0, 's', 0, 'e', 0, 'v', 0, 'e', 0, 'n', 0, ' ', 0, 'A', 0,
1329 'S', 0, 'C', 0, 'I', 0, 'I', 0, ' ', 0, 'c', 0, 'h', 0, 'a', 0, 'r', 0, 'a', 0, 'c', 0, 't', 0, 'e', 0, 'r', 0, 's', 0,
1330 '¡',
1331 0,
13281332 }, mem.sliceAsBytes(utf16));
13291333 }
13301334}
lib/std/zig/BuiltinFn.zig+10-5
......@@ -384,28 +384,32 @@ pub const list = list: {
384384 },
385385 },
386386 .{
387 "@cVaArg", .{
387 "@cVaArg",
388 .{
388389 .tag = .c_va_arg,
389390 .param_count = 2,
390391 .illegal_outside_function = true,
391392 },
392393 },
393394 .{
394 "@cVaCopy", .{
395 "@cVaCopy",
396 .{
395397 .tag = .c_va_copy,
396398 .param_count = 1,
397399 .illegal_outside_function = true,
398400 },
399401 },
400402 .{
401 "@cVaEnd", .{
403 "@cVaEnd",
404 .{
402405 .tag = .c_va_end,
403406 .param_count = 1,
404407 .illegal_outside_function = true,
405408 },
406409 },
407410 .{
408 "@cVaStart", .{
411 "@cVaStart",
412 .{
409413 .tag = .c_va_start,
410414 .param_count = 0,
411415 .illegal_outside_function = true,
......@@ -1042,7 +1046,8 @@ pub const list = list: {
10421046 },
10431047 },
10441048 .{
1045 "@workItemId", .{
1049 "@workItemId",
1050 .{
10461051 .tag = .work_item_id,
10471052 .param_count = 1,
10481053 .illegal_outside_function = true,
lib/std/zig/Parse.zig+16-8
......@@ -885,7 +885,8 @@ fn expectContainerField(p: *Parse) !Node.Index {
885885 .tag = .container_field,
886886 .main_token = main_token,
887887 .data = .{ .node_and_extra = .{
888 type_expr, try p.addExtra(Node.ContainerField{
888 type_expr,
889 try p.addExtra(Node.ContainerField{
889890 .align_expr = align_expr.?,
890891 .value_expr = value_expr.?,
891892 }),
......@@ -1188,7 +1189,8 @@ fn expectIfStatement(p: *Parse) !Node.Index {
11881189 .tag = .@"if",
11891190 .main_token = if_token,
11901191 .data = .{ .node_and_extra = .{
1191 condition, try p.addExtra(Node.If{
1192 condition,
1193 try p.addExtra(Node.If{
11921194 .then_expr = then_expr,
11931195 .else_expr = else_expr,
11941196 }),
......@@ -1369,7 +1371,8 @@ fn parseWhileStatement(p: *Parse) !?Node.Index {
13691371 .tag = .@"while",
13701372 .main_token = while_token,
13711373 .data = .{ .node_and_extra = .{
1372 condition, try p.addExtra(Node.While{
1374 condition,
1375 try p.addExtra(Node.While{
13731376 .cont_expr = .fromOptional(cont_expr),
13741377 .then_expr = then_expr,
13751378 .else_expr = else_expr,
......@@ -1937,7 +1940,8 @@ fn parseTypeExpr(p: *Parse) Error!?Node.Index {
19371940 .tag = .array_type_sentinel,
19381941 .main_token = lbracket,
19391942 .data = .{ .node_and_extra = .{
1940 len_expr.?, try p.addExtra(Node.ArrayTypeSentinel{
1943 len_expr.?,
1944 try p.addExtra(Node.ArrayTypeSentinel{
19411945 .sentinel = sentinel.?,
19421946 .elem_type = elem_type,
19431947 }),
......@@ -2732,7 +2736,8 @@ fn parseWhileTypeExpr(p: *Parse) !?Node.Index {
27322736 .tag = .while_cont,
27332737 .main_token = while_token,
27342738 .data = .{ .node_and_extra = .{
2735 condition, try p.addExtra(Node.WhileCont{
2739 condition,
2740 try p.addExtra(Node.WhileCont{
27362741 .cont_expr = cont_expr.?,
27372742 .then_expr = then_expr,
27382743 }),
......@@ -2746,7 +2751,8 @@ fn parseWhileTypeExpr(p: *Parse) !?Node.Index {
27462751 .tag = .@"while",
27472752 .main_token = while_token,
27482753 .data = .{ .node_and_extra = .{
2749 condition, try p.addExtra(Node.While{
2754 condition,
2755 try p.addExtra(Node.While{
27502756 .cont_expr = .fromOptional(cont_expr),
27512757 .then_expr = then_expr,
27522758 .else_expr = else_expr,
......@@ -3198,7 +3204,8 @@ fn parseSuffixOp(p: *Parse, lhs: Node.Index) !?Node.Index {
31983204 .tag = .slice_sentinel,
31993205 .main_token = lbracket,
32003206 .data = .{ .node_and_extra = .{
3201 lhs, try p.addExtra(Node.SliceSentinel{
3207 lhs,
3208 try p.addExtra(Node.SliceSentinel{
32023209 .start = index_expr,
32033210 .end = .fromOptional(opt_end_expr),
32043211 .sentinel = sentinel,
......@@ -3221,7 +3228,8 @@ fn parseSuffixOp(p: *Parse, lhs: Node.Index) !?Node.Index {
32213228 .tag = .slice,
32223229 .main_token = lbracket,
32233230 .data = .{ .node_and_extra = .{
3224 lhs, try p.addExtra(Node.Slice{
3231 lhs,
3232 try p.addExtra(Node.Slice{
32253233 .start = index_expr,
32263234 .end = end_expr,
32273235 }),
src/codegen/sparc64/abi.zig+2-2
......@@ -38,10 +38,10 @@ const allocatable_regs = [_]Register{
3838};
3939
4040pub const c_abi_int_param_regs_caller_view = [_]Register{ .o0, .o1, .o2, .o3, .o4, .o5 };
41pub const c_abi_int_param_regs_callee_view = [_]Register{ .@"i0", .@"i1", .@"i2", .@"i3", .@"i4", .@"i5" };
41pub const c_abi_int_param_regs_callee_view = [_]Register{ .i0, .i1, .i2, .i3, .i4, .i5 };
4242
4343pub const c_abi_int_return_regs_caller_view = [_]Register{ .o0, .o1, .o2, .o3 };
44pub const c_abi_int_return_regs_callee_view = [_]Register{ .@"i0", .@"i1", .@"i2", .@"i3" };
44pub const c_abi_int_return_regs_callee_view = [_]Register{ .i0, .i1, .i2, .i3 };
4545
4646pub const RegisterManager = RegisterManagerFn(@import("CodeGen.zig"), Register, &allocatable_regs);
4747
src/link.zig+2-1
......@@ -2097,7 +2097,8 @@ fn resolveLibInput(
20972097 const test_path: Path = .{
20982098 .root_dir = lib_directory,
20992099 .sub_path = try std.fmt.allocPrint(arena, "{s}{s}{s}", .{
2100 target.libPrefix(), lib_name, switch (link_mode) {
2100 target.libPrefix(), lib_name,
2101 switch (link_mode) {
21012102 .static => target.staticLibSuffix(),
21022103 .dynamic => target.dynamicLibSuffix(),
21032104 },