#include "Annotations.h"
#include "ClangdServer.h"
#include "SyncAPI.h"
#include "TestFS.h"
#include "TestTU.h"
#include "index/Ref.h"
#include "refactor/Rename.h"
#include "support/TestTracer.h"
#include "clang/Tooling/Core/Replacement.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include <algorithm>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace clang {
namespace clangd {
namespace {
ElementsAre;
Eq;
IsEmpty;
Pair;
SizeIs;
UnorderedElementsAre;
UnorderedElementsAreArray;
llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>
createOverlay(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> Base,
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> Overlay) { … }
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> getVFSFromAST(ParsedAST &AST) { … }
Ref refWithRange(const clangd::Range &Range, const std::string &URI) { … }
std::unique_ptr<RefSlab> buildRefSlab(const Annotations &Code,
llvm::StringRef SymbolName,
llvm::StringRef Path) { … }
std::vector<
std::pair< std::string, std::string>>
applyEdits(FileEdits FE) { … }
std::string expectedResult(Annotations Test, llvm::StringRef NewName) { … }
std::vector<SymbolRange> symbolRanges(llvm::ArrayRef<Range> Ranges) { … }
TEST(RenameTest, WithinFileRename) { … }
TEST(RenameTest, ObjCWithinFileRename) { … }
TEST(RenameTest, Renameable) { … }
MATCHER_P(newText, T, "") { … }
TEST(RenameTest, IndexMergeMainFile) { … }
TEST(RenameTest, MainFileReferencesOnly) { … }
TEST(RenameTest, NoRenameOnSymbolsFromSystemHeaders) { … }
TEST(RenameTest, ProtobufSymbolIsExcluded) { … }
TEST(RenameTest, PrepareRename) { … }
TEST(CrossFileRenameTests, DirtyBuffer) { … }
TEST(CrossFileRenameTests, DeduplicateRefsFromIndex) { … }
TEST(CrossFileRenameTests, WithUpToDateIndex) { … }
TEST(CrossFileRenameTests, ObjC) { … }
TEST(CrossFileRenameTests, CrossFileOnLocalSymbol) { … }
TEST(CrossFileRenameTests, BuildRenameEdits) { … }
TEST(CrossFileRenameTests, adjustRenameRanges) { … }
TEST(RangePatchingHeuristic, GetMappedRanges) { … }
TEST(CrossFileRenameTests, adjustmentCost) { … }
}
}
}