llvm/compiler-rt/lib/gwp_asan/optional/options_parser.cpp

//===-- options_parser.cpp --------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "gwp_asan/optional/options_parser.h"
#include "gwp_asan/optional/printf.h"
#include "gwp_asan/utilities.h"

#include <assert.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

namespace {
enum class OptionType : uint8_t {};

#define InvokeIfNonNull(Printf, ...)

class OptionParser {};

void OptionParser::printOptionDescriptions() {}

bool isSeparator(char C) {}

bool isSeparatorOrNull(char C) {}

void OptionParser::skipWhitespace() {}

bool OptionParser::parseOption() {}

void OptionParser::parseOptions() {}

void OptionParser::parseString(const char *S) {}

bool parseBool(const char *Value, bool *b) {}

bool OptionParser::setOptionToValue(const char *Name, const char *Value) {}

void OptionParser::registerOption(const char *Name, const char *Desc,
                                  OptionType Type, void *Var) {}

void registerGwpAsanOptions(OptionParser *parser,
                            gwp_asan::options::Options *o) {}

const char *getGwpAsanDefaultOptions() {}

gwp_asan::options::Options *getOptionsInternal() {}
} // anonymous namespace

namespace gwp_asan {
namespace options {

void initOptions(const char *OptionsStr, Printf_t PrintfForWarnings) {}

void initOptions(Printf_t PrintfForWarnings) {}

Options &getOptions() {}

} // namespace options
} // namespace gwp_asan