Skip to content

Commit 4737b12

Browse files
committed
Update clang-tidy expected output for newer versions
Newer clang-tidy versions (15+) include line numbers and formatting bars in error output: Old: 'int main(){...}' New: ' 2 | int main(){...}' ' | ^' Updated expected output format in integration tests to match.
1 parent b080692 commit 4737b12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def generate_clang_tidy_tests(cls):
125125
additional_args = [[], ["-fix"], ["--fix-errors"], ["--", "-std=c18"]]
126126
clang_tidy_args_sets = [ct_base_args + arg for arg in additional_args]
127127
clang_tidy_err_str = """{0}:2:18: error: non-void function 'main' should return a value [clang-diagnostic-return-type]
128-
int main(){{int i;return;}}
129-
^
128+
2 | int main(){{int i;return;}}
129+
| ^
130130
1 error generated.
131131
Error while processing {0}.
132132
""" # noqa: E501

0 commit comments

Comments
 (0)