Fix writing of reformatted files.
authorManuel Klimek <klimek@google.com>
Thu, 5 Sep 2013 13:55:39 +0000 (13:55 +0000)
committerManuel Klimek <klimek@google.com>
Thu, 5 Sep 2013 13:55:39 +0000 (13:55 +0000)
commitbfbc8c8412efc935088c4e51fc79fe8eadd2c520
treeff6b9fe160e40e9a4ac4a75ed2b822b43dedd6f9
parentd797f3c2012e06b8b60871121503e6ac2136a842
Fix writing of reformatted files.

If transformations lead to changes that do not need reformatting, the
current strategy will not write those files. With this patch, we just
update the overall state with the changes due to reformatting, and then
write out everything.

llvm-svn: 190050
clang-tools-extra/clang-modernize/tool/ClangModernize.cpp
clang-tools-extra/test/clang-modernize/Core/NoReformattingNeeded.cpp [new file with mode: 0644]