[clang-tools-extra] r354116 - [clangd] Unlink VFS working dir from OS working dir. Reland of r351051
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 15 03:04:25 PST 2019
Author: sammccall
Date: Fri Feb 15 03:04:25 2019
New Revision: 354116
URL: http://llvm.org/viewvc/llvm-project?rev=354116&view=rev
Log:
[clangd] Unlink VFS working dir from OS working dir. Reland of r351051
Modified:
clang-tools-extra/trunk/clangd/FSProvider.cpp
Modified: clang-tools-extra/trunk/clangd/FSProvider.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/FSProvider.cpp?rev=354116&r1=354115&r2=354116&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/FSProvider.cpp (original)
+++ clang-tools-extra/trunk/clangd/FSProvider.cpp Fri Feb 15 03:04:25 2019
@@ -74,9 +74,10 @@ clang::clangd::RealFileSystemProvider::g
// FIXME: Try to use a similar approach in Sema instead of relying on
// propagation of the 'isVolatile' flag through all layers.
#ifdef _WIN32
- return new VolatileFileSystem(llvm::vfs::getRealFileSystem());
+ return new VolatileFileSystem(
+ llvm::vfs::createPhysicalFileSystem().release());
#else
- return llvm::vfs::getRealFileSystem();
+ return llvm::vfs::createPhysicalFileSystem().release();
#endif
}
} // namespace clangd
More information about the cfe-commits
mailing list