LLDB mainline
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
lldb_private::ClangDiagnostic Class Reference

#include <ClangDiagnostic.h>

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

Public Types

typedef std::vector< clang::FixItHint > FixItList
 

Public Member Functions

 ClangDiagnostic (llvm::StringRef message, lldb::Severity severity, uint32_t compiler_id)
 
 ~ClangDiagnostic () override=default
 
bool HasFixIts () const override
 
void AddFixitHint (const clang::FixItHint &fixit)
 
const FixItListFixIts () const
 
- Public Member Functions inherited from lldb_private::Diagnostic
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 ClangDiagnostic *)
 
static bool classof (const Diagnostic *diag)
 
- Static Public Member Functions inherited from lldb_private::Diagnostic
static bool classof (const Diagnostic *diag)
 

Private Attributes

FixItList m_fixit_vec
 

Additional Inherited Members

- Protected Attributes inherited from lldb_private::Diagnostic
std::string m_message
 
lldb::Severity m_severity
 
DiagnosticOrigin m_origin
 
uint32_t m_compiler_id
 

Detailed Description

Definition at line 23 of file ClangDiagnostic.h.

Member Typedef Documentation

◆ FixItList

typedef std::vector<clang::FixItHint> lldb_private::ClangDiagnostic::FixItList

Definition at line 25 of file ClangDiagnostic.h.

Constructor & Destructor Documentation

◆ ClangDiagnostic()

lldb_private::ClangDiagnostic::ClangDiagnostic ( llvm::StringRef  message,
lldb::Severity  severity,
uint32_t  compiler_id 
)
inline

Definition at line 32 of file ClangDiagnostic.h.

◆ ~ClangDiagnostic()

lldb_private::ClangDiagnostic::~ClangDiagnostic ( )
overridedefault

Member Function Documentation

◆ AddFixitHint()

void lldb_private::ClangDiagnostic::AddFixitHint ( const clang::FixItHint &  fixit)
inline

Definition at line 40 of file ClangDiagnostic.h.

References m_fixit_vec.

Referenced by AddAllFixIts().

◆ classof() [1/2]

static bool lldb_private::ClangDiagnostic::classof ( const ClangDiagnostic )
inlinestatic

Definition at line 27 of file ClangDiagnostic.h.

◆ classof() [2/2]

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

◆ FixIts()

const FixItList & lldb_private::ClangDiagnostic::FixIts ( ) const
inline

Definition at line 44 of file ClangDiagnostic.h.

References m_fixit_vec.

◆ HasFixIts()

bool lldb_private::ClangDiagnostic::HasFixIts ( ) const
inlineoverridevirtual

Reimplemented from lldb_private::Diagnostic.

Definition at line 38 of file ClangDiagnostic.h.

References m_fixit_vec.

Member Data Documentation

◆ m_fixit_vec

FixItList lldb_private::ClangDiagnostic::m_fixit_vec
private

Definition at line 46 of file ClangDiagnostic.h.

Referenced by AddFixitHint(), FixIts(), and HasFixIts().


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