llvm/clang-tools-extra/clangd/unittests/LSPClient.cpp

//===-- LSPClient.cpp - Helper for ClangdLSPServer tests ------------------===//
//
// 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 "LSPClient.h"
#include "Protocol.h"
#include "TestFS.h"
#include "Transport.h"
#include "support/Logger.h"
#include "support/Threading.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
#include <condition_variable>
#include <cstddef>
#include <cstdint>
#include <deque>
#include <functional>
#include <memory>
#include <mutex>
#include <optional>
#include <queue>
#include <string>
#include <utility>
#include <vector>

namespace clang {
namespace clangd {

llvm::Expected<llvm::json::Value> clang::clangd::LSPClient::CallResult::take() {}

llvm::json::Value LSPClient::CallResult::takeValue() {}

void LSPClient::CallResult::set(llvm::Expected<llvm::json::Value> V) {}

LSPClient::CallResult::~CallResult() {}

static void logBody(llvm::StringRef Method, llvm::json::Value V, bool Send) {}

class LSPClient::TransportImpl : public Transport {};

LSPClient::LSPClient() :{}
LSPClient::~LSPClient() = default;

LSPClient::CallResult &LSPClient::call(llvm::StringRef Method,
                                       llvm::json::Value Params) {}

void LSPClient::expectServerCall(llvm::StringRef Method) {}

void LSPClient::notify(llvm::StringRef Method, llvm::json::Value Params) {}

std::vector<llvm::json::Value>
LSPClient::takeNotifications(llvm::StringRef Method) {}

std::vector<llvm::json::Value>
LSPClient::takeCallParams(llvm::StringRef Method) {}

void LSPClient::stop() {}

Transport &LSPClient::transport() {}

Obj;

llvm::json::Value LSPClient::uri(llvm::StringRef Path) {}
llvm::json::Value LSPClient::documentID(llvm::StringRef Path) {}

void LSPClient::didOpen(llvm::StringRef Path, llvm::StringRef Content) {}
void LSPClient::didChange(llvm::StringRef Path, llvm::StringRef Content) {}
void LSPClient::didClose(llvm::StringRef Path) {}

void LSPClient::sync() {}

std::optional<std::vector<llvm::json::Value>>
LSPClient::diagnostics(llvm::StringRef Path) {}

} // namespace clangd
} // namespace clang