1 //===-- ubsan_init.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 // Initialization function for UBSan runtime.
11 //===----------------------------------------------------------------------===//
17 // Get the full tool name for UBSan.
18 const char *GetSanititizerToolName();
20 // Initialize UBSan as a standalone tool. Typically should be called early
21 // during initialization.
22 void InitAsStandalone();
24 // Initialize UBSan as a standalone tool, if it hasn't been initialized before.
25 void InitAsStandaloneIfNecessary();
27 // Initializes UBSan as a plugin tool. This function should be called once
28 // from "parent tool" (e.g. ASan) initialization.
31 } // namespace __ubsan
33 #endif // UBSAN_INIT_H