clang-rename: split existing options into two new subcommands
authorMiklos Vajna <vmiklos@vmiklos.hu>
Tue, 2 Aug 2016 09:51:31 +0000 (09:51 +0000)
committerMiklos Vajna <vmiklos@vmiklos.hu>
Tue, 2 Aug 2016 09:51:31 +0000 (09:51 +0000)
commitaaec9b6cfce2e492cac2fd79687f0fab9bd8a9af
tree1a2cf444fa67050e9abb4f0ce7455722a7a4df25
parent9e0dab935292c4e513db76781cb036c5f19ea3c7
clang-rename: split existing options into two new subcommands

- rename-at is meant to be integrated with editors and works mainly off
  of a location in a file, and this is the default
- rename-all is optimized for one or more oldname->newname renames, and
  works with clang-apply-replacements

Reviewers: bkramer, klimek

Subscribers: omtcyfz

Differential Revision: https://reviews.llvm.org/D21814

llvm-svn: 277438
clang-tools-extra/clang-rename/RenamingAction.cpp
clang-tools-extra/clang-rename/RenamingAction.h
clang-tools-extra/clang-rename/tool/ClangRename.cpp
clang-tools-extra/docs/clang-rename.rst
clang-tools-extra/test/clang-rename/ClassFindByName.cpp
clang-tools-extra/test/clang-rename/ClassTestMulti.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-rename/ClassTestMultiByName.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-rename/FunctionWithClassFindByName.cpp
clang-tools-extra/test/clang-rename/NoNewName.cpp