]> granicus.if.org Git - clang/commit
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)
commit6a4597fa13445b50f309fbf1f3ffaa4319a7fbb4
tree1b31ed104cfe78420c978889bf2b5d33851db8d6
parentbdbac4893805e6d92539aef918fff0e18833596e
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264745 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/SourceManager.h
include/clang/Format/Format.h
include/clang/Tooling/Core/Replacement.h
include/clang/Tooling/Refactoring.h
lib/Format/Format.cpp
lib/Tooling/CMakeLists.txt
lib/Tooling/Core/Replacement.cpp
lib/Tooling/Refactoring.cpp
unittests/Format/FormatTest.cpp
unittests/Tooling/CMakeLists.txt
unittests/Tooling/RefactoringTest.cpp