Use Rewriter::overwriteChangedFiles() directly
authorAlp Toker <alp@nuanti.com>
Tue, 29 Oct 2013 08:32:41 +0000 (08:32 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 29 Oct 2013 08:32:41 +0000 (08:32 +0000)
commit6bf97fb15c09db9a0238ccb73be2dbf9cd77a7ee
treef4664eb9d4ca40d16bdecb72f59d1c14ab738197
parent2dd4710a1237f4ae089a6b91ca2fc34c38c5163e
Use Rewriter::overwriteChangedFiles() directly

This replaces the custom code in RefactoringTool::saveRewrittenFiles() which
lacked atomic file saving and error diagnostics, resolving an old FIXME from
r157331.

Landing this time with the proper return code, plus a very unhelpful comment
cleared up.

Rubber-stamped by Manuel Klimek.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193594 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Rewrite/Core/Rewriter.h
lib/Tooling/Refactoring.cpp