llvm-project/clang/tools
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
..
arcmt-test [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
c-arcmt-test Remove autoconf support 2016-01-26 21:30:40 +00:00
c-index-test [index] Add 'Parameter' symbol kind and 'Local' symbol property to distinguish function-local symbols 2017-02-26 05:37:56 +00:00
clang-check Frontend: Simplify ownership model for clang's output streams. 2016-07-15 00:55:40 +00:00
clang-format 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-vs clang-format-vsix: add command to format document 2016-12-16 01:51:43 +00:00
clang-fuzzer Unbreak the clang-fuzzer build after r291184. 2017-01-11 16:42:26 +00:00
clang-import-test Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" 2017-01-06 19:49:01 +00:00
clang-offload-bundler Avoid calling dump() in normal code 2017-01-28 02:36:00 +00:00
diag-build Briefly document diag-build.sh 2013-12-28 21:59:11 +00:00
diagtool Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" 2017-01-06 19:49:01 +00:00
driver Cleanup: use range-based for rather than separate calls to begin and end. 2017-02-18 01:14:43 +00:00
libclang [index] Add 'Parameter' symbol kind and 'Local' symbol property to distinguish function-local symbols 2017-02-26 05:37:56 +00:00
scan-build scan-build: Add an option to show the description in the list of defect 2016-08-01 08:04:45 +00:00
scan-build-py [scan-build-py] move function report_directory from report module to analyze module 2017-02-14 10:43:38 +00:00
scan-view Remove autoconf support 2016-01-26 21:30:40 +00:00
CMakeLists.txt Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00