#include "lldb/Expression/DiagnosticManager.h"
#include "llvm/Support/ErrorHandling.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/StreamString.h"
usingnamespacelldb_private;
char ExpressionError::ID;
class ExpressionCategory : public std::error_category { … };
ExpressionCategory &expression_category() { … }
ExpressionError::ExpressionError(lldb::ExpressionResults result,
std::string msg,
std::vector<DiagnosticDetail> details)
: … { … }
static llvm::StringRef StringForSeverity(lldb::Severity severity) { … }
std::string ExpressionError::message() const { … }
std::error_code ExpressionError::convertToErrorCode() const { … }
void ExpressionError::log(llvm::raw_ostream &OS) const { … }
std::unique_ptr<CloneableError> ExpressionError::Clone() const { … }
std::string DiagnosticManager::GetString(char separator) { … }
void DiagnosticManager::Dump(Log *log) { … }
llvm::Error DiagnosticManager::GetAsError(lldb::ExpressionResults result,
llvm::Twine message) const { … }
void DiagnosticManager::AddDiagnostic(llvm::StringRef message,
lldb::Severity severity,
DiagnosticOrigin origin,
uint32_t compiler_id) { … }
size_t DiagnosticManager::Printf(lldb::Severity severity, const char *format,
...) { … }
void DiagnosticManager::PutString(lldb::Severity severity,
llvm::StringRef str) { … }
void Diagnostic::AppendMessage(llvm::StringRef message,
bool precede_with_newline) { … }