LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb_private::Args::ArgEntry Struct Reference

#include <Args.h>

Collaboration diagram for lldb_private::Args::ArgEntry:
Collaboration graph
[legend]

Public Member Functions

 ArgEntry ()=default
 
 ArgEntry (llvm::StringRef str, char quote)
 
llvm::StringRef ref () const
 
const char * c_str () const
 
bool IsQuoted () const
 Returns true if this argument was quoted in any way. More...
 
char GetQuoteChar () const
 

Private Member Functions

char * data ()
 

Private Attributes

std::unique_ptr< char[]> ptr
 
char quote
 

Friends

class Args
 
struct llvm::yaml::MappingTraits< Args >
 
struct llvm::yaml::MappingTraits< Args::ArgEntry >
 

Detailed Description

Definition at line 35 of file Args.h.

Constructor & Destructor Documentation

◆ ArgEntry() [1/2]

lldb_private::Args::ArgEntry::ArgEntry ( )
default

◆ ArgEntry() [2/2]

Args::ArgEntry::ArgEntry ( llvm::StringRef  str,
char  quote 
)

Definition at line 160 of file Args.cpp.

References data(), ptr, and lldb_private::Args::size().

Member Function Documentation

◆ c_str()

const char* lldb_private::Args::ArgEntry::c_str ( ) const
inline

Definition at line 51 of file Args.h.

References ptr.

Referenced by FindOriginalIter(), and ref().

◆ data()

char* lldb_private::Args::ArgEntry::data ( )
inlineprivate

Definition at line 44 of file Args.h.

References ptr.

Referenced by ArgEntry().

◆ GetQuoteChar()

char lldb_private::Args::ArgEntry::GetQuoteChar ( ) const
inline

Definition at line 55 of file Args.h.

References quote.

Referenced by lldb::SBCommandInterpreter::HandleCompletionWithDescriptions().

◆ IsQuoted()

bool lldb_private::Args::ArgEntry::IsQuoted ( ) const
inline

Returns true if this argument was quoted in any way.

Definition at line 54 of file Args.h.

References quote.

Referenced by lldb::SBCommandInterpreter::HandleCompletionWithDescriptions(), lldb_private::Options::ParseForCompletion(), and lldb_private::OptionsWithRaw::SetFromString().

◆ ref()

llvm::StringRef lldb_private::Args::ArgEntry::ref ( ) const
inline

Friends And Related Function Documentation

◆ Args

friend class Args
friend

Definition at line 37 of file Args.h.

◆ llvm::yaml::MappingTraits< Args >

friend struct llvm::yaml::MappingTraits< Args >
friend

Definition at line 38 of file Args.h.

◆ llvm::yaml::MappingTraits< Args::ArgEntry >

friend struct llvm::yaml::MappingTraits< Args::ArgEntry >
friend

Definition at line 39 of file Args.h.

Member Data Documentation

◆ ptr

std::unique_ptr<char[]> lldb_private::Args::ArgEntry::ptr
private

Definition at line 41 of file Args.h.

Referenced by ArgEntry(), c_str(), and data().

◆ quote

char lldb_private::Args::ArgEntry::quote
private

Definition at line 42 of file Args.h.

Referenced by GetQuoteChar(), and IsQuoted().


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