]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/compiler-rt/lib/sanitizer_common/sancov_flags.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / compiler-rt / lib / sanitizer_common / sancov_flags.h
1 //===-- sancov_flags.h ------------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Sanitizer Coverage runtime flags.
10 //
11 //===----------------------------------------------------------------------===//
12 #ifndef SANCOV_FLAGS_H
13 #define SANCOV_FLAGS_H
14
15 #include "sanitizer_flag_parser.h"
16 #include "sanitizer_internal_defs.h"
17
18 namespace __sancov {
19
20 struct SancovFlags {
21 #define SANCOV_FLAG(Type, Name, DefaultValue, Description) Type Name;
22 #include "sancov_flags.inc"
23 #undef SANCOV_FLAG
24
25   void SetDefaults();
26 };
27
28 extern SancovFlags sancov_flags_dont_use_directly;
29
30 inline SancovFlags* sancov_flags() { return &sancov_flags_dont_use_directly; }
31
32 void InitializeSancovFlags();
33
34 }  // namespace __sancov
35
36 extern "C" SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char*
37 __sancov_default_options();
38
39 #endif