Skip to content

Commit 8c3fb8d

Browse files
committed
Update include-what-you-use expected output format
Newer IWYU versions use the same line number format as clang-tidy. Updated expected output to match new format with line numbers and bars.
1 parent f2200eb commit 8c3fb8d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_hooks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ def generate_cpplint_tests(cls):
203203
def generate_iwyu_tests(cls):
204204
iwyu_arg_sets = [[]]
205205
iwyu_err_c = """{0}:2:18: error: non-void function 'main' should return a value [-Wreturn-type]
206-
int main(){{int i;return;}}
207-
^
206+
2 | int main(){{int i;return;}}
207+
| ^
208208
209209
{0} should add these lines:
210210
@@ -217,8 +217,8 @@ def generate_iwyu_tests(cls):
217217
cls.err_c
218218
).encode()
219219
iwyu_err_cpp = """{0}:2:18: error: non-void function 'main' should return a value [-Wreturn-type]
220-
int main(){{int i;return;}}
221-
^
220+
2 | int main(){{int i;return;}}
221+
| ^
222222
223223
{0} should add these lines:
224224

0 commit comments

Comments
 (0)