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

//===-- FindSymbolsTests.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 "FindSymbols.h"
#include "TestFS.h"
#include "TestTU.h"
#include "llvm/ADT/StringRef.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

namespace clang {
namespace clangd {

namespace {

AllOf;
ElementsAre;
ElementsAreArray;
Field;
IsEmpty;
UnorderedElementsAre;

// GMock helpers for matching SymbolInfos items.
MATCHER_P(qName, Name, "") {}
MATCHER_P(withName, N, "") {}
MATCHER_P(withKind, Kind, "") {}
MATCHER_P(withDetail, Detail, "") {}
MATCHER_P(symRange, Range, "") {}

// GMock helpers for matching DocumentSymbol.
MATCHER_P(symNameRange, Range, "") {}
template <class... ChildMatchers>
::testing::Matcher<DocumentSymbol> children(ChildMatchers... ChildrenM) {}

std::vector<SymbolInformation> getSymbols(TestTU &TU, llvm::StringRef Query,
                                          int Limit = 0) {}

TEST(WorkspaceSymbols, Macros) {}

TEST(WorkspaceSymbols, NoLocals) {}

TEST(WorkspaceSymbols, Globals) {}

TEST(WorkspaceSymbols, Unnamed) {}

TEST(WorkspaceSymbols, InMainFile) {}

TEST(WorkspaceSymbols, Namespaces) {}

TEST(WorkspaceSymbols, AnonymousNamespace) {}

TEST(WorkspaceSymbols, MultiFile) {}

TEST(WorkspaceSymbols, GlobalNamespaceQueries) {}

TEST(WorkspaceSymbols, Enums) {}

TEST(WorkspaceSymbols, Ranking) {}

TEST(WorkspaceSymbols, RankingPartialNamespace) {}

TEST(WorkspaceSymbols, WithLimit) {}

TEST(WorkspaceSymbols, TempSpecs) {}

std::vector<DocumentSymbol> getSymbols(ParsedAST AST) {}

TEST(DocumentSymbols, BasicSymbols) {}

TEST(DocumentSymbols, DeclarationDefinition) {}

TEST(DocumentSymbols, Concepts) {}

TEST(DocumentSymbols, ExternSymbol) {}

TEST(DocumentSymbols, ExternContext) {}

TEST(DocumentSymbols, ExportContext) {}

TEST(DocumentSymbols, NoLocals) {}

TEST(DocumentSymbols, Unnamed) {}

TEST(DocumentSymbols, InHeaderFile) {}

TEST(DocumentSymbols, Template) {}

TEST(DocumentSymbols, Namespaces) {}

TEST(DocumentSymbols, Enums) {}

TEST(DocumentSymbols, Macro) {}

TEST(DocumentSymbols, RangeFromMacro) {}

TEST(DocumentSymbols, FuncTemplates) {}

TEST(DocumentSymbols, UsingDirectives) {}

TEST(DocumentSymbols, TempSpecs) {}

TEST(DocumentSymbols, Qualifiers) {}

TEST(DocumentSymbols, QualifiersWithTemplateArgs) {}

TEST(DocumentSymbolsTest, Ranges) {}

TEST(DocumentSymbolsTest, DependentType) {}

TEST(DocumentSymbolsTest, ObjCCategoriesAndClassExtensions) {}

TEST(DocumentSymbolsTest, PragmaMarkGroups) {}

TEST(DocumentSymbolsTest, PragmaMarkGroupsNesting) {}

TEST(DocumentSymbolsTest, PragmaMarkGroupsNoNesting) {}

} // namespace
} // namespace clangd
} // namespace clang