1 //===-- ubsan_flags.h -------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // Runtime flags for UndefinedBehaviorSanitizer.
11 //===----------------------------------------------------------------------===//
15 #include "sanitizer_common/sanitizer_internal_defs.h"
17 namespace __sanitizer
{
24 #define UBSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
25 #include "ubsan_flags.inc"
31 extern Flags ubsan_flags
;
32 inline Flags
*flags() { return &ubsan_flags
; }
34 void InitializeFlags();
35 void RegisterUbsanFlags(FlagParser
*parser
, Flags
*f
);
37 } // namespace __ubsan
40 // Users may provide their own implementation of __ubsan_default_options to
41 // override the default flag values.
42 SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
43 const char *__ubsan_default_options();
46 #endif // UBSAN_FLAGS_H