[clangd] Avoid memory-mapping files on Windows
authorIlya Biryukov <ibiryukov@google.com>
Mon, 3 Dec 2018 15:21:49 +0000 (15:21 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 3 Dec 2018 15:21:49 +0000 (15:21 +0000)
commit1712bc7640033853d491228b589e7394ff77be2c
treee72e1876e33d6bcb644f00e3e7c732ee5373b6bb
parentfb39916048fcb8f7a14f91f624179625f9cd02c9
[clangd] Avoid memory-mapping files on Windows

Summary:
Memory-mapping files on Windows leads to them being locked and prevents
editors from saving changes to those files on disk. This is fine for the
compiler, but not acceptable for an interactive tool like clangd.
Therefore, we choose to avoid using memory-mapped files on Windows.

Reviewers: hokein, kadircet

Reviewed By: kadircet

Subscribers: yvvan, zturner, nik, malaperle, mgorny, ioeric, MaskRay, jkorous, arphaman, cfe-commits

Differential Revision: https://reviews.llvm.org/D55139

llvm-svn: 348147
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/FSProvider.cpp [new file with mode: 0644]
clang-tools-extra/clangd/FSProvider.h