]> granicus.if.org Git - clang/commitdiff
[refactor][rename] Use a single base class for class that finds
authorAlex Lorenz <arphaman@gmail.com>
Thu, 13 Jul 2017 10:36:33 +0000 (10:36 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 13 Jul 2017 10:36:33 +0000 (10:36 +0000)
a declaration at location and for class that searches for all occurrences of
a specific declaration

This commit uses a single RecursiveSymbolVisitor class for both
USRLocFindingASTVisitor and NamedDeclOccurrenceFindingVisitor to avoid duplicate
traversal code. It also traverses nested name specifier locs in the new class
and remove the separate matching step.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307898 91177308-0d34-0410-b5e6-96231b3b80d8


No differences found