This is first step to integrate qualified rename into clang-refactor.
Also a few changes to SymbolOccurrence:
- add more information to SymbolOccurrence
- remove the way of using SourceLocation as the array size
Paths
| Differential D39290
[rename] Use SymbolOccurrence in RenameLocFinder. AbandonedPublic Authored by hokein on Oct 25 2017, 8:18 AM.
Details
Diff Detail
Event TimelineComment Actions Could you elaborate on the intention of this change? Is the intention of having more information in SymbolOccurrence to benefit users of the rename library or to simplify the internal implementation?
Revision Contents
Diff 120261 include/clang/Tooling/Refactoring/Rename/SymbolOccurrences.h
lib/Tooling/Refactoring/Rename/SymbolOccurrences.cpp
lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
|
A SymbolOccurrence is likely to out-live an AST (e.g. when used in clang-refactor or serialized to files), so it might not be safe to store references to ASTs here. If we really want AST information in the SymbolOccurrence, we could probably derive from it and use only internally. But it doesn't make sense to pass AST references out to users.