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.
 
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 29 of file OptionParser.cpp.

References error().

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

◆ GetOptionArgument()

char * OptionParser::GetOptionArgument ( )
static

◆ GetOptionErrorCause()

int OptionParser::GetOptionErrorCause ( )
static

Definition at line 54 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 56 of file OptionParser.cpp.

◆ Parse()

int OptionParser::Parse ( llvm::MutableArrayRef< char * >  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: