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.
[cli] Add file filter option for CodeChecker parse
- Loading branch information
1 parent
153b0e0
commit 3969742
Showing
3 changed files
with
118 additions
and
10 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
39 changes: 39 additions & 0 deletions
39
analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter.output
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,39 @@ | ||
NORMAL#CodeChecker parse $WORKSPACE$/test_files/macros/macros.plist $WORKSPACE$/test_files/notes/notes.plist --file "*macros.cpp" | ||
-------------------------------------------------------------------------------- | ||
[HIGH] macros.cpp:7:8: Dereference of null pointer (loaded from variable 'ptr') [core.NullDereference] | ||
*ptr = 5; // expected-warning{{Dereference of null pointer}} | ||
^ | ||
|
||
Found 1 defect(s) in macros.cpp | ||
|
||
|
||
----==== Severity Statistics ====---- | ||
---------------------------- | ||
Severity | Number of reports | ||
---------------------------- | ||
HIGH | 1 | ||
---------------------------- | ||
----=================---- | ||
|
||
----==== Checker Statistics ====---- | ||
--------------------------------------------------- | ||
Checker name | Severity | Number of reports | ||
--------------------------------------------------- | ||
core.NullDereference | HIGH | 1 | ||
--------------------------------------------------- | ||
----=================---- | ||
|
||
----==== File Statistics ====---- | ||
------------------------------ | ||
File name | Number of reports | ||
------------------------------ | ||
macros.cpp | 1 | ||
------------------------------ | ||
----=================---- | ||
|
||
----======== Summary ========---- | ||
--------------------------------------------- | ||
Number of processed analyzer result files | 2 | ||
Number of analyzer reports | 1 | ||
--------------------------------------------- | ||
----=================---- |
48 changes: 48 additions & 0 deletions
48
analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter_all.output
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,48 @@ | ||
NORMAL#CodeChecker parse $WORKSPACE$/test_files/macros/macros.plist $WORKSPACE$/test_files/notes/notes.plist --file "*.cpp" | ||
-------------------------------------------------------------------------------- | ||
[HIGH] macros.cpp:7:8: Dereference of null pointer (loaded from variable 'ptr') [core.NullDereference] | ||
*ptr = 5; // expected-warning{{Dereference of null pointer}} | ||
^ | ||
|
||
Found 1 defect(s) in macros.cpp | ||
|
||
[LOW] notes.cpp:3:23: Duplicate code detected [alpha.clone.CloneChecker] | ||
int max(int a, int b) { // expected-warning{{Duplicate code detected}} | ||
^ | ||
|
||
Found 1 defect(s) in notes.cpp | ||
|
||
|
||
----==== Severity Statistics ====---- | ||
---------------------------- | ||
Severity | Number of reports | ||
---------------------------- | ||
HIGH | 1 | ||
LOW | 1 | ||
---------------------------- | ||
----=================---- | ||
|
||
----==== Checker Statistics ====---- | ||
------------------------------------------------------- | ||
Checker name | Severity | Number of reports | ||
------------------------------------------------------- | ||
core.NullDereference | HIGH | 1 | ||
alpha.clone.CloneChecker | LOW | 1 | ||
------------------------------------------------------- | ||
----=================---- | ||
|
||
----==== File Statistics ====---- | ||
------------------------------ | ||
File name | Number of reports | ||
------------------------------ | ||
macros.cpp | 1 | ||
notes.cpp | 1 | ||
------------------------------ | ||
----=================---- | ||
|
||
----======== Summary ========---- | ||
--------------------------------------------- | ||
Number of processed analyzer result files | 2 | ||
Number of analyzer reports | 2 | ||
--------------------------------------------- | ||
----=================---- |