2015-10-21 09:32:45 +02:00
|
|
|
//===-- ubsan_flags.inc -----------------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-08-14 10:47:11 +02:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-10-21 09:32:45 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// UBSan runtime flags.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef UBSAN_FLAG
|
|
|
|
# error "Define UBSAN_FLAG prior to including this file!"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// UBSAN_FLAG(Type, Name, DefaultValue, Description)
|
|
|
|
// See COMMON_FLAG in sanitizer_flags.inc for more details.
|
|
|
|
|
|
|
|
UBSAN_FLAG(bool, halt_on_error, false,
|
|
|
|
"Crash the program after printing the first error report")
|
|
|
|
UBSAN_FLAG(bool, print_stacktrace, false,
|
|
|
|
"Include full stacktrace into an error report")
|
|
|
|
UBSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
|
|
|
|
UBSAN_FLAG(bool, report_error_type, false,
|
|
|
|
"Print specific error type instead of 'undefined-behavior' in summary.")
|
2018-10-31 12:14:23 +01:00
|
|
|
UBSAN_FLAG(bool, silence_unsigned_overflow, false,
|
2019-08-14 10:47:11 +02:00
|
|
|
"Do not print non-fatal error reports for unsigned integer overflow. "
|
|
|
|
"Used to provide fuzzing signal without blowing up logs.")
|