annotate libsanitizer/ubsan/ubsan_init.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 //===-- ubsan_init.h --------------------------------------------*- C++ -*-===//
kono
parents:
diff changeset
2 //
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
111
kono
parents:
diff changeset
6 //
kono
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
8 //
kono
parents:
diff changeset
9 // Initialization function for UBSan runtime.
kono
parents:
diff changeset
10 //
kono
parents:
diff changeset
11 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
12 #ifndef UBSAN_INIT_H
kono
parents:
diff changeset
13 #define UBSAN_INIT_H
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 namespace __ubsan {
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 // Get the full tool name for UBSan.
kono
parents:
diff changeset
18 const char *GetSanititizerToolName();
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 // Initialize UBSan as a standalone tool. Typically should be called early
kono
parents:
diff changeset
21 // during initialization.
kono
parents:
diff changeset
22 void InitAsStandalone();
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 // Initialize UBSan as a standalone tool, if it hasn't been initialized before.
kono
parents:
diff changeset
25 void InitAsStandaloneIfNecessary();
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 // Initializes UBSan as a plugin tool. This function should be called once
kono
parents:
diff changeset
28 // from "parent tool" (e.g. ASan) initialization.
kono
parents:
diff changeset
29 void InitAsPlugin();
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 } // namespace __ubsan
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 #endif // UBSAN_INIT_H