Path: blob/main/contrib/llvm-project/compiler-rt/lib/ubsan/ubsan_init.h
35233 views
//===-- ubsan_init.h --------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// Initialization function for UBSan runtime.9//10//===----------------------------------------------------------------------===//11#ifndef UBSAN_INIT_H12#define UBSAN_INIT_H1314namespace __ubsan {1516// Get the full tool name for UBSan.17const char *GetSanititizerToolName();1819// Initialize UBSan as a standalone tool. Typically should be called early20// during initialization.21void InitAsStandalone();2223// Initialize UBSan as a standalone tool, if it hasn't been initialized before.24void InitAsStandaloneIfNecessary();2526// Initializes UBSan as a plugin tool. This function should be called once27// from "parent tool" (e.g. ASan) initialization.28void InitAsPlugin();2930} // namespace __ubsan3132#endif // UBSAN_INIT_H333435