Skip to content

Commit 5992227

Browse files
committed
Add documentation for new options in goto_check_c.h
1 parent 6921059 commit 5992227

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

src/ansi-c/goto_check_c.h

+16-6
Original file line numberDiff line numberDiff line change
@@ -52,26 +52,36 @@ void goto_check_c(
5252
"(no-pointer-primitive-check)(no-undefined-shift-check)(no-div-by-zero-check)"
5353

5454
#define HELP_GOTO_CHECK \
55-
" {y--bounds-check} \t enable array bounds checks\n" \
56-
" {y--pointer-check} \t enable pointer checks\n" \
55+
" {y--bounds-check} \t enable array bounds checks (default on)\n" \
56+
" {y--no-bounds-check} \t disable array bounds checks\n" \
57+
" {y--pointer-check} \t enable pointer checks (default on)\n" \
58+
" {y--no-pointer-check} \t disable pointer checks\n" \
5759
" {y--memory-leak-check} \t enable memory leak checks\n" \
5860
" {y--memory-cleanup-check} \t enable memory cleanup checks\n" \
59-
" {y--div-by-zero-check} \t enable division by zero checks\n" \
61+
" {y--div-by-zero-check} \t enable division by zero checks (default on)\n" \
6062
" {y--signed-overflow-check} \t " \
61-
"enable signed arithmetic over- and underflow checks\n" \
63+
"enable signed arithmetic over- and underflow checks (default on)\n" \
64+
" {y--no-signed-overflow-check} \t " \
65+
"disable signed arithmetic over- and underflow checks\n" \
6266
" {y--unsigned-overflow-check} \t " \
6367
"enable arithmetic over- and underflow checks\n" \
6468
" {y--pointer-overflow-check} \t " \
6569
"enable pointer arithmetic over- and underflow checks\n" \
6670
" {y--conversion-check} \t " \
6771
"check whether values can be represented after type cast\n" \
68-
" {y--undefined-shift-check} \t check shift greater than bit-width\n" \
72+
" {y--undefined-shift-check} \t check shift greater than bit-width " \
73+
"(default on)\n" \
74+
" {y--no-undefined-shift-check} \t disable check for shift greater than " \
75+
"bit-width\n" \
6976
" {y--float-overflow-check} \t check floating-point for +/-Inf\n" \
7077
" {y--nan-check} \t check floating-point for NaN\n" \
7178
" {y--enum-range-check} \t " \
7279
"checks that all enum type expressions have values in the enum range\n" \
7380
" {y--pointer-primitive-check} \t " \
74-
"checks that all pointers in pointer primitives are valid or null\n" \
81+
"checks that all pointers in pointer primitives are valid or null (default " \
82+
"on)\n" \
83+
" {y--no-pointer-primitive-check} \t " \
84+
"disable checks that all pointers in pointer primitives are valid or null\n" \
7585
" {y--retain-trivial-checks} \t include checks that are trivially true\n" \
7686
" {y--error-label} {ulabel} \t check that label {ulabel} is unreachable\n" \
7787
" {y--no-built-in-assertions} \t ignore assertions in built-in library\n" \

0 commit comments

Comments
 (0)