LLDB mainline
lldb_private::DiagnosticManager Class Reference

#include <DiagnosticManager.h>

Public Member Functions

void Clear ()
const DiagnosticListDiagnostics () const
DiagnosticListDiagnostics ()
bool HasFixIts () const
void AddDiagnostic (llvm::StringRef message, lldb::Severity severity, DiagnosticOrigin origin, uint32_t compiler_id=LLDB_INVALID_COMPILER_ID)
void AddDiagnostic (std::unique_ptr< Diagnostic > diagnostic)
void Consume (DiagnosticManager &&other)
 Moves over the contents of a second diagnostic manager over.
size_t Printf (lldb::Severity severity, const char *format,...) __attribute__((format(printf
size_t void PutString (lldb::Severity severity, llvm::StringRef str)
void AppendMessageToDiagnostic (llvm::StringRef str)
llvm::Error GetAsError (lldb::ExpressionResults result, llvm::Twine message={}) const
 Returns an ExpressionError with arg as error code.
std::string GetString (char separator='\n')
void Dump (Log *log)
const std::string & GetFixedExpression ()
void SetFixedExpression (std::string fixed_expression)

Protected Attributes

DiagnosticList m_diagnostics
std::string m_fixed_expression

Detailed Description

Definition at line 103 of file DiagnosticManager.h.

Member Function Documentation

◆ AddDiagnostic() [1/2]

void DiagnosticManager::AddDiagnostic ( llvm::StringRef message,
lldb::Severity severity,
DiagnosticOrigin origin,
uint32_t compiler_id = LLDB_INVALID_COMPILER_ID )

Definition at line 119 of file DiagnosticManager.cpp.

References m_diagnostics.

Referenced by lldb_private::UserExpression::Evaluate(), Printf(), and PutString().

◆ AddDiagnostic() [2/2]

void lldb_private::DiagnosticManager::AddDiagnostic ( std::unique_ptr< Diagnostic > diagnostic)
inline

Definition at line 124 of file DiagnosticManager.h.

References m_diagnostics.

◆ AppendMessageToDiagnostic()

void lldb_private::DiagnosticManager::AppendMessageToDiagnostic ( llvm::StringRef str)
inline

◆ Clear()

◆ Consume()

void lldb_private::DiagnosticManager::Consume ( DiagnosticManager && other)
inline

Moves over the contents of a second diagnostic manager over.

Leaves other diagnostic manager in an empty state.

Definition at line 131 of file DiagnosticManager.h.

References m_diagnostics, and m_fixed_expression.

◆ Diagnostics() [1/2]

DiagnosticList & lldb_private::DiagnosticManager::Diagnostics ( )
inline

Definition at line 111 of file DiagnosticManager.h.

References m_diagnostics.

◆ Diagnostics() [2/2]

const DiagnosticList & lldb_private::DiagnosticManager::Diagnostics ( ) const
inline

◆ Dump()

◆ GetAsError()

◆ GetFixedExpression()

const std::string & lldb_private::DiagnosticManager::GetFixedExpression ( )
inline

Definition at line 160 of file DiagnosticManager.h.

References m_fixed_expression.

Referenced by lldb_private::ClangUserExpression::TryParse().

◆ GetString()

std::string DiagnosticManager::GetString ( char separator = '\n')

Definition at line 77 of file DiagnosticManager.cpp.

References Diagnostics(), and StringForSeverity().

Referenced by Dump().

◆ HasFixIts()

bool lldb_private::DiagnosticManager::HasFixIts ( ) const
inline

Definition at line 113 of file DiagnosticManager.h.

References m_diagnostics.

Referenced by lldb_private::ClangUserExpression::TryParse().

◆ Printf()

◆ PutString()

◆ SetFixedExpression()

void lldb_private::DiagnosticManager::SetFixedExpression ( std::string fixed_expression)
inline

Member Data Documentation

◆ m_diagnostics

DiagnosticList lldb_private::DiagnosticManager::m_diagnostics
protected

◆ m_fixed_expression

std::string lldb_private::DiagnosticManager::m_fixed_expression
protected

Definition at line 169 of file DiagnosticManager.h.

Referenced by Clear(), Consume(), GetFixedExpression(), and SetFixedExpression().


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