brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · b846c12 Raw
38 lines · c
1//===-- xray_basic_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 XRay, a dynamic runtime instrumentation system.10//11// XRay Basic Mode runtime flags.12//===----------------------------------------------------------------------===//13 14#ifndef XRAY_BASIC_FLAGS_H15#define XRAY_BASIC_FLAGS_H16 17#include "sanitizer_common/sanitizer_flag_parser.h"18#include "sanitizer_common/sanitizer_internal_defs.h"19 20namespace __xray {21 22struct BasicFlags {23#define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;24#include "xray_basic_flags.inc"25#undef XRAY_FLAG26 27  void setDefaults();28};29 30extern BasicFlags xray_basic_flags_dont_use_directly;31extern void registerXRayBasicFlags(FlagParser *P, BasicFlags *F);32const char *useCompilerDefinedBasicFlags();33inline BasicFlags *basicFlags() { return &xray_basic_flags_dont_use_directly; }34 35} // namespace __xray36 37#endif // XRAY_BASIC_FLAGS_H38