#include "Annotations.h"
#include "AST.h"
#include "ParsedAST.h"
#include "Protocol.h"
#include "SourceCode.h"
#include "SyncAPI.h"
#include "TestFS.h"
#include "TestTU.h"
#include "XRefs.h"
#include "index/MemIndex.h"
#include "clang/AST/Decl.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/ScopedPrinter.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <optional>
#include <string>
#include <vector>
namespace clang {
namespace clangd {
namespace {
AllOf;
ElementsAre;
Eq;
IsEmpty;
Matcher;
UnorderedElementsAre;
UnorderedElementsAreArray;
UnorderedPointwise;
std::string guard(llvm::StringRef Code) { … }
MATCHER_P2(FileRange, File, Range, "") { … }
MATCHER(declRange, "") { … }
Matcher<const std::vector<DocumentHighlight> &>
highlightsFrom(const Annotations &Test) { … }
TEST(HighlightsTest, All) { … }
TEST(HighlightsTest, ControlFlow) { … }
MATCHER_P3(sym, Name, Decl, DefOrNone, "") { … }
MATCHER_P(sym, Name, "") { … }
MATCHER_P(rangeIs, R, "") { … }
MATCHER_P(containerIs, C, "") { … }
MATCHER_P(attrsAre, A, "") { … }
MATCHER_P(hasID, ID, "") { … }
TEST(LocateSymbol, WithIndex) { … }
TEST(LocateSymbol, AnonymousStructFields) { … }
TEST(LocateSymbol, FindOverrides) { … }
TEST(LocateSymbol, WithIndexPreferredLocation) { … }
TEST(LocateSymbol, All) { … }
TEST(LocateSymbol, ValidSymbolID) { … }
TEST(LocateSymbol, AllMulti) { … }
TEST(LocateSymbol, Warnings) { … }
TEST(LocateSymbol, TextualSmoke) { … }
TEST(LocateSymbol, Textual) { … }
TEST(LocateSymbol, Ambiguous) { … }
TEST(LocateSymbol, TextualDependent) { … }
TEST(LocateSymbol, Alias) { … }
TEST(LocateSymbol, RelPathsInCompileCommand) { … }
TEST(GoToInclude, All) { … }
TEST(LocateSymbol, WithPreamble) { … }
TEST(LocateSymbol, NearbyTokenSmoke) { … }
TEST(LocateSymbol, NearbyIdentifier) { … }
TEST(FindImplementations, Inheritance) { … }
TEST(FindImplementations, CaptureDefinition) { … }
TEST(FindType, All) { … }
TEST(FindType, Definition) { … }
TEST(FindType, Index) { … }
void checkFindRefs(llvm::StringRef Test, bool UseIndex = false) { … }
TEST(FindReferences, WithinAST) { … }
TEST(FindReferences, ConceptsWithinAST) { … }
TEST(FindReferences, ConceptReq) { … }
TEST(FindReferences, RequiresExprParameters) { … }
TEST(FindReferences, IncludeOverrides) { … }
TEST(FindReferences, RefsToBaseMethod) { … }
TEST(FindReferences, MainFileReferencesOnly) { … }
TEST(FindReferences, ExplicitSymbols) { … }
TEST(FindReferences, UsedSymbolsFromInclude) { … }
TEST(FindReferences, NeedsIndexForSymbols) { … }
TEST(FindReferences, NeedsIndexForMacro) { … }
TEST(FindReferences, NoQueryForLocalSymbols) { … }
TEST(GetNonLocalDeclRefs, All) { … }
TEST(DocumentLinks, All) { … }
}
}
}