111
|
1 //===-- ubsan_flags.inc -----------------------------------------*- C++ -*-===//
|
|
2 //
|
|
3 // This file is distributed under the University of Illinois Open Source
|
|
4 // License. See LICENSE.TXT for details.
|
|
5 //
|
|
6 //===----------------------------------------------------------------------===//
|
|
7 //
|
|
8 // UBSan runtime flags.
|
|
9 //
|
|
10 //===----------------------------------------------------------------------===//
|
|
11 #ifndef UBSAN_FLAG
|
|
12 # error "Define UBSAN_FLAG prior to including this file!"
|
|
13 #endif
|
|
14
|
|
15 // UBSAN_FLAG(Type, Name, DefaultValue, Description)
|
|
16 // See COMMON_FLAG in sanitizer_flags.inc for more details.
|
|
17
|
|
18 UBSAN_FLAG(bool, halt_on_error, false,
|
|
19 "Crash the program after printing the first error report")
|
|
20 UBSAN_FLAG(bool, print_stacktrace, false,
|
|
21 "Include full stacktrace into an error report")
|
|
22 UBSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
|
|
23 UBSAN_FLAG(bool, report_error_type, false,
|
|
24 "Print specific error type instead of 'undefined-behavior' in summary.")
|