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

#include <ClangDiagnostic.h>

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

Public Types

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

Public Member Functions

 ClangDiagnostic (const char *message, DiagnosticSeverity 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, DiagnosticSeverity severity, DiagnosticOrigin origin, uint32_t compiler_id)
 
 Diagnostic (const Diagnostic &rhs)
 
virtual ~Diagnostic ()=default
 
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 ClangDiagnostic *)
 
static bool classof (const Diagnostic *diag)
 
- Static Public Member Functions inherited from lldb_private::Diagnostic
static bool classof (const Diagnostic *diag)
 

Public Attributes

FixItList m_fixit_vec
 

Additional Inherited Members

- Protected Attributes inherited from lldb_private::Diagnostic
std::string m_message
 
DiagnosticSeverity 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 ( const char *  message,
DiagnosticSeverity  severity,
uint32_t  compiler_id 
)
inline

Definition at line 32 of file ClangDiagnostic.h.

References ~ClangDiagnostic().

◆ ~ClangDiagnostic()

lldb_private::ClangDiagnostic::~ClangDiagnostic ( )
overridedefault

Referenced by ClangDiagnostic().

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 ClangDiagnosticManagerAdapter::HandleDiagnostic().

◆ 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.

Referenced by lldb_private::ClangExpressionParser::RewriteExpression().

◆ 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.

Referenced by lldb_private::ClangExpressionParser::RewriteExpression().

Member Data Documentation

◆ m_fixit_vec

FixItList lldb_private::ClangDiagnostic::m_fixit_vec

Definition at line 45 of file ClangDiagnostic.h.

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


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