Home | History | Annotate | Download | only in ubsan
      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