hanchenye-llvm-project/clang/tools/clang-format
Nico Weber 65da45763e clang-format: Don't leave behind temp files in -i mode on Windows, PR26125, reloaded
Second attempt after http://llvm.org/viewvc/llvm-project?rev=296166&view=rev

In the first attempt, Code (the memory buffer backing the input file) was reset
before overwriteChangedFiles() was called, but overwriteChangedFiles() still
reads from it.  This time, load the whole input file into memory instead of
using mmap when formatting in-place.

(Since the test is identical to what was in the repo before chapuni's revert,
svn diff doesn't show it – see the above link for the test.)

https://reviews.llvm.org/D30385

llvm-svn: 296408
2017-02-27 22:59:58 +00:00
..
fuzzer
CMakeLists.txt [CMake] Add install-clang-format target by migrating to add_clang_tool 2016-02-23 20:33:15 +00:00
ClangFormat.cpp clang-format: Don't leave behind temp files in -i mode on Windows, PR26125, reloaded 2017-02-27 22:59:58 +00:00
clang-format-bbedit.applescript
clang-format-diff.py Add the --no-color option to the git call in the doc when using clang-format-diff 2016-12-03 23:22:45 +00:00
clang-format-sublime.py clang-format: Enable #include sorting by default. 2015-11-16 12:38:56 +00:00
clang-format-test.el Use UTF-8 for all communication with clang-format 2017-01-20 09:37:50 +00:00
clang-format.el Use UTF-8 for all communication with clang-format 2017-01-20 09:37:50 +00:00
clang-format.py [clang-format] Another attempt at python 3 compatibility 2016-12-10 00:54:13 +00:00
git-clang-format clang-format: Use git-ls-tree to get file mode in diff mode 2016-11-08 05:50:14 +00:00