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 (DiagnosticOrigin origin, uint32_t compiler_id, DiagnosticDetail detail)
 
virtual ~Diagnostic ()=default
 
virtual bool HasFixIts () const
 
lldb::Severity GetSeverity () const
 
uint32_t GetCompilerID () const
 
llvm::StringRef GetMessage () const
 
const DiagnosticDetailGetDetail () const
 
void AppendMessage (llvm::StringRef message, bool precede_with_newline=true)
 

Static Public Member Functions

static bool classof (const Diagnostic *diag)
 

Protected Attributes

DiagnosticOrigin m_origin
 
uint32_t m_compiler_id
 Compiler-specific diagnostic ID.
 
DiagnosticDetail m_detail
 

Friends

class DiagnosticManager
 

Detailed Description

Definition at line 58 of file DiagnosticManager.h.

Constructor & Destructor Documentation

◆ Diagnostic()

lldb_private::Diagnostic::Diagnostic ( DiagnosticOrigin  origin,
uint32_t  compiler_id,
DiagnosticDetail  detail 
)
inline

Definition at line 77 of file DiagnosticManager.h.

◆ ~Diagnostic()

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

Member Function Documentation

◆ AppendMessage()

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

◆ classof()

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

◆ GetCompilerID()

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

Definition at line 87 of file DiagnosticManager.h.

References m_compiler_id.

◆ GetDetail()

const DiagnosticDetail & lldb_private::Diagnostic::GetDetail ( ) const
inline

Definition at line 90 of file DiagnosticManager.h.

References m_detail.

◆ getKind()

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

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

References m_detail, and lldb_private::DiagnosticDetail::message.

◆ GetSeverity()

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

Definition at line 85 of file DiagnosticManager.h.

References m_detail, and lldb_private::DiagnosticDetail::severity.

◆ HasFixIts()

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

Reimplemented in lldb_private::ClangDiagnostic.

Definition at line 83 of file DiagnosticManager.h.

Friends And Related Function Documentation

◆ DiagnosticManager

friend class DiagnosticManager
friend

Definition at line 59 of file DiagnosticManager.h.

Member Data Documentation

◆ m_compiler_id

uint32_t lldb_private::Diagnostic::m_compiler_id
protected

Compiler-specific diagnostic ID.

Definition at line 97 of file DiagnosticManager.h.

Referenced by GetCompilerID().

◆ m_detail

DiagnosticDetail lldb_private::Diagnostic::m_detail
protected

Definition at line 98 of file DiagnosticManager.h.

Referenced by AppendMessage(), GetDetail(), GetMessage(), and GetSeverity().

◆ m_origin

DiagnosticOrigin lldb_private::Diagnostic::m_origin
protected

Definition at line 95 of file DiagnosticManager.h.

Referenced by getKind().


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