LLDB mainline
|
#include <DebuggerEvents.h>
Public Types | |
enum class | Type { Info , Warning , Error } |
Public Member Functions | |
DiagnosticEventData (Type type, std::string message, bool debugger_specific) | |
~DiagnosticEventData () override=default | |
const std::string & | GetMessage () const |
bool | IsDebuggerSpecific () const |
Type | GetType () const |
llvm::StringRef | GetPrefix () const |
void | Dump (Stream *s) const override |
llvm::StringRef | GetFlavor () const override |
![]() | |
EventData () | |
virtual | ~EventData () |
virtual llvm::StringRef | GetFlavor () const =0 |
virtual Log * | GetLogChannel () |
virtual void | Dump (Stream *s) const |
Static Public Member Functions | |
static llvm::StringRef | GetFlavorString () |
static const DiagnosticEventData * | GetEventDataFromEvent (const Event *event_ptr) |
static StructuredData::DictionarySP | GetAsStructuredData (const Event *event_ptr) |
Protected Member Functions | |
DiagnosticEventData (const DiagnosticEventData &)=delete | |
const DiagnosticEventData & | operator= (const DiagnosticEventData &)=delete |
Protected Attributes | |
std::string | m_message |
Type | m_type |
const bool | m_debugger_specific |
Definition at line 75 of file DebuggerEvents.h.
|
strong |
Enumerator | |
---|---|
Info | |
Warning | |
Error |
Definition at line 77 of file DebuggerEvents.h.
|
inline |
Definition at line 82 of file DebuggerEvents.h.
|
overridedefault |
|
protecteddelete |
|
overridevirtual |
Reimplemented from lldb_private::EventData.
Definition at line 86 of file DebuggerEvents.cpp.
References lldb_private::Stream::AsRawOstream(), lldb_private::Stream::Flush(), GetMessage(), GetPrefix(), m_type, and Warning.
Referenced by PrivateReportDiagnostic().
|
static |
Definition at line 110 of file DebuggerEvents.cpp.
References GetEventDataFromEvent(), GetMessage(), GetPrefix(), and IsDebuggerSpecific().
Referenced by lldb::SBDebugger::GetDiagnosticFromEvent().
|
static |
Definition at line 105 of file DebuggerEvents.cpp.
Referenced by GetAsStructuredData(), and lldb_private::Debugger::HandleDiagnosticEvent().
|
overridevirtual |
Implements lldb_private::EventData.
Definition at line 100 of file DebuggerEvents.cpp.
References GetFlavorString().
|
static |
Definition at line 96 of file DebuggerEvents.cpp.
Referenced by GetFlavor().
|
inline |
Definition at line 87 of file DebuggerEvents.h.
References m_message.
Referenced by Dump(), and GetAsStructuredData().
llvm::StringRef DiagnosticEventData::GetPrefix | ( | ) | const |
Definition at line 74 of file DebuggerEvents.cpp.
References Error, Info, m_type, and Warning.
Referenced by Dump(), and GetAsStructuredData().
|
inline |
Definition at line 89 of file DebuggerEvents.h.
References m_type.
|
inline |
Definition at line 88 of file DebuggerEvents.h.
References m_debugger_specific.
Referenced by GetAsStructuredData().
|
protecteddelete |
|
protected |
Definition at line 107 of file DebuggerEvents.h.
Referenced by IsDebuggerSpecific().
|
protected |
Definition at line 105 of file DebuggerEvents.h.
Referenced by GetMessage().
|
protected |
Definition at line 106 of file DebuggerEvents.h.
Referenced by Dump(), GetPrefix(), and GetType().