]> git.proxmox.com Git - rustc.git/blob - src/compiler-rt/lib/sanitizer_common/sancov_flags.h
New upstream version 1.19.0+dfsg3
[rustc.git] / src / compiler-rt / lib / sanitizer_common / sancov_flags.h
1 //===-- sancov_flags.h ------------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Sanitizer Coverage runtime flags.
11 //
12 //===----------------------------------------------------------------------===//
13 #ifndef SANCOV_FLAGS_H
14 #define SANCOV_FLAGS_H
15
16 #include "sanitizer_flag_parser.h"
17 #include "sanitizer_internal_defs.h"
18
19 namespace __sancov {
20
21 struct SancovFlags {
22 #define SANCOV_FLAG(Type, Name, DefaultValue, Description) Type Name;
23 #include "sancov_flags.inc"
24 #undef SANCOV_FLAG
25
26 void SetDefaults();
27 };
28
29 extern SancovFlags sancov_flags_dont_use_directly;
30
31 inline SancovFlags* sancov_flags() { return &sancov_flags_dont_use_directly; }
32
33 void InitializeSancovFlags();
34
35 extern "C" SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char*
36 __sancov_default_options();
37
38 } // namespace __sancov
39
40 #endif