LLDB  mainline
Public Types | Static Public Member Functions | List of all members
lldb_private::OptionParser Class Reference

#include <OptionParser.h>

Public Types

enum  OptionArgument { eNoArgument = 0, eRequiredArgument, eOptionalArgument }
 

Static Public Member Functions

static void Prepare (std::unique_lock< std::mutex > &lock)
 
static void EnableError (bool error)
 
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. More...
 
static char * GetOptionArgument ()
 
static int GetOptionIndex ()
 
static int GetOptionErrorCause ()
 
static std::string GetShortOptionString (struct option *long_options)
 

Detailed Description

Definition at line 33 of file OptionParser.h.

Member Enumeration Documentation

◆ OptionArgument

Enumerator
eNoArgument 
eRequiredArgument 
eOptionalArgument 

Definition at line 35 of file OptionParser.h.

Member Function Documentation

◆ EnableError()

void OptionParser::EnableError ( bool  error)
static

Definition at line 28 of file OptionParser.cpp.

Referenced by lldb_private::Options::ParseForCompletion().

◆ GetOptionArgument()

char * OptionParser::GetOptionArgument ( )
static

◆ GetOptionErrorCause()

int OptionParser::GetOptionErrorCause ( )
static

Definition at line 53 of file OptionParser.cpp.

Referenced by lldb_private::Options::ParseForCompletion().

◆ GetOptionIndex()

int OptionParser::GetOptionIndex ( )
static

◆ GetShortOptionString()

std::string OptionParser::GetShortOptionString ( struct option *  long_options)
static

Definition at line 55 of file OptionParser.cpp.

◆ Parse()

int OptionParser::Parse ( llvm::MutableArrayRef< char *>  argv,
llvm::StringRef  optstring,
const Option longopts,
int *  longindex 
)
static

Argv must be an argument vector "as passed to main", i.e.

terminated with a nullptr.

Definition at line 30 of file OptionParser.cpp.

References lldb_private::Option::definition, lldb_private::Option::flag, and lldb_private::Option::val.

Referenced by lldb_private::Options::Parse(), lldb_private::Options::ParseAlias(), and lldb_private::Options::ParseForCompletion().

◆ Prepare()

void OptionParser::Prepare ( std::unique_lock< std::mutex > &  lock)
static

The documentation for this class was generated from the following files: