//===-- ubsan_flags.cpp ---------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Runtime flags for UndefinedBehaviorSanitizer. // //===----------------------------------------------------------------------===// #include "ubsan_platform.h" #if CAN_SANITIZE_UB #include "ubsan_flags.h" #include "sanitizer_common/sanitizer_common.h" #include "sanitizer_common/sanitizer_flags.h" #include "sanitizer_common/sanitizer_flag_parser.h" #include <stdlib.h> namespace __ubsan { static const char *GetFlag(const char *flag) { … } Flags ubsan_flags; void Flags::SetDefaults() { … } void RegisterUbsanFlags(FlagParser *parser, Flags *f) { … } void InitializeFlags() { … } } // namespace __ubsan SANITIZER_INTERFACE_WEAK_DEF(const char *, __ubsan_default_options, void) { … } #endif // CAN_SANITIZE_UB