Path: blob/main/contrib/llvm-project/compiler-rt/lib/scudo/standalone/flags.h
35291 views
//===-- 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//===----------------------------------------------------------------------===//78#ifndef SCUDO_FLAGS_H_9#define SCUDO_FLAGS_H_1011#include "internal_defs.h"1213namespace scudo {1415struct Flags {16#define SCUDO_FLAG(Type, Name, DefaultValue, Description) Type Name;17#include "flags.inc"18#undef SCUDO_FLAG1920#ifdef GWP_ASAN_HOOKS21#define GWP_ASAN_OPTION(Type, Name, DefaultValue, Description) \22Type GWP_ASAN_##Name;23#include "gwp_asan/options.inc"24#undef GWP_ASAN_OPTION25#endif // GWP_ASAN_HOOKS2627void setDefaults();28};2930Flags *getFlags();31void initFlags();32class FlagParser;33void registerFlags(FlagParser *Parser, Flags *F);3435} // namespace scudo3637#endif // SCUDO_FLAGS_H_383940