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"
16 namespace __sanitizer
{
23 #define UBSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
24 #include "ubsan_flags.inc"
30 extern Flags ubsan_flags
;
31 inline Flags
*flags() { return &ubsan_flags
; }
33 void InitializeFlags();
34 void RegisterUbsanFlags(FlagParser
*parser
, Flags
*f
);
36 const char *MaybeCallUbsanDefaultOptions();
38 } // namespace __ubsan
41 // Users may provide their own implementation of __ubsan_default_options to
42 // override the default flag values.
43 SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
44 const char *__ubsan_default_options();
47 #endif // UBSAN_FLAGS_H