Path: blob/main/contrib/llvm-project/compiler-rt/lib/xray/xray_basic_flags.h
35265 views
//===-- xray_basic_flags.h -------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of XRay, a dynamic runtime instrumentation system.9//10// XRay Basic Mode runtime flags.11//===----------------------------------------------------------------------===//1213#ifndef XRAY_BASIC_FLAGS_H14#define XRAY_BASIC_FLAGS_H1516#include "sanitizer_common/sanitizer_flag_parser.h"17#include "sanitizer_common/sanitizer_internal_defs.h"1819namespace __xray {2021struct BasicFlags {22#define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;23#include "xray_basic_flags.inc"24#undef XRAY_FLAG2526void setDefaults();27};2829extern BasicFlags xray_basic_flags_dont_use_directly;30extern void registerXRayBasicFlags(FlagParser *P, BasicFlags *F);31const char *useCompilerDefinedBasicFlags();32inline BasicFlags *basicFlags() { return &xray_basic_flags_dont_use_directly; }3334} // namespace __xray3536#endif // XRAY_BASIC_FLAGS_H373839