annotate libsanitizer/ubsan/ubsan_flags.inc @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 //===-- ubsan_flags.inc -----------------------------------------*- C++ -*-===//
kono
parents:
diff changeset
2 //
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
111
kono
parents:
diff changeset
6 //
kono
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
8 //
kono
parents:
diff changeset
9 // UBSan runtime flags.
kono
parents:
diff changeset
10 //
kono
parents:
diff changeset
11 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
12 #ifndef UBSAN_FLAG
kono
parents:
diff changeset
13 # error "Define UBSAN_FLAG prior to including this file!"
kono
parents:
diff changeset
14 #endif
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 // UBSAN_FLAG(Type, Name, DefaultValue, Description)
kono
parents:
diff changeset
17 // See COMMON_FLAG in sanitizer_flags.inc for more details.
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 UBSAN_FLAG(bool, halt_on_error, false,
kono
parents:
diff changeset
20 "Crash the program after printing the first error report")
kono
parents:
diff changeset
21 UBSAN_FLAG(bool, print_stacktrace, false,
kono
parents:
diff changeset
22 "Include full stacktrace into an error report")
kono
parents:
diff changeset
23 UBSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
kono
parents:
diff changeset
24 UBSAN_FLAG(bool, report_error_type, false,
kono
parents:
diff changeset
25 "Print specific error type instead of 'undefined-behavior' in summary.")
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
26 UBSAN_FLAG(bool, silence_unsigned_overflow, false,
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
27 "Do not print non-fatal error reports for unsigned integer overflow. "
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
28 "Used to provide fuzzing signal without blowing up logs.")