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