]> granicus.if.org Git - clang/commit
[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)
commitdae5d856a417d34cf39731e2604d644e4108bdfc
treef966b5d7dd160326bad01415aaa4eb7299261a74
parent4c855d55f14b238a2e75c05aecb00b46aa16de11
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317696 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/Refactoring/Rename/RenamingAction.cpp