mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
zig fmt: additionally auto-fix @byteSwap (#16462)
This commit is contained in:
parent
d962ad5ea0
commit
f31e114f63
1 changed files with 3 additions and 0 deletions
|
|
@ -1398,6 +1398,7 @@ fn renderBuiltinCall(
|
||||||
"@floatCast",
|
"@floatCast",
|
||||||
"@intCast",
|
"@intCast",
|
||||||
"@ptrCast",
|
"@ptrCast",
|
||||||
|
|
||||||
"@intFromFloat",
|
"@intFromFloat",
|
||||||
"@floatToInt",
|
"@floatToInt",
|
||||||
"@enumFromInt",
|
"@enumFromInt",
|
||||||
|
|
@ -1406,7 +1407,9 @@ fn renderBuiltinCall(
|
||||||
"@intToFloat",
|
"@intToFloat",
|
||||||
"@ptrFromInt",
|
"@ptrFromInt",
|
||||||
"@intToPtr",
|
"@intToPtr",
|
||||||
|
|
||||||
"@truncate",
|
"@truncate",
|
||||||
|
"@byteSwap",
|
||||||
}) |name| {
|
}) |name| {
|
||||||
if (mem.eql(u8, slice, name)) break true;
|
if (mem.eql(u8, slice, name)) break true;
|
||||||
} else false;
|
} else false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue