9#ifndef LLDB_HOST_OPTIONPARSER_H
10#define LLDB_HOST_OPTIONPARSER_H
15#include "llvm/ADT/StringRef.h"
16#include "llvm/ADT/ArrayRef.h"
22struct OptionDefinition;
37 static void Prepare(std::unique_lock<std::mutex> &lock);
43 static int Parse(llvm::MutableArrayRef<char *> argv,
44 llvm::StringRef optstring,
const Option *longopts,
static llvm::raw_ostream & error(Stream &strm)
static void Prepare(std::unique_lock< std::mutex > &lock)
static int Parse(llvm::MutableArrayRef< char * > argv, llvm::StringRef optstring, const Option *longopts, int *longindex)
Argv must be an argument vector "as passed to main", i.e.
static std::string GetShortOptionString(struct option *long_options)
static int GetOptionIndex()
static char * GetOptionArgument()
static void EnableError(bool error)
static int GetOptionErrorCause()
A class that represents a running process on the host machine.
const OptionDefinition * definition