| author | |
| committer | |
| log | 32e5248820a71895ed2833bdc1f91826c7a4dba7 |
| tree | 35b0e67037bf899833f9b0adc04dc45217e0d7da |
| parent | 5eaf948e6250391b412881aeb702666bfe7d4c42 |
2 files changed, 1 insertions(+), 17 deletions(-)
lib/std/zig/parser_test.zig-11| ... | ... | @@ -114,17 +114,6 @@ test "zig fmt: trailing comma in fn parameter list" { |
| 114 | 114 | ); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | // TODO: Remove condition after deprecating 'typeOf'. See https://github.com/ziglang/zig/issues/1348 | |
| 118 | test "zig fmt: change @typeOf to @TypeOf" { | |
| 119 | try testTransform( | |
| 120 | \\const a = @typeOf(@as(usize, 10)); | |
| 121 | \\ | |
| 122 | , | |
| 123 | \\const a = @TypeOf(@as(usize, 10)); | |
| 124 | \\ | |
| 125 | ); | |
| 126 | } | |
| 127 | ||
| 128 | 117 | // TODO: Remove nakedcc/stdcallcc once zig 0.6.0 is released. See https://github.com/ziglang/zig/pull/3977 |
| 129 | 118 | test "zig fmt: convert extern/nakedcc/stdcallcc into callconv(...)" { |
| 130 | 119 | try testTransform( |
lib/std/zig/render.zig+1-6| ... | ... | @@ -1359,12 +1359,7 @@ fn renderExpression( |
| 1359 | 1359 | .BuiltinCall => { |
| 1360 | 1360 | const builtin_call = @fieldParentPtr(ast.Node.BuiltinCall, "base", base); |
| 1361 | 1361 | |
| 1362 | // TODO: Remove condition after deprecating 'typeOf'. See https://github.com/ziglang/zig/issues/1348 | |
| 1363 | if (mem.eql(u8, tree.tokenSlicePtr(tree.tokens.at(builtin_call.builtin_token)), "@typeOf")) { | |
| 1364 | try stream.writeAll("@TypeOf"); | |
| 1365 | } else { | |
| 1366 | try renderToken(tree, stream, builtin_call.builtin_token, indent, start_col, Space.None); // @name | |
| 1367 | } | |
| 1362 | try renderToken(tree, stream, builtin_call.builtin_token, indent, start_col, Space.None); // @name | |
| 1368 | 1363 | |
| 1369 | 1364 | const src_params_trailing_comma = blk: { |
| 1370 | 1365 | if (builtin_call.params.len < 2) break :blk false; |