1 //===-- ubsan_flags.h -------------------------------------------*- C++ -*-===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // Runtime flags for UndefinedBehaviorSanitizer.
10 //===----------------------------------------------------------------------===//
14 #include "sanitizer_common/sanitizer_internal_defs.h"
20 bool print_stacktrace
;
23 extern Flags ubsan_flags
;
24 inline Flags
*flags() { return &ubsan_flags
; }
26 void InitializeCommonFlags();
27 void InitializeFlags();
29 } // namespace __ubsan
32 // Users may provide their own implementation of __ubsan_default_options to
33 // override the default flag values.
34 SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
35 const char *__ubsan_default_options();
38 #endif // UBSAN_FLAGS_H