#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;
MATCHER_P(qName, Name, "") { … }
MATCHER_P(withName, N, "") { … }
MATCHER_P(withKind, Kind, "") { … }
MATCHER_P(withDetail, Detail, "") { … }
MATCHER_P(symRange, Range, "") { … }
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) { … }
}
}
}