Path: blob/main/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/options_parser.h
35271 views
//===-- options_parser.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 GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_9#define GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_1011#include "gwp_asan/optional/printf.h"12#include "gwp_asan/options.h"1314namespace gwp_asan {15namespace options {16// Parse the options from the GWP_ASAN_OPTIONS environment variable.17void initOptions(Printf_t PrintfForWarnings = nullptr);18// Parse the options from the provided string.19void initOptions(const char *OptionsStr, Printf_t PrintfForWarnings = nullptr);20// Returns the initialised options. Call initOptions() prior to calling this21// function.22Options &getOptions();23} // namespace options24} // namespace gwp_asan2526extern "C" {27__attribute__((weak)) const char *__gwp_asan_default_options();28}2930#endif // GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_313233