blob: a4d0e6109e361981b5c1cb9ebed75b848cbaf80c [file] [log] [blame]
//===-- -----------------------------------------*- C++ -*-===//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// UBSan runtime flags.
#ifndef UBSAN_FLAG
# error "Define UBSAN_FLAG prior to including this file!"
// UBSAN_FLAG(Type, Name, DefaultValue, Description)
// See COMMON_FLAG in 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.")
UBSAN_FLAG(bool, silence_unsigned_overflow, false,
"Do not print non-fatal error reports for unsigned integer overflow. "
"Used to provide fuzzing signal without blowing up logs.")