LLDB mainline
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
lldb_private::FormatEntity::Entry Struct Reference

#include <FormatEntity.h>

Classes

struct  Definition
 

Public Types

enum class  Type {
  Invalid , ParentNumber , ParentString , EscapeCode ,
  Root , String , Scope , Variable ,
  VariableSynthetic , ScriptVariable , ScriptVariableSynthetic , AddressLoad ,
  AddressFile , AddressLoadOrFile , ProcessID , ProcessFile ,
  ScriptProcess , ThreadID , ThreadProtocolID , ThreadIndexID ,
  ThreadName , ThreadQueue , ThreadStopReason , ThreadStopReasonRaw ,
  ThreadReturnValue , ThreadCompletedExpression , ScriptThread , ThreadInfo ,
  TargetArch , ScriptTarget , ModuleFile , File ,
  Lang , FrameIndex , FrameNoDebug , FrameRegisterPC ,
  FrameRegisterSP , FrameRegisterFP , FrameRegisterFlags , FrameRegisterByName ,
  FrameIsArtificial , ScriptFrame , FunctionID , FunctionDidChange ,
  FunctionInitialFunction , FunctionName , FunctionNameWithArgs , FunctionNameNoArgs ,
  FunctionMangledName , FunctionAddrOffset , FunctionAddrOffsetConcrete , FunctionLineOffset ,
  FunctionPCOffset , FunctionInitial , FunctionChanged , FunctionIsOptimized ,
  LineEntryFile , LineEntryLineNumber , LineEntryColumn , LineEntryStartAddress ,
  LineEntryEndAddress , CurrentPCArrow
}
 

Public Member Functions

 Entry (Type t=Type::Invalid, const char *s=nullptr, const char *f=nullptr)
 
 Entry (llvm::StringRef s)
 
 Entry (char ch)
 
void AppendChar (char ch)
 
void AppendText (const llvm::StringRef &s)
 
void AppendText (const char *cstr)
 
void AppendEntry (const Entry &&entry)
 
void Clear ()
 
void Dump (Stream &s, int depth=0) const
 
bool operator== (const Entry &rhs) const
 

Static Public Member Functions

template<size_t N>
static constexpr Definition DefinitionWithChildren (const char *name, const FormatEntity::Entry::Type t, const Definition(&children)[N], bool keep_separator=false)
 
static const char * TypeToCString (Type t)
 

Public Attributes

std::string string
 
std::string printf_format
 
std::vector< Entrychildren
 
Type type
 
lldb::Format fmt = lldb::eFormatDefault
 
lldb::addr_t number = 0
 
bool deref = false
 

Detailed Description

Definition at line 39 of file FormatEntity.h.

Member Enumeration Documentation

◆ Type

Enumerator
Invalid 
ParentNumber 
ParentString 
EscapeCode 
Root 
String 
Scope 
Variable 
VariableSynthetic 
ScriptVariable 
ScriptVariableSynthetic 
AddressLoad 
AddressFile 
AddressLoadOrFile 
ProcessID 
ProcessFile 
ScriptProcess 
ThreadID 
ThreadProtocolID 
ThreadIndexID 
ThreadName 
ThreadQueue 
ThreadStopReason 
ThreadStopReasonRaw 
ThreadReturnValue 
ThreadCompletedExpression 
ScriptThread 
ThreadInfo 
TargetArch 
ScriptTarget 
ModuleFile 
File 
Lang 
FrameIndex 
FrameNoDebug 
FrameRegisterPC 
FrameRegisterSP 
FrameRegisterFP 
FrameRegisterFlags 
FrameRegisterByName 
FrameIsArtificial 
ScriptFrame 
FunctionID 
FunctionDidChange 
FunctionInitialFunction 
FunctionName 
FunctionNameWithArgs 
FunctionNameNoArgs 
FunctionMangledName 
FunctionAddrOffset 
FunctionAddrOffsetConcrete 
FunctionLineOffset 
FunctionPCOffset 
FunctionInitial 
FunctionChanged 
FunctionIsOptimized 
LineEntryFile 
LineEntryLineNumber 
LineEntryColumn 
LineEntryStartAddress 
LineEntryEndAddress 
CurrentPCArrow 

Definition at line 40 of file FormatEntity.h.

Constructor & Destructor Documentation

◆ Entry() [1/3]

lldb_private::FormatEntity::Entry::Entry ( Type  t = Type::Invalid,
const char *  s = nullptr,
const char *  f = nullptr 
)
inline

Definition at line 148 of file FormatEntity.h.

◆ Entry() [2/3]

FormatEntity::Entry::Entry ( llvm::StringRef  s)

Definition at line 264 of file FormatEntity.cpp.

◆ Entry() [3/3]

FormatEntity::Entry::Entry ( char  ch)

Definition at line 268 of file FormatEntity.cpp.

Member Function Documentation

◆ AppendChar()

void FormatEntity::Entry::AppendChar ( char  ch)

Definition at line 271 of file FormatEntity.cpp.

References String.

Referenced by ParseInternal().

◆ AppendEntry()

void lldb_private::FormatEntity::Entry::AppendEntry ( const Entry &&  entry)
inline

Definition at line 161 of file FormatEntity.h.

References children.

Referenced by ParseInternal().

◆ AppendText() [1/2]

void FormatEntity::Entry::AppendText ( const char *  cstr)

Definition at line 285 of file FormatEntity.cpp.

◆ AppendText() [2/2]

void FormatEntity::Entry::AppendText ( const llvm::StringRef &  s)

Definition at line 278 of file FormatEntity.cpp.

References String.

Referenced by ParseInternal().

◆ Clear()

void lldb_private::FormatEntity::Entry::Clear ( )
inline

◆ DefinitionWithChildren()

template<size_t N>
static constexpr Definition lldb_private::FormatEntity::Entry::DefinitionWithChildren ( const char *  name,
const FormatEntity::Entry::Type  t,
const Definition(&)  children[N],
bool  keep_separator = false 
)
inlinestaticconstexpr

Definition at line 142 of file FormatEntity.h.

References children.

◆ Dump()

void FormatEntity::Entry::Dump ( Stream s,
int  depth = 0 
) const

◆ operator==()

bool lldb_private::FormatEntity::Entry::operator== ( const Entry rhs) const
inline

Definition at line 177 of file FormatEntity.h.

References children, deref, fmt, printf_format, string, and type.

◆ TypeToCString()

const char * FormatEntity::Entry::TypeToCString ( Type  t)
static

Definition at line 293 of file FormatEntity.cpp.

References ENUM_TO_CSTR, and lldb_private::Invalid.

Member Data Documentation

◆ children

std::vector<Entry> lldb_private::FormatEntity::Entry::children

◆ deref

bool lldb_private::FormatEntity::Entry::deref = false

Definition at line 205 of file FormatEntity.h.

Referenced by Clear(), DumpValue(), operator==(), and ParseInternal().

◆ fmt

lldb::Format lldb_private::FormatEntity::Entry::fmt = lldb::eFormatDefault

Definition at line 203 of file FormatEntity.h.

Referenced by Clear(), DumpValue(), operator==(), and ParseInternal().

◆ number

lldb::addr_t lldb_private::FormatEntity::Entry::number = 0

◆ printf_format

std::string lldb_private::FormatEntity::Entry::printf_format

◆ string

std::string lldb_private::FormatEntity::Entry::string

◆ type

Type lldb_private::FormatEntity::Entry::type

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