Author: Kadir Cetinkaya Date: 2020-06-08T18:36:18+02:00 New Revision: d26721776ff08e0ecdd73b8851c44032d7c0a366
URL: https://github.com/llvm/llvm-project/commit/d26721776ff08e0ecdd73b8851c44032d7c0a366 DIFF: https://github.com/llvm/llvm-project/commit/d26721776ff08e0ecdd73b8851c44032d7c0a366.diff LOG: [clangd] Drop unnecessary FS modifications in FindSymbolsTests Added: Modified: clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp b/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp index dea783f049e3..3b3d0f61436e 100644 --- a/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp +++ b/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp @@ -71,9 +71,7 @@ class WorkspaceSymbolsTest : public ::testing::Test { } void addFile(llvm::StringRef FileName, llvm::StringRef Contents) { - auto Path = testPath(FileName); - FSProvider.Files[Path] = std::string(Contents); - Server.addDocument(Path, Contents); + Server.addDocument(testPath(FileName), Contents); } }; @@ -324,7 +322,6 @@ class DocumentSymbolsTest : public ::testing::Test { } void addFile(llvm::StringRef FilePath, llvm::StringRef Contents) { - FSProvider.Files[FilePath] = std::string(Contents); Server.addDocument(FilePath, Contents); } }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits