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 (int argc, char *const argv[], llvm::StringRef optstring, const Option *longopts, int *longindex)
 
static char * GetOptionArgument ()
 
static int GetOptionIndex ()
 
static int GetOptionErrorCause ()
 
static std::string GetShortOptionString (struct option *long_options)
 

Detailed Description

Definition at line 32 of file OptionParser.h.

Member Enumeration Documentation

◆ OptionArgument

Enumerator
eNoArgument 
eRequiredArgument 
eOptionalArgument 

Definition at line 34 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 51 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 53 of file OptionParser.cpp.

◆ Parse()

int OptionParser::Parse ( int  argc,
char *const  argv[],
llvm::StringRef  optstring,
const Option longopts,
int *  longindex 
)
static

◆ Prepare()

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

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