1 | //===-- dfsan_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 DataFlowSanitizer. |
10 | // |
11 | // DFSan flags. |
12 | //===----------------------------------------------------------------------===// |
13 | |
14 | #ifndef DFSAN_FLAGS_H |
15 | #define DFSAN_FLAGS_H |
16 | |
17 | namespace __dfsan { |
18 | |
19 | struct Flags { |
20 | #define DFSAN_FLAG(Type, Name, DefaultValue, Description) Type Name; |
21 | #include "dfsan_flags.inc" |
22 | #undef DFSAN_FLAG |
23 | |
24 | void SetDefaults(); |
25 | }; |
26 | |
27 | extern Flags flags_data; |
28 | inline Flags &flags() { return flags_data; } |
29 | |
30 | } // namespace __dfsan |
31 | |
32 | #endif // DFSAN_FLAGS_H |
33 | |