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

//===-- ClangdLSPServerTests.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 "Annotations.h"
#include "ClangdLSPServer.h"
#include "ClangdServer.h"
#include "ConfigProvider.h"
#include "Diagnostics.h"
#include "Feature.h"
#include "FeatureModule.h"
#include "LSPBinder.h"
#include "LSPClient.h"
#include "TestFS.h"
#include "support/Function.h"
#include "support/Logger.h"
#include "support/TestTracer.h"
#include "support/Threading.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/FunctionExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Testing/Support/Error.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <cassert>
#include <condition_variable>
#include <cstddef>
#include <deque>
#include <memory>
#include <mutex>
#include <optional>
#include <thread>
#include <utility>

namespace clang {
namespace clangd {
namespace {
ElementsAre;

MATCHER_P(diagMessage, M, "") {}

class LSPTest : public ::testing::Test {};

TEST_F(LSPTest, GoToDefinition) {}

TEST_F(LSPTest, Diagnostics) {}

TEST_F(LSPTest, DiagnosticsHeaderSaved) {}

TEST_F(LSPTest, RecordsLatencies) {}

// clang-tidy's renames are converted to clangd's internal rename functionality,
// see clangd#1589 and clangd#741
TEST_F(LSPTest, ClangTidyRename) {}

TEST_F(LSPTest, IncomingCalls) {}

TEST_F(LSPTest, CDBConfigIntegration) {}

TEST_F(LSPTest, ModulesTest) {}

// Creates a Callback that writes its received value into an
// std::optional<Expected>.
template <typename T>
llvm::unique_function<void(llvm::Expected<T>)>
capture(std::optional<llvm::Expected<T>> &Out) {}

TEST_F(LSPTest, FeatureModulesThreadingTest) {}

TEST_F(LSPTest, DiagModuleTest) {}
} // namespace
} // namespace clangd
} // namespace clang