1 //===-- ubsan_init.h --------------------------------------------*- C++ -*-===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // Initialization function for UBSan runtime.
10 //===----------------------------------------------------------------------===//
16 // Initialize UBSan as a standalone tool. Typically should be called early
17 // during initialization.
18 void InitAsStandalone();
20 // Initialize UBSan as a standalone tool, if it hasn't been initialized before.
21 void InitAsStandaloneIfNecessary();
23 // Initializes UBSan as a plugin tool. This function should be called once
24 // from "parent tool" (e.g. ASan) initialization.
27 } // namespace __ubsan
29 #endif // UBSAN_INIT_H