[clang-refactor] Get rid of OccurrencesFinder in RenamingAction, NFC
authorHaojian Wu <hokein@google.com>
Wed, 8 Nov 2017 14:53:08 +0000 (14:53 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 8 Nov 2017 14:53:08 +0000 (14:53 +0000)
commitf6c0678db7aa82294169c7b3e1a2713019ffa8f1
tree09ab0ec815df6b39abc228bfd5f6c3ee386a5843
parent0a41be758c1ac705a176c3a0d08d8f1643829b75
[clang-refactor] Get rid of OccurrencesFinder in RenamingAction, NFC

Summary:
The OccurrencesFinder is only used in RenameOccurrences to find symbol
occurrences, there is no need to inherit RefactoringRule.

Replace it with a single utility function to avoid code misleading.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: klimek, cfe-commits

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

llvm-svn: 317696
clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp