@@ -51,33 +51,47 @@ void goto_check_c(
51
51
" (no-bounds-check)(no-pointer-check)(no-signed-overflow-check)" \
52
52
" (no-pointer-primitive-check)(no-undefined-shift-check)(no-div-by-zero-check)"
53
53
54
- #define HELP_GOTO_CHECK \
55
- " {y--bounds-check} \t enable array bounds checks\n " \
56
- " {y--pointer-check} \t enable pointer checks\n " \
54
+ // clang-format off
55
+ #define HELP_GOTO_CHECK \
56
+ " {y--no-standard-checks} \t disable default checks (more information in manpage)" /* NOLINT(whitespace/line_length) */ \
57
+ " {y--bounds-check} \t enable array bounds checks (default on)\n " \
58
+ " {y--no-bounds-check} \t disable array bounds checks\n " \
59
+ " {y--pointer-check} \t enable pointer checks (default on)\n " \
60
+ " {y--no-pointer-check} \t disable pointer checks\n " \
57
61
" {y--memory-leak-check} \t enable memory leak checks\n " \
58
62
" {y--memory-cleanup-check} \t enable memory cleanup checks\n " \
59
- " {y--div-by-zero-check} \t enable division by zero checks\n " \
63
+ " {y--div-by-zero-check} \t enable division by zero checks (default on)\n " \
64
+ " {y--no-div-by-zero-check} \t disable division by zero checks\n " \
60
65
" {y--signed-overflow-check} \t " \
61
- " enable signed arithmetic over- and underflow checks\n " \
66
+ " enable signed arithmetic over- and underflow checks (default on)\n " \
67
+ " {y--no-signed-overflow-check} \t " \
68
+ " disable signed arithmetic over- and underflow checks\n " \
62
69
" {y--unsigned-overflow-check} \t " \
63
70
" enable arithmetic over- and underflow checks\n " \
64
71
" {y--pointer-overflow-check} \t " \
65
72
" enable pointer arithmetic over- and underflow checks\n " \
66
73
" {y--conversion-check} \t " \
67
74
" check whether values can be represented after type cast\n " \
68
- " {y--undefined-shift-check} \t check shift greater than bit-width\n " \
75
+ " {y--undefined-shift-check} \t check shift greater than bit-width " \
76
+ " (default on)\n " \
77
+ " {y--no-undefined-shift-check} \t disable check for shift greater than " \
78
+ " bit-width\n " \
69
79
" {y--float-overflow-check} \t check floating-point for +/-Inf\n " \
70
80
" {y--nan-check} \t check floating-point for NaN\n " \
71
81
" {y--enum-range-check} \t " \
72
82
" checks that all enum type expressions have values in the enum range\n " \
73
83
" {y--pointer-primitive-check} \t " \
74
- " checks that all pointers in pointer primitives are valid or null\n " \
84
+ " checks that all pointers in pointer primitives are valid or null (default " \
85
+ " on)\n " \
86
+ " {y--no-pointer-primitive-check} \t " \
87
+ " disable checks that all pointers in pointer primitives are valid or null\n " \
75
88
" {y--retain-trivial-checks} \t include checks that are trivially true\n " \
76
89
" {y--error-label} {ulabel} \t check that label {ulabel} is unreachable\n " \
77
90
" {y--no-built-in-assertions} \t ignore assertions in built-in library\n " \
78
91
" {y--no-assertions} \t ignore user assertions\n " \
79
92
" {y--no-assumptions} \t ignore user assumptions\n " \
80
93
" {y--assert-to-assume} \t convert user assertions to assumptions\n "
94
+ // clang-format on
81
95
82
96
// clang-format off
83
97
#define PARSE_OPTIONS_GOTO_CHECK_NEGATIVE_DEFAULT_CHECKS (cmdline, options ) \
0 commit comments