forked from csutils/csdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsgrep.h2m
44 lines (33 loc) · 1.13 KB
/
csgrep.h2m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[NAME]
csgrep - filter the list of defects by the specified regex-based predicates
[EXAMPLE - CHECKERS, EVENTS, MESSAGES]
.nf
Error: FORWARD_NULL (CWE-476):
libhsm.c:1168: assign_zero: Assigning: key_handles = NULL.
libhsm.c:1210: var_deref_op: Dereferencing null pointer key_handles.
.fi
In the above example, FORWARD_NULL is the
.B checker
, assign_zero and var_deref_op are
.B events
, where var_deref_op is the key event and
"Dereferencing null pointer key_handles." is the
.B message
associated with the key event.
[DESCRIPTION OF AVAILABLE MODES]
.B dig_key_events
- for each defect, print only the checker and key event
.B evtstat
- print overall checker/key_event statistics for the matched defects
.B files
- print only names of error files that contain the matched defects
.B filestat
- print statistics of matched defects per individual source files
.B grep
- print matched defects using the same format as expected on the input
.B grouped
- print matched defects, grouped by error files they originate from
.B json
- print matched defects in a JSON format
.B stat
- print overall statistics of the matched defects in given error files