-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clang-tidy report converter now supports clang17 fixit format
clang-tidy version 17 introduced a new fixit diagnostic formatting. The report converter is now prepared to parse this new format. It also still supports the old format.
- Loading branch information
Showing
3 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tools/report-converter/tests/unit/analyzers/tidy_output_test_files/tidy3-clang17.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
files/test3.hh:6:6: warning: Dereference of null pointer (loaded from variable 'x') [clang-analyzer-core.NullDereference] | ||
6 | *x = 42; | ||
| ^ | ||
files/test3.cpp:4:3: note: 'x' initialized to a null pointer value | ||
4 | int* x = 0; | ||
| ^~~~~~ | ||
files/test3.cpp:6:11: note: Assuming 'argc' is > 3 | ||
6 | if (foo(argc > 3)) { | ||
| ^~~~~~~~ | ||
files/test3.cpp:6:3: note: Taking true branch | ||
6 | if (foo(argc > 3)) { | ||
| ^ | ||
files/test3.cpp:7:9: note: Passing null pointer value via 1st parameter 'x' | ||
7 | bar(x); | ||
| ^ | ||
files/test3.cpp:7:5: note: Calling 'bar' | ||
7 | bar(x); | ||
| ^~~~~~ | ||
files/test3.hh:6:6: note: Dereference of null pointer (loaded from variable 'x') | ||
6 | *x = 42; | ||
| ~ ^ | ||
files/test3.cpp:4:12: warning: use nullptr [modernize-use-nullptr] | ||
4 | int* x = 0; | ||
| ^ | ||
| nullptr |