Skip to content

Commit 0fa1673

Browse files
committed
zig build fmt
1 parent 19ab047 commit 0fa1673

File tree

11 files changed

+150
-130
lines changed

11 files changed

+150
-130
lines changed

lib/compiler/aro/aro/toolchains/Linux.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ test Linux {
453453
.{ .path = "/usr/lib/gcc/x86_64-linux-gnu/9/crtbegin.o" },
454454
.{ .path = "/usr/lib/gcc/x86_64-linux-gnu/9/crtend.o" },
455455
.{ .path = "/usr/lib/x86_64-linux-gnu" },
456-
.{ .path = "/etc/lsb-release", .contents =
456+
.{ .path = "/etc/lsb-release", .contents =
457457
\\DISTRIB_ID=Ubuntu
458458
\\DISTRIB_RELEASE=20.04
459459
\\DISTRIB_CODENAME=focal

lib/compiler/aro_translate_c/ast.zig

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,8 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex {
18171817
.tag = .switch_comma,
18181818
.main_token = switch_tok,
18191819
.data = .{ .node_and_extra = .{
1820-
cond, try c.addExtra(NodeSubRange{
1820+
cond,
1821+
try c.addExtra(NodeSubRange{
18211822
.start = span.start,
18221823
.end = span.end,
18231824
}),
@@ -2083,7 +2084,8 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex {
20832084
.tag = .struct_init_comma,
20842085
.main_token = l_brace,
20852086
.data = .{ .node_and_extra = .{
2086-
lhs, try c.addExtra(NodeSubRange{
2087+
lhs,
2088+
try c.addExtra(NodeSubRange{
20872089
.start = span.start,
20882090
.end = span.end,
20892091
}),
@@ -2155,7 +2157,8 @@ fn renderRecord(c: *Context, node: Node) !NodeIndex {
21552157
.tag = .container_field,
21562158
.main_token = name_tok,
21572159
.data = .{ .node_and_extra = .{
2158-
type_expr, try c.addExtra(std.zig.Ast.Node.ContainerField{
2160+
type_expr,
2161+
try c.addExtra(std.zig.Ast.Node.ContainerField{
21592162
.align_expr = align_expr.?,
21602163
.value_expr = value_expr.?,
21612164
}),
@@ -2242,7 +2245,8 @@ fn renderArrayInit(c: *Context, lhs: NodeIndex, inits: []const Node) !NodeIndex
22422245
.tag = .array_init_comma,
22432246
.main_token = l_brace,
22442247
.data = .{ .node_and_extra = .{
2245-
lhs, try c.addExtra(NodeSubRange{
2248+
lhs,
2249+
try c.addExtra(NodeSubRange{
22462250
.start = span.start,
22472251
.end = span.end,
22482252
}),

lib/std/c.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10869,8 +10869,7 @@ pub const LC = enum(c_int) {
1086910869

1087010870
pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) ?[*:0]const u8;
1087110871

10872-
pub const getcontext = if (builtin.target.abi.isAndroid() or builtin.target.os.tag == .openbsd or builtin.target.os.tag == .haiku)
10873-
{} // libc does not implement getcontext
10872+
pub const getcontext = if (builtin.target.abi.isAndroid() or builtin.target.os.tag == .openbsd or builtin.target.os.tag == .haiku) {} // libc does not implement getcontext
1087410873
else if (native_os == .linux and builtin.target.abi.isMusl())
1087510874
linux.getcontext
1087610875
else

lib/std/crypto/aes.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ const has_armaes = builtin.cpu.has(.aarch64, .aes);
88
// C backend doesn't currently support passing vectors to inline asm.
99
const 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)
12-
impl: {
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

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,14 +1244,16 @@ test utf8ToUtf16Le {
12441244
const length = try utf8ToUtf16Le(utf16le[0..], "This string has been designed to test the vectorized implementat" ++
12451245
"ion by beginning with one hundred twenty-seven ASCII characters¡");
12461246
try testing.expectEqualSlices(u8, &.{
1247-
'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,
1248-
'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,
1249-
' ', 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,
1250-
'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,
1251-
'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,
1252-
' ', 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,
1253-
'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,
1254-
'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,
1247+
'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,
1248+
'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,
1249+
' ', 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,
1250+
'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,
1251+
'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,
1252+
' ', 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,
1253+
'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,
1254+
'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,
1255+
'¡',
1256+
0,
12551257
}, mem.sliceAsBytes(utf16le[0..length]));
12561258
}
12571259
}
@@ -1316,14 +1318,16 @@ test utf8ToUtf16LeAllocZ {
13161318
"ion by beginning with one hundred twenty-seven ASCII characters¡");
13171319
defer testing.allocator.free(utf16);
13181320
try testing.expectEqualSlices(u8, &.{
1319-
'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,
1320-
'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,
1321-
' ', 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,
1322-
'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,
1323-
'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,
1324-
' ', 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,
1325-
'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,
1326-
'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,
1321+
'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,
1322+
'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,
1323+
' ', 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,
1324+
'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,
1325+
'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,
1326+
' ', 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,
1327+
'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,
1328+
'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,
1329+
'¡',
1330+
0,
13271331
}, mem.sliceAsBytes(utf16));
13281332
}
13291333
}

lib/std/zig/BuiltinFn.zig

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,28 +377,32 @@ pub const list = list: {
377377
},
378378
},
379379
.{
380-
"@cVaArg", .{
380+
"@cVaArg",
381+
.{
381382
.tag = .c_va_arg,
382383
.param_count = 2,
383384
.illegal_outside_function = true,
384385
},
385386
},
386387
.{
387-
"@cVaCopy", .{
388+
"@cVaCopy",
389+
.{
388390
.tag = .c_va_copy,
389391
.param_count = 1,
390392
.illegal_outside_function = true,
391393
},
392394
},
393395
.{
394-
"@cVaEnd", .{
396+
"@cVaEnd",
397+
.{
395398
.tag = .c_va_end,
396399
.param_count = 1,
397400
.illegal_outside_function = true,
398401
},
399402
},
400403
.{
401-
"@cVaStart", .{
404+
"@cVaStart",
405+
.{
402406
.tag = .c_va_start,
403407
.param_count = 0,
404408
.illegal_outside_function = true,
@@ -986,7 +990,8 @@ pub const list = list: {
986990
},
987991
},
988992
.{
989-
"@workItemId", .{
993+
"@workItemId",
994+
.{
990995
.tag = .work_item_id,
991996
.param_count = 1,
992997
.illegal_outside_function = true,

lib/std/zig/Parse.zig

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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,
@@ -1948,7 +1951,8 @@ fn parseTypeExpr(p: *Parse) Error!?Node.Index {
19481951
.tag = .array_type_sentinel,
19491952
.main_token = lbracket,
19501953
.data = .{ .node_and_extra = .{
1951-
len_expr.?, try p.addExtra(Node.ArrayTypeSentinel{
1954+
len_expr.?,
1955+
try p.addExtra(Node.ArrayTypeSentinel{
19521956
.sentinel = sentinel.?,
19531957
.elem_type = elem_type,
19541958
}),
@@ -2743,7 +2747,8 @@ fn parseWhileTypeExpr(p: *Parse) !?Node.Index {
27432747
.tag = .while_cont,
27442748
.main_token = while_token,
27452749
.data = .{ .node_and_extra = .{
2746-
condition, try p.addExtra(Node.WhileCont{
2750+
condition,
2751+
try p.addExtra(Node.WhileCont{
27472752
.cont_expr = cont_expr.?,
27482753
.then_expr = then_expr,
27492754
}),
@@ -2757,7 +2762,8 @@ fn parseWhileTypeExpr(p: *Parse) !?Node.Index {
27572762
.tag = .@"while",
27582763
.main_token = while_token,
27592764
.data = .{ .node_and_extra = .{
2760-
condition, try p.addExtra(Node.While{
2765+
condition,
2766+
try p.addExtra(Node.While{
27612767
.cont_expr = .fromOptional(cont_expr),
27622768
.then_expr = then_expr,
27632769
.else_expr = else_expr,
@@ -3235,7 +3241,8 @@ fn parseSuffixOp(p: *Parse, lhs: Node.Index) !?Node.Index {
32353241
.tag = .slice_sentinel,
32363242
.main_token = lbracket,
32373243
.data = .{ .node_and_extra = .{
3238-
lhs, try p.addExtra(Node.SliceSentinel{
3244+
lhs,
3245+
try p.addExtra(Node.SliceSentinel{
32393246
.start = index_expr,
32403247
.end = .fromOptional(opt_end_expr),
32413248
.sentinel = sentinel,
@@ -3258,7 +3265,8 @@ fn parseSuffixOp(p: *Parse, lhs: Node.Index) !?Node.Index {
32583265
.tag = .slice,
32593266
.main_token = lbracket,
32603267
.data = .{ .node_and_extra = .{
3261-
lhs, try p.addExtra(Node.Slice{
3268+
lhs,
3269+
try p.addExtra(Node.Slice{
32623270
.start = index_expr,
32633271
.end = end_expr,
32643272
}),

src/arch/sparc64/abi.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const allocatable_regs = [_]Register{
3838
};
3939

4040
pub const c_abi_int_param_regs_caller_view = [_]Register{ .o0, .o1, .o2, .o3, .o4, .o5 };
41-
pub const c_abi_int_param_regs_callee_view = [_]Register{ .@"i0", .@"i1", .@"i2", .@"i3", .@"i4", .@"i5" };
41+
pub const c_abi_int_param_regs_callee_view = [_]Register{ .i0, .i1, .i2, .i3, .i4, .i5 };
4242

4343
pub const c_abi_int_return_regs_caller_view = [_]Register{ .o0, .o1, .o2, .o3 };
44-
pub const c_abi_int_return_regs_callee_view = [_]Register{ .@"i0", .@"i1", .@"i2", .@"i3" };
44+
pub const c_abi_int_return_regs_callee_view = [_]Register{ .i0, .i1, .i2, .i3 };
4545

4646
pub const RegisterManager = RegisterManagerFn(@import("CodeGen.zig"), Register, &allocatable_regs);
4747

src/link.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,8 @@ fn resolveLibInput(
19441944
const test_path: Path = .{
19451945
.root_dir = lib_directory,
19461946
.sub_path = try std.fmt.allocPrint(arena, "{s}{s}{s}", .{
1947-
target.libPrefix(), lib_name, switch (link_mode) {
1947+
target.libPrefix(), lib_name,
1948+
switch (link_mode) {
19481949
.static => target.staticLibSuffix(),
19491950
.dynamic => target.dynamicLibSuffix(),
19501951
},

test/link/elf.zig

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ fn testComdatElimination(b: *Build, opts: Options) *Step {
475475
fn testCommentString(b: *Build, opts: Options) *Step {
476476
const test_step = addTestStep(b, "comment-string", opts);
477477

478-
const exe = addExecutable(b, opts, .{ .name = "main", .zig_source_bytes =
478+
const exe = addExecutable(b, opts, .{ .name = "main", .zig_source_bytes =
479479
\\pub fn main() void {}
480480
});
481481

@@ -490,7 +490,7 @@ fn testCommentString(b: *Build, opts: Options) *Step {
490490
fn testCommentStringStaticLib(b: *Build, opts: Options) *Step {
491491
const test_step = addTestStep(b, "comment-string-static-lib", opts);
492492

493-
const lib = addStaticLibrary(b, opts, .{ .name = "lib", .zig_source_bytes =
493+
const lib = addStaticLibrary(b, opts, .{ .name = "lib", .zig_source_bytes =
494494
\\export fn foo() void {}
495495
});
496496

@@ -861,7 +861,7 @@ fn testDsoUndef(b: *Build, opts: Options) *Step {
861861
fn testEmitRelocatable(b: *Build, opts: Options) *Step {
862862
const test_step = addTestStep(b, "emit-relocatable", opts);
863863

864-
const a_o = addObject(b, opts, .{ .name = "a", .zig_source_bytes =
864+
const a_o = addObject(b, opts, .{ .name = "a", .zig_source_bytes =
865865
\\const std = @import("std");
866866
\\extern var bar: i32;
867867
\\export fn foo() i32 {
@@ -873,7 +873,7 @@ fn testEmitRelocatable(b: *Build, opts: Options) *Step {
873873
});
874874
a_o.root_module.link_libc = true;
875875

876-
const b_o = addObject(b, opts, .{ .name = "b", .c_source_bytes =
876+
const b_o = addObject(b, opts, .{ .name = "b", .c_source_bytes =
877877
\\#include <stdio.h>
878878
\\int bar = 42;
879879
\\void printBar() {
@@ -886,7 +886,7 @@ fn testEmitRelocatable(b: *Build, opts: Options) *Step {
886886
c_o.root_module.addObject(a_o);
887887
c_o.root_module.addObject(b_o);
888888

889-
const exe = addExecutable(b, opts, .{ .name = "test", .zig_source_bytes =
889+
const exe = addExecutable(b, opts, .{ .name = "test", .zig_source_bytes =
890890
\\const std = @import("std");
891891
\\extern fn printFoo() void;
892892
\\extern fn printBar() void;
@@ -1920,7 +1920,7 @@ fn testInitArrayOrder(b: *Build, opts: Options) *Step {
19201920
});
19211921
g_o.root_module.link_libc = true;
19221922

1923-
const h_o = addObject(b, opts, .{ .name = "h", .c_source_bytes =
1923+
const h_o = addObject(b, opts, .{ .name = "h", .c_source_bytes =
19241924
\\#include <stdio.h>
19251925
\\__attribute__((destructor)) void fini2() { printf("8"); }
19261926
});
@@ -2498,7 +2498,7 @@ fn testMergeStrings(b: *Build, opts: Options) *Step {
24982498
fn testMergeStrings2(b: *Build, opts: Options) *Step {
24992499
const test_step = addTestStep(b, "merge-strings2", opts);
25002500

2501-
const obj1 = addObject(b, opts, .{ .name = "a", .zig_source_bytes =
2501+
const obj1 = addObject(b, opts, .{ .name = "a", .zig_source_bytes =
25022502
\\const std = @import("std");
25032503
\\export fn foo() void {
25042504
\\ var arr: [5:0]u16 = [_:0]u16{ 1, 2, 3, 4, 5 };
@@ -2507,7 +2507,7 @@ fn testMergeStrings2(b: *Build, opts: Options) *Step {
25072507
\\}
25082508
});
25092509

2510-
const obj2 = addObject(b, opts, .{ .name = "b", .zig_source_bytes =
2510+
const obj2 = addObject(b, opts, .{ .name = "b", .zig_source_bytes =
25112511
\\const std = @import("std");
25122512
\\extern fn foo() void;
25132513
\\pub fn main() void {
@@ -2755,7 +2755,7 @@ fn testRelocatableEhFrame(b: *Build, opts: Options) *Step {
27552755
,
27562756
});
27572757
obj2.root_module.link_libcpp = true;
2758-
const obj3 = addObject(b, opts, .{ .name = "obj3", .cpp_source_bytes =
2758+
const obj3 = addObject(b, opts, .{ .name = "obj3", .cpp_source_bytes =
27592759
\\#include <iostream>
27602760
\\#include <stdexcept>
27612761
\\extern int try_again();
@@ -2867,7 +2867,7 @@ fn testRelocatableEhFrameComdatHeavy(b: *Build, opts: Options) *Step {
28672867
fn testRelocatableMergeStrings(b: *Build, opts: Options) *Step {
28682868
const test_step = addTestStep(b, "relocatable-merge-strings", opts);
28692869

2870-
const obj1 = addObject(b, opts, .{ .name = "a", .asm_source_bytes =
2870+
const obj1 = addObject(b, opts, .{ .name = "a", .asm_source_bytes =
28712871
\\.section .rodata.str1.1,"aMS",@progbits,1
28722872
\\val1:
28732873
\\.ascii "Hello \0"
@@ -3033,7 +3033,7 @@ fn testStrip(b: *Build, opts: Options) *Step {
30333033
fn testThunks(b: *Build, opts: Options) *Step {
30343034
const test_step = addTestStep(b, "thunks", opts);
30353035

3036-
const exe = addExecutable(b, opts, .{ .name = "main", .c_source_bytes =
3036+
const exe = addExecutable(b, opts, .{ .name = "main", .c_source_bytes =
30373037
\\void foo();
30383038
\\__attribute__((section(".bar"))) void bar() {
30393039
\\ return foo();

0 commit comments

Comments
 (0)