Fix compilation of server.cc on hpux.
[official-gcc.git] / libsanitizer / sanitizer_common / sancov_flags.h
blob95d4ee5ca43d7292b9aeb6af7fd324b2483b919f
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.
11 //===----------------------------------------------------------------------===//
12 #ifndef SANCOV_FLAGS_H
13 #define SANCOV_FLAGS_H
15 #include "sanitizer_flag_parser.h"
16 #include "sanitizer_internal_defs.h"
18 namespace __sancov {
20 struct SancovFlags {
21 #define SANCOV_FLAG(Type, Name, DefaultValue, Description) Type Name;
22 #include "sancov_flags.inc"
23 #undef SANCOV_FLAG
25 void SetDefaults();
28 extern SancovFlags sancov_flags_dont_use_directly;
30 inline SancovFlags* sancov_flags() { return &sancov_flags_dont_use_directly; }
32 void InitializeSancovFlags();
34 } // namespace __sancov
36 extern "C" SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char*
37 __sancov_default_options();
39 #endif