]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/ubsan/ubsan_flags.inc
Merge clang 7.0.1 and several follow-up changes
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / ubsan / ubsan_flags.inc
1 //===-- ubsan_flags.inc -----------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // UBSan runtime flags.
11 //
12 //===----------------------------------------------------------------------===//
13 #ifndef UBSAN_FLAG
14 # error "Define UBSAN_FLAG prior to including this file!"
15 #endif
16
17 // UBSAN_FLAG(Type, Name, DefaultValue, Description)
18 // See COMMON_FLAG in sanitizer_flags.inc for more details.
19
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.")
27 UBSAN_FLAG(bool, silence_unsigned_overflow, false,
28         "Do not print error reports for unsigned integer overflow. "
29         "Used to provide fuzzing signal without blowing up logs.")