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
14namespace __rtsan {
15
16struct 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
25extern Flags flags_data;
26inline Flags &flags() { return flags_data; }
27
28void InitializeFlags();
29
30} // namespace __rtsan
31