[clang-tools-extra] d267217 - [clangd] Drop unnecessary FS modifications in FindSymbolsTests

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 8 09:36:26 PDT 2020


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);
   }
 };


        


More information about the cfe-commits mailing list