- Use single RecursiveSymbolVisitor class for both USRLocFindingASTVisitor and NamedDeclOccurrenceFindingVisitor to avoid duplicate visiting code.
- Traverse nested name specifier locs in the new class and remove the separate matching step.
- New class NamedDeclFindingVisitor handles search for a declaration by name. We don't have to visit each occurrence to find the declaration, so a simple NamedDecl search should be enough.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM.
include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h | ||
---|---|---|
33 ↗ | (On Diff #105084) | nit: I'd add a private specifier for these private members, and put it after the public section. |