Added formatAndApplyAllReplacements that works on multiple files in libTooling.
authorEric Liu <ioeric@google.com>
Tue, 29 Mar 2016 16:31:53 +0000 (16:31 +0000)
committerEric Liu <ioeric@google.com>
Tue, 29 Mar 2016 16:31:53 +0000 (16:31 +0000)
commit4c1ef97adb1ecdc4ed3ee4a9ee7d5546aecda014
tree3d1c1f5466abeda93688c97d03b55425a3619b01
parent3db0b85fc8b0f914934c0f0b4c5eb28b64bd18a9
Added formatAndApplyAllReplacements that works on multiple files in libTooling.

Summary:
formatAndApplyAllReplacements takes a set of Replacements, applies them on a
Rewriter, and reformats the changed code.

Reviewers: klimek, djasper

Subscribers: ioeric, klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D17852

llvm-svn: 264745
clang/include/clang/Basic/SourceManager.h
clang/include/clang/Format/Format.h
clang/include/clang/Tooling/Core/Replacement.h
clang/include/clang/Tooling/Refactoring.h
clang/lib/Format/Format.cpp
clang/lib/Tooling/CMakeLists.txt
clang/lib/Tooling/Core/Replacement.cpp
clang/lib/Tooling/Refactoring.cpp
clang/unittests/Format/FormatTest.cpp
clang/unittests/Tooling/CMakeLists.txt
clang/unittests/Tooling/RefactoringTest.cpp