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

#include <DiagnosticManager.h>

Collaboration diagram for lldb_private::DiagnosticManager:
Collaboration graph
[legend]

Public Member Functions

void Clear ()
 
const DiagnosticListDiagnostics ()
 
 ~DiagnosticManager ()
 
bool HasFixIts ()
 
void AddDiagnostic (llvm::StringRef message, DiagnosticSeverity severity, DiagnosticOrigin origin, uint32_t compiler_id=LLDB_INVALID_COMPILER_ID)
 
void AddDiagnostic (Diagnostic *diagnostic)
 
void CopyDiagnostics (DiagnosticManager &otherDiagnostics)
 
size_t Printf (DiagnosticSeverity severity, const char *format,...) __attribute__((format(printf
 
size_t size_t 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 94 of file DiagnosticManager.h.

Constructor & Destructor Documentation

◆ ~DiagnosticManager()

lldb_private::DiagnosticManager::~DiagnosticManager ( )
inline

Definition at line 105 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

Definition at line 119 of file DiagnosticManager.h.

References lldb_private::Diagnostic::Diagnostic().

Referenced by CopyDiagnostics(), Printf(), and PutString().

◆ AddDiagnostic() [2/2]

void lldb_private::DiagnosticManager::AddDiagnostic ( Diagnostic diagnostic)
inline

Definition at line 126 of file DiagnosticManager.h.

◆ AppendMessageToDiagnostic()

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

◆ Clear()

void lldb_private::DiagnosticManager::Clear ( )
inline

◆ CopyDiagnostics()

void DiagnosticManager::CopyDiagnostics ( DiagnosticManager otherDiagnostics)

Definition at line 81 of file DiagnosticManager.cpp.

References AddDiagnostic(), and Diagnostics().

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

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

◆ GetString()

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

◆ HasFixIts()

bool lldb_private::DiagnosticManager::HasFixIts ( )
inline

Definition at line 111 of file DiagnosticManager.h.

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

◆ Printf()

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

◆ PutString()

size_t 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

Definition at line 160 of file DiagnosticManager.h.

◆ m_fixed_expression

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

Definition at line 161 of file DiagnosticManager.h.


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