llvm/lldb/source/Expression/DiagnosticManager.cpp

//===-- DiagnosticManager.cpp ---------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#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;

/// A std::error_code category for eErrorTypeExpression.
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) {}