forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[report-converter] Support Clang 17.0+ FixIt in Clang-Tidy (Ericsson#…
…4052) Clang-Tidy version 17.0 introduced a new FixIt diagnostic formatting. The report converter is now prepared to parse this new format. It also still supports the old format. Co-Authored-By: Whisperity <[email protected]>
- Loading branch information
1 parent
5d91c86
commit 9f38b00
Showing
3 changed files
with
53 additions
and
5 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 |