1 //===-- ubsan_flags.inc -----------------------------------------*- C++ -*-===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // UBSan runtime flags.
10 //===----------------------------------------------------------------------===//
12 # error "Define UBSAN_FLAG prior to including this file!"
15 // UBSAN_FLAG(Type, Name, DefaultValue, Description)
16 // See COMMON_FLAG in sanitizer_flags.inc for more details.
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.")
25 UBSAN_FLAG(bool, silence_unsigned_overflow, false,
26 "Do not print error reports for unsigned integer overflow. "
27 "Used to provide fuzzing signal without blowing up logs.")