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>

Collaboration diagram for lldb_private::FormatEntity::Entry:
Collaboration graph
[legend]

Classes

struct  Definition
 

Public Types

enum  Type {
  Type::Invalid, Type::ParentNumber, Type::ParentString, Type::InsertString,
  Type::Root, Type::String, Type::Scope, Type::Variable,
  Type::VariableSynthetic, Type::ScriptVariable, Type::ScriptVariableSynthetic, Type::AddressLoad,
  Type::AddressFile, Type::AddressLoadOrFile, Type::ProcessID, Type::ProcessFile,
  Type::ScriptProcess, Type::ThreadID, Type::ThreadProtocolID, Type::ThreadIndexID,
  Type::ThreadName, Type::ThreadQueue, Type::ThreadStopReason, Type::ThreadReturnValue,
  Type::ThreadCompletedExpression, Type::ScriptThread, Type::ThreadInfo, Type::TargetArch,
  Type::ScriptTarget, Type::ModuleFile, Type::File, Type::Lang,
  Type::FrameIndex, Type::FrameNoDebug, Type::FrameRegisterPC, Type::FrameRegisterSP,
  Type::FrameRegisterFP, Type::FrameRegisterFlags, Type::FrameRegisterByName, Type::FrameIsArtificial,
  Type::ScriptFrame, Type::FunctionID, Type::FunctionDidChange, Type::FunctionInitialFunction,
  Type::FunctionName, Type::FunctionNameWithArgs, Type::FunctionNameNoArgs, Type::FunctionAddrOffset,
  Type::FunctionAddrOffsetConcrete, Type::FunctionLineOffset, Type::FunctionPCOffset, Type::FunctionInitial,
  Type::FunctionChanged, Type::FunctionIsOptimized, Type::LineEntryFile, Type::LineEntryLineNumber,
  Type::LineEntryColumn, Type::LineEntryStartAddress, Type::LineEntryEndAddress, Type::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

static const char * TypeToCString (Type t)
 

Public Attributes

std::string string
 
std::string printf_format
 
std::vector< Entrychildren
 
Definitiondefinition
 
Type type
 
lldb::Format fmt
 
lldb::addr_t number
 
bool deref
 

Detailed Description

Definition at line 49 of file FormatEntity.h.

Member Enumeration Documentation

◆ Type

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

Definition at line 50 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 123 of file FormatEntity.h.

◆ Entry() [2/3]

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

Definition at line 267 of file FormatEntity.cpp.

◆ Entry() [3/3]

FormatEntity::Entry::Entry ( char  ch)

Definition at line 272 of file FormatEntity.cpp.

References lldb_private::String.

Member Function Documentation

◆ AppendChar()

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

Definition at line 276 of file FormatEntity.cpp.

References children, and String.

Referenced by lldb_private::FormatEntity::ParseInternal().

◆ AppendEntry()

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

Definition at line 138 of file FormatEntity.h.

Referenced by lldb_private::FormatEntity::ParseInternal().

◆ AppendText() [1/2]

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

Definition at line 283 of file FormatEntity.cpp.

References children, and String.

Referenced by AppendText(), and lldb_private::FormatEntity::ParseInternal().

◆ AppendText() [2/2]

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

Definition at line 290 of file FormatEntity.cpp.

References AppendText().

◆ Clear()

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

◆ 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 155 of file FormatEntity.h.

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

◆ TypeToCString()

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

Definition at line 305 of file FormatEntity.cpp.

References ENUM_TO_CSTR, lldb_private::Invalid, and lldb_private::String.

Referenced by Dump().

Member Data Documentation

◆ children

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

◆ definition

Definition* lldb_private::FormatEntity::Entry::definition

Definition at line 182 of file FormatEntity.h.

Referenced by operator==().

◆ deref

bool lldb_private::FormatEntity::Entry::deref

◆ fmt

lldb::Format lldb_private::FormatEntity::Entry::fmt

◆ number

lldb::addr_t lldb_private::FormatEntity::Entry::number

◆ 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: