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

//===-- IndexTests.cpp  -------------------------------*- C++ -*-----------===//
//
// 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 "SyncAPI.h"
#include "TestIndex.h"
#include "TestTU.h"
#include "index/FileIndex.h"
#include "index/Index.h"
#include "index/MemIndex.h"
#include "index/Merge.h"
#include "index/Symbol.h"
#include "clang/Index/IndexSymbol.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <utility>

_;
AllOf;
ElementsAre;
IsEmpty;
Pair;
Pointee;
UnorderedElementsAre;

namespace clang {
namespace clangd {
namespace {

MATCHER_P(named, N, "") {}
MATCHER_P(refRange, Range, "") {}
MATCHER_P(fileURI, F, "") {}

TEST(SymbolLocation, Position) {}

TEST(SymbolSlab, FindAndIterate) {}

TEST(RelationSlab, Lookup) {}

TEST(RelationSlab, Duplicates) {}

TEST(SwapIndexTest, OldIndexRecycled) {}

TEST(MemIndexTest, MemIndexDeduplicate) {}

TEST(MemIndexTest, MemIndexLimitedNumMatches) {}

TEST(MemIndexTest, FuzzyMatch) {}

TEST(MemIndexTest, MatchQualifiedNamesWithoutSpecificScope) {}

TEST(MemIndexTest, MatchQualifiedNamesWithGlobalScope) {}

TEST(MemIndexTest, MatchQualifiedNamesWithOneScope) {}

TEST(MemIndexTest, MatchQualifiedNamesWithMultipleScopes) {}

TEST(MemIndexTest, NoMatchNestedScopes) {}

TEST(MemIndexTest, IgnoreCases) {}

TEST(MemIndexTest, Lookup) {}

TEST(MemIndexTest, IndexedFiles) {}

TEST(MemIndexTest, TemplateSpecialization) {}

TEST(MergeIndexTest, Lookup) {}

TEST(MergeIndexTest, LookupRemovedDefinition) {}

TEST(MergeIndexTest, FuzzyFind) {}

TEST(MergeIndexTest, FuzzyFindRemovedSymbol) {}

TEST(MergeTest, Merge) {}

TEST(MergeTest, PreferSymbolWithDefn) {}

TEST(MergeTest, PreferSymbolLocationInCodegenFile) {}

TEST(MergeIndexTest, Refs) {}

TEST(MergeIndexTest, IndexedFiles) {}

TEST(MergeIndexTest, NonDocumentation) {}

MATCHER_P2(IncludeHeaderWithRef, IncludeHeader, References, "") {}

TEST(MergeTest, MergeIncludesOnDifferentDefinitions) {}

TEST(MergeIndexTest, IncludeHeadersMerged) {}
} // namespace
} // namespace clangd
} // namespace clang