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, DiagnosticSeverity severity, DiagnosticOrigin origin, uint32_t compiler_id)
 
 Diagnostic (const Diagnostic &rhs)
 
virtual ~Diagnostic ()=default
 
virtual bool HasFixIts () const
 
DiagnosticSeverity 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
 
DiagnosticSeverity m_severity
 
DiagnosticOrigin m_origin
 
uint32_t m_compiler_id
 

Friends

class DiagnosticManager
 

Detailed Description

Definition at line 39 of file DiagnosticManager.h.

Constructor & Destructor Documentation

◆ Diagnostic() [1/2]

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

Definition at line 58 of file DiagnosticManager.h.

◆ Diagnostic() [2/2]

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

Definition at line 63 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 77 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 73 of file DiagnosticManager.h.

References m_compiler_id.

◆ getKind()

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

Definition at line 43 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 75 of file DiagnosticManager.h.

References m_message.

◆ GetSeverity()

DiagnosticSeverity lldb_private::Diagnostic::GetSeverity ( ) const
inline

Definition at line 71 of file DiagnosticManager.h.

References m_severity.

◆ HasFixIts()

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

Reimplemented in lldb_private::ClangDiagnostic.

Definition at line 69 of file DiagnosticManager.h.

Friends And Related Function Documentation

◆ DiagnosticManager

friend class DiagnosticManager
friend

Definition at line 40 of file DiagnosticManager.h.

Member Data Documentation

◆ m_compiler_id

uint32_t lldb_private::Diagnostic::m_compiler_id
protected

Definition at line 88 of file DiagnosticManager.h.

Referenced by GetCompilerID().

◆ m_message

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

Definition at line 85 of file DiagnosticManager.h.

Referenced by AppendMessage(), and GetMessage().

◆ m_origin

DiagnosticOrigin lldb_private::Diagnostic::m_origin
protected

Definition at line 87 of file DiagnosticManager.h.

Referenced by getKind().

◆ m_severity

DiagnosticSeverity lldb_private::Diagnostic::m_severity
protected

Definition at line 86 of file DiagnosticManager.h.

Referenced by GetSeverity().


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