brintos

brintos / llvm-project-archived public Read only

0
0
Text · 861 B · ec7edf6 Raw
33 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// This file is a part of DataFlowSanitizer.10//11// DFSan flags.12//===----------------------------------------------------------------------===//13 14#ifndef DFSAN_FLAGS_H15#define DFSAN_FLAGS_H16 17namespace __dfsan {18 19struct Flags {20#define DFSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;21#include "dfsan_flags.inc"22#undef DFSAN_FLAG23 24  void SetDefaults();25};26 27extern Flags flags_data;28inline Flags &flags() { return flags_data; }29 30}  // namespace __dfsan31 32#endif  // DFSAN_FLAGS_H33