LLDB mainline
|
#include <FormatEntity.h>
Classes | |
struct | Definition |
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 | StartAlternative () |
void | Clear () |
void | Dump (Stream &s, int depth=0) const |
bool | operator== (const Entry &rhs) const |
operator bool () const | |
std::vector< Entry > & | GetChildren () |
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 |
Type | type = Type::Invalid |
lldb::Format | fmt = lldb::eFormatDefault |
lldb::addr_t | number = 0 |
bool | deref = false |
llvm::SmallVector< std::vector< Entry >, 1 > | children_stack |
A stack of children entries, used by Scope entries to provide alterantive children. | |
size_t | level = 0 |
Definition at line 39 of file FormatEntity.h.
|
strong |
Definition at line 40 of file FormatEntity.h.
FormatEntity::Entry::Entry | ( | Type | t = Type::Invalid, |
const char * | s = nullptr, | ||
const char * | f = nullptr ) |
Definition at line 289 of file FormatEntity.cpp.
References children_stack, printf_format, and string.
Referenced by AppendEntry(), lldb_private::FormatEntity::Entry::Definition::Definition(), and operator==().
FormatEntity::Entry::Entry | ( | llvm::StringRef | s | ) |
Definition at line 293 of file FormatEntity.cpp.
References children_stack, and string.
FormatEntity::Entry::Entry | ( | char | ch | ) |
Definition at line 296 of file FormatEntity.cpp.
References children_stack, printf_format, and string.
void FormatEntity::Entry::AppendChar | ( | char | ch | ) |
Definition at line 305 of file FormatEntity.cpp.
References GetChildren(), and String.
Referenced by ParseInternal().
void FormatEntity::Entry::AppendEntry | ( | const Entry && | entry | ) |
Definition at line 325 of file FormatEntity.cpp.
References Entry(), and GetChildren().
Referenced by ParseInternal().
void FormatEntity::Entry::AppendText | ( | const char * | cstr | ) |
Definition at line 321 of file FormatEntity.cpp.
References AppendText().
void FormatEntity::Entry::AppendText | ( | const llvm::StringRef & | s | ) |
Definition at line 313 of file FormatEntity.cpp.
References GetChildren(), and String.
Referenced by AppendText(), and ParseInternal().
|
inline |
Definition at line 179 of file FormatEntity.h.
References children_stack, deref, lldb::eFormatDefault, fmt, Invalid, level, number, printf_format, and type.
Referenced by lldb_private::FormatEntity::Parse().
|
inlinestaticconstexpr |
Definition at line 158 of file FormatEntity.h.
void FormatEntity::Entry::Dump | ( | Stream & | s, |
int | depth = 0 ) const |
Definition at line 426 of file FormatEntity.cpp.
References children_stack, deref, lldb::eFormatDefault, lldb_private::Stream::EOL(), fmt, lldb_private::FormatManager::GetFormatAsCString(), number, lldb_private::Stream::Printf(), printf_format, type, and TypeToCString().
std::vector< Entry > & FormatEntity::Entry::GetChildren | ( | ) |
Definition at line 300 of file FormatEntity.cpp.
References children_stack, and level.
Referenced by AppendChar(), AppendEntry(), and AppendText().
|
inline |
Definition at line 211 of file FormatEntity.h.
Definition at line 195 of file FormatEntity.h.
References children_stack, deref, Entry(), fmt, printf_format, string, and type.
void FormatEntity::Entry::StartAlternative | ( | ) |
Definition at line 330 of file FormatEntity.cpp.
References children_stack, level, Scope, and type.
Referenced by ParseInternal().
|
static |
Definition at line 340 of file FormatEntity.cpp.
References AddressFile, AddressLoad, AddressLoadOrFile, CurrentPCArrow, ENUM_TO_CSTR, EscapeCode, File, FrameIndex, FrameIsArtificial, FrameKind, FrameNoDebug, FrameRegisterByName, FrameRegisterFlags, FrameRegisterFP, FrameRegisterPC, FrameRegisterSP, FunctionAddrOffset, FunctionAddrOffsetConcrete, FunctionBasename, FunctionChanged, FunctionDidChange, FunctionFormattedArguments, FunctionID, FunctionInitial, FunctionInitialFunction, FunctionIsInlined, FunctionIsOptimized, FunctionLineOffset, FunctionMangledName, FunctionName, FunctionNameNoArgs, FunctionNameQualifiers, FunctionNameWithArgs, FunctionPCOffset, FunctionPrefix, FunctionQualifiers, FunctionReturnLeft, FunctionReturnRight, FunctionScope, FunctionSuffix, FunctionTemplateArguments, Invalid, Lang, LineEntryColumn, LineEntryEndAddress, LineEntryFile, LineEntryLineNumber, LineEntryStartAddress, ModuleFile, ParentNumber, ParentString, ProcessFile, ProcessID, ProgressCount, ProgressMessage, Root, Scope, ScriptFrame, ScriptProcess, ScriptTarget, ScriptThread, ScriptVariable, ScriptVariableSynthetic, Separator, String, TargetArch, TargetFile, ThreadCompletedExpression, ThreadID, ThreadIndexID, ThreadInfo, ThreadName, ThreadProtocolID, ThreadQueue, ThreadReturnValue, ThreadStopReason, ThreadStopReasonRaw, Variable, and VariableSynthetic.
Referenced by Dump().
llvm::SmallVector<std::vector<Entry>, 1> lldb_private::FormatEntity::Entry::children_stack |
A stack of children entries, used by Scope entries to provide alterantive children.
All other entries have a stack of size 1.
Definition at line 221 of file FormatEntity.h.
Referenced by Clear(), Dump(), Entry(), Entry(), Entry(), lldb_private::FormatEntity::Format(), GetChildren(), operator==(), and StartAlternative().
bool lldb_private::FormatEntity::Entry::deref = false |
Definition at line 228 of file FormatEntity.h.
Referenced by Clear(), Dump(), DumpValue(), operator==(), and ParseInternal().
lldb::Format lldb_private::FormatEntity::Entry::fmt = lldb::eFormatDefault |
Definition at line 226 of file FormatEntity.h.
Referenced by Clear(), Dump(), DumpValue(), operator==(), and ParseInternal().
size_t lldb_private::FormatEntity::Entry::level = 0 |
Definition at line 222 of file FormatEntity.h.
Referenced by Clear(), GetChildren(), and StartAlternative().
lldb::addr_t lldb_private::FormatEntity::Entry::number = 0 |
Definition at line 227 of file FormatEntity.h.
Referenced by Clear(), Dump(), DumpValue(), lldb_private::FormatEntity::Format(), ParseEntry(), and ParseInternal().
std::string lldb_private::FormatEntity::Entry::printf_format |
Definition at line 216 of file FormatEntity.h.
Referenced by Clear(), Dump(), DumpValue(), Entry(), Entry(), lldb_private::FormatEntity::Format(), FormatThreadExtendedInfoRecurse(), operator==(), and ParseInternal().
std::string lldb_private::FormatEntity::Entry::string |
Definition at line 215 of file FormatEntity.h.
Referenced by DumpValue(), Entry(), Entry(), Entry(), lldb_private::FormatEntity::Format(), FormatThreadExtendedInfoRecurse(), operator==(), ParseEntry(), and ParseInternal().
Type lldb_private::FormatEntity::Entry::type = Type::Invalid |
Definition at line 225 of file FormatEntity.h.
Referenced by Clear(), Dump(), DumpValue(), lldb_private::FormatEntity::Format(), operator bool(), operator==(), lldb_private::FormatEntity::Parse(), ParseEntry(), ParseInternal(), and StartAlternative().