LLDB mainline
Static Public Member Functions | Static Private Member Functions | List of all members
lldb_private::OptionArgParser Struct Reference

#include <OptionArgParser.h>

Static Public Member Functions

static lldb::addr_t ToAddress (const ExecutionContext *exe_ctx, llvm::StringRef s, lldb::addr_t fail_value, Status *error_ptr)
 Try to parse an address.
 
static lldb::addr_t ToRawAddress (const ExecutionContext *exe_ctx, llvm::StringRef s, lldb::addr_t fail_value, Status *error_ptr)
 As for ToAddress but do not remove non-address bits from the result.
 
static bool ToBoolean (llvm::StringRef s, bool fail_value, bool *success_ptr)
 
static char ToChar (llvm::StringRef s, char fail_value, bool *success_ptr)
 
static int64_t ToOptionEnum (llvm::StringRef s, const OptionEnumValues &enum_values, int32_t fail_value, Status &error)
 
static lldb::ScriptLanguage ToScriptLanguage (llvm::StringRef s, lldb::ScriptLanguage fail_value, bool *success_ptr)
 
static Status ToFormat (const char *s, lldb::Format &format, size_t *byte_size_ptr)
 

Static Private Member Functions

static std::optional< lldb::addr_tDoToAddress (const ExecutionContext *exe_ctx, llvm::StringRef s, Status *error)
 

Detailed Description

Definition at line 18 of file OptionArgParser.h.

Member Function Documentation

◆ DoToAddress()

std::optional< lldb::addr_t > OptionArgParser::DoToAddress ( const ExecutionContext exe_ctx,
llvm::StringRef  s,
Status error 
)
staticprivate

◆ ToAddress()

lldb::addr_t OptionArgParser::ToAddress ( const ExecutionContext exe_ctx,
llvm::StringRef  s,
lldb::addr_t  fail_value,
Status error_ptr 
)
static

◆ ToBoolean()

bool OptionArgParser::ToBoolean ( llvm::StringRef  s,
bool  fail_value,
bool *  success_ptr 
)
static

◆ ToChar()

char OptionArgParser::ToChar ( llvm::StringRef  s,
char  fail_value,
bool *  success_ptr 
)
static

◆ ToFormat()

Status OptionArgParser::ToFormat ( const char *  s,
lldb::Format format,
size_t *  byte_size_ptr 
)
static

◆ ToOptionEnum()

int64_t OptionArgParser::ToOptionEnum ( llvm::StringRef  s,
const OptionEnumValues enum_values,
int32_t  fail_value,
Status error 
)
static

◆ ToRawAddress()

lldb::addr_t OptionArgParser::ToRawAddress ( const ExecutionContext exe_ctx,
llvm::StringRef  s,
lldb::addr_t  fail_value,
Status error_ptr 
)
static

As for ToAddress but do not remove non-address bits from the result.

Definition at line 143 of file OptionArgParser.cpp.

References DoToAddress().

Referenced by CommandObjectMemoryTagRead::DoExecute(), CommandObjectMemoryTagWrite::DoExecute(), and CommandObjectMemoryTagWrite::OptionGroupTagWrite::SetOptionValue().

◆ ToScriptLanguage()

lldb::ScriptLanguage OptionArgParser::ToScriptLanguage ( llvm::StringRef  s,
lldb::ScriptLanguage  fail_value,
bool *  success_ptr 
)
static

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