Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/compiler-rt/lib/rtsan/rtsan_flags.h
213766 views
1
//===----------------------- rtsan_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
// This file is a part of RealtimeSanitizer.
10
//
11
//===----------------------------------------------------------------------===//
12
#pragma once
13
14
namespace __rtsan {
15
16
struct Flags {
17
#define RTSAN_FLAG(Type, Name, DefaultValue, Description) \
18
Type Name{DefaultValue};
19
#include "rtsan_flags.inc"
20
#undef RTSAN_FLAG
21
22
bool ContainsSuppresionFile() { return suppressions[0] != '\0'; }
23
};
24
25
extern Flags flags_data;
26
inline Flags &flags() { return flags_data; }
27
28
void InitializeFlags();
29
30
} // namespace __rtsan
31
32