llvm/clang-tools-extra/clangd/support/Logger.cpp

//===--- Logger.cpp - Logger interface for clangd -------------------------===//
//
// 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 "support/Logger.h"
#include "support/Trace.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/raw_ostream.h"
#include <mutex>

namespace clang {
namespace clangd {

namespace {
Logger *L =;
} // namespace

LoggingSession::LoggingSession(clangd::Logger &Instance) {}

LoggingSession::~LoggingSession() {}

void detail::logImpl(Logger::Level Level, const char *Fmt,
                     const llvm::formatv_object_base &Message) {}

const char *detail::debugType(const char *Filename) {}

void StreamLogger::log(Logger::Level Level, const char *Fmt,
                       const llvm::formatv_object_base &Message) {}

namespace {
// Like llvm::StringError but with fewer options and no gratuitous copies.
class SimpleStringError : public llvm::ErrorInfo<SimpleStringError> {};
char SimpleStringError::ID;

} // namespace

llvm::Error detail::error(std::error_code EC, std::string &&Msg) {}

} // namespace clangd
} // namespace clang