LLDB mainline
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
lldb_private::Diagnostic Class Reference

#include <DiagnosticManager.h>

Inheritance diagram for lldb_private::Diagnostic:
Inheritance graph
[legend]

Public Member Functions

DiagnosticOrigin getKind () const
 
 Diagnostic (llvm::StringRef message, lldb::Severity severity, DiagnosticOrigin origin, uint32_t compiler_id)
 
 Diagnostic (const Diagnostic &rhs)
 
virtual ~Diagnostic ()=default
 
virtual bool HasFixIts () const
 
lldb::Severity GetSeverity () const
 
uint32_t GetCompilerID () const
 
llvm::StringRef GetMessage () const
 
void AppendMessage (llvm::StringRef message, bool precede_with_newline=true)
 

Static Public Member Functions

static bool classof (const Diagnostic *diag)
 

Protected Attributes

std::string m_message
 
lldb::Severity m_severity
 
DiagnosticOrigin m_origin
 
uint32_t m_compiler_id
 

Friends

class DiagnosticManager
 

Detailed Description

Definition at line 33 of file DiagnosticManager.h.

Constructor & Destructor Documentation

◆ Diagnostic() [1/2]

lldb_private::Diagnostic::Diagnostic ( llvm::StringRef  message,
lldb::Severity  severity,
DiagnosticOrigin  origin,
uint32_t  compiler_id 
)
inline

Definition at line 52 of file DiagnosticManager.h.

◆ Diagnostic() [2/2]

lldb_private::Diagnostic::Diagnostic ( const Diagnostic rhs)
inline

Definition at line 57 of file DiagnosticManager.h.

◆ ~Diagnostic()

virtual lldb_private::Diagnostic::~Diagnostic ( )
virtualdefault

Member Function Documentation

◆ AppendMessage()

void lldb_private::Diagnostic::AppendMessage ( llvm::StringRef  message,
bool  precede_with_newline = true 
)
inline

Definition at line 71 of file DiagnosticManager.h.

References m_message.

◆ classof()

static bool lldb_private::Diagnostic::classof ( const Diagnostic diag)
inlinestatic

◆ GetCompilerID()

uint32_t lldb_private::Diagnostic::GetCompilerID ( ) const
inline

Definition at line 67 of file DiagnosticManager.h.

References m_compiler_id.

◆ getKind()

DiagnosticOrigin lldb_private::Diagnostic::getKind ( ) const
inline

Definition at line 37 of file DiagnosticManager.h.

References m_origin.

Referenced by classof(), and lldb_private::ClangDiagnostic::classof().

◆ GetMessage()

llvm::StringRef lldb_private::Diagnostic::GetMessage ( ) const
inline

Definition at line 69 of file DiagnosticManager.h.

References m_message.

◆ GetSeverity()

lldb::Severity lldb_private::Diagnostic::GetSeverity ( ) const
inline

Definition at line 65 of file DiagnosticManager.h.

References m_severity.

◆ HasFixIts()

virtual bool lldb_private::Diagnostic::HasFixIts ( ) const
inlinevirtual

Reimplemented in lldb_private::ClangDiagnostic.

Definition at line 63 of file DiagnosticManager.h.

Friends And Related Function Documentation

◆ DiagnosticManager

friend class DiagnosticManager
friend

Definition at line 34 of file DiagnosticManager.h.

Member Data Documentation

◆ m_compiler_id

uint32_t lldb_private::Diagnostic::m_compiler_id
protected

Definition at line 82 of file DiagnosticManager.h.

Referenced by GetCompilerID().

◆ m_message

std::string lldb_private::Diagnostic::m_message
protected

Definition at line 79 of file DiagnosticManager.h.

Referenced by AppendMessage(), and GetMessage().

◆ m_origin

DiagnosticOrigin lldb_private::Diagnostic::m_origin
protected

Definition at line 81 of file DiagnosticManager.h.

Referenced by getKind().

◆ m_severity

lldb::Severity lldb_private::Diagnostic::m_severity
protected

Definition at line 80 of file DiagnosticManager.h.

Referenced by GetSeverity().


The documentation for this class was generated from the following file: