[PATCH] D47460: Treat files as volatile by default
Ivan Donchevskii via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 30 06:16:46 PDT 2018
yvvan added a comment.
Memory mapping locks the file on Windows. That means that in the addressed case it locks main file which we are editing. After that happens many tools struggle to do something with this file, for example git.
It's the quickest solution, probably not the best. Better one would introduce isVolatile parameter in FileSystem::getBufferForFile which should be set to true somewhere (I didn't have to to search for the specific location yet)
https://reviews.llvm.org/D47460
More information about the cfe-commits
mailing list