Home | History | Annotate | Line # | Download | only in ubsan
      1 //===-- ubsan_flags.inc -----------------------------------------*- C++ -*-===//
      2 //
      3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
      4 // See https://llvm.org/LICENSE.txt for license information.
      5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
      6 //
      7 //===----------------------------------------------------------------------===//
      8 //
      9 // UBSan runtime flags.
     10 //
     11 //===----------------------------------------------------------------------===//
     12 #ifndef UBSAN_FLAG
     13 # error "Define UBSAN_FLAG prior to including this file!"
     14 #endif
     15 
     16 // UBSAN_FLAG(Type, Name, DefaultValue, Description)
     17 // See COMMON_FLAG in sanitizer_flags.inc for more details.
     18 
     19 UBSAN_FLAG(bool, halt_on_error, false,
     20            "Crash the program after printing the first error report")
     21 UBSAN_FLAG(bool, print_stacktrace, false,
     22            "Include full stacktrace into an error report")
     23 UBSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
     24 UBSAN_FLAG(bool, report_error_type, false,
     25         "Print specific error type instead of 'undefined-behavior' in summary.")
     26 UBSAN_FLAG(bool, silence_unsigned_overflow, false,
     27         "Do not print non-fatal error reports for unsigned integer overflow. "
     28         "Used to provide fuzzing signal without blowing up logs.")
     29