Adds a method overwriteChangedFiles to the Rewriter. This is implemented by
authorManuel Klimek <klimek@google.com>
Tue, 22 May 2012 17:01:35 +0000 (17:01 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 22 May 2012 17:01:35 +0000 (17:01 +0000)
commit78d084d942ad1fed22f0b5a5adabd0554c56ccfe
tree432044944fec9fa717d93ea1412e4058e6980f53
parent4d30e9b5ebf2992bbda17354b775f50a4ffd6fbe
Adds a method overwriteChangedFiles to the Rewriter. This is implemented by
first writing the changed files to a temporary location and then overwriting
the original files atomically.

Also adds a RewriterTestContext to aid unit testing rewrting logic in general.

llvm-svn: 157260
clang/include/clang/Rewrite/Rewriter.h
clang/lib/Rewrite/Rewriter.cpp
clang/unittests/CMakeLists.txt
clang/unittests/Tooling/RewriterTest.cpp [new file with mode: 0644]
clang/unittests/Tooling/RewriterTestContext.h [new file with mode: 0644]