LLDB mainline
Public Member Functions | Protected Attributes | List of all members
lldb_private::DiagnosticManager Class Reference

#include <DiagnosticManager.h>

Public Member Functions

void Clear ()
 
const DiagnosticListDiagnostics ()
 
bool HasFixIts () const
 
void AddDiagnostic (llvm::StringRef message, DiagnosticSeverity 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 (DiagnosticSeverity severity, const char *format,...) __attribute__((format(printf
 
size_t void PutString (DiagnosticSeverity severity, llvm::StringRef str)
 
void AppendMessageToDiagnostic (llvm::StringRef str)
 
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 93 of file DiagnosticManager.h.

Member Function Documentation

◆ AddDiagnostic() [1/2]

void lldb_private::DiagnosticManager::AddDiagnostic ( llvm::StringRef  message,
DiagnosticSeverity  severity,
DiagnosticOrigin  origin,
uint32_t  compiler_id = LLDB_INVALID_COMPILER_ID 
)
inline

◆ AddDiagnostic() [2/2]

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

Definition at line 116 of file DiagnosticManager.h.

References m_diagnostics.

◆ AppendMessageToDiagnostic()

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

◆ Clear()

void lldb_private::DiagnosticManager::Clear ( )
inline

◆ 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 123 of file DiagnosticManager.h.

References m_diagnostics, and m_fixed_expression.

◆ Diagnostics()

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

◆ Dump()

void DiagnosticManager::Dump ( Log log)

◆ GetFixedExpression()

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

Definition at line 148 of file DiagnosticManager.h.

References m_fixed_expression.

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

◆ GetString()

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

◆ HasFixIts()

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

Definition at line 102 of file DiagnosticManager.h.

References m_diagnostics.

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

◆ Printf()

size_t DiagnosticManager::Printf ( DiagnosticSeverity  severity,
const char *  format,
  ... 
)

◆ PutString()

void DiagnosticManager::PutString ( DiagnosticSeverity  severity,
llvm::StringRef  str 
)

◆ 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 157 of file DiagnosticManager.h.

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


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