add implementation and tests for virtual function renaming
Details
Diff Detail
Event Timeline
haven't found anything else
| clang-rename/USRFindingAction.cpp | ||
|---|---|---|
| 62 | const auto &OverridenMethod | |
| clang-rename/USRFindingAction.cpp | ||
|---|---|---|
| 62 | Fixed; thanks! | |
| clang-rename/USRFindingAction.cpp | ||
|---|---|---|
| 12 | ... at <offset>, as well as all relevant USRs. | |
| 60 | I'd use early exit here: | |
| 62 | This is n^3, right? (for each virtual method we run over all overrides, searching through all USRs) | |
| 144 | Having all side-effects in the constructor is really unexpected to me. I'd add a Find() method. | |
| clang-rename/USRFindingAction.cpp | ||
|---|---|---|
| 109 | Thanks for the feedback! | |
| clang-rename/USRFindingAction.cpp | ||
|---|---|---|
| 106 | Still pondering whether 'relevant' is a good name here... | |
| 133 | That way, the matchers don't actually get us too much - I'd hoped we already had an hasOverriddenMethod matcher (apparently we don't). It might make sense to implement one. | |
| 147 | Perhaps call this addUSRsFromOverrideSets or something? addRelevantUSRs doesn't really tell me anything about what it does, and it's currently pretty specific. | |
... at <offset>, as well as all relevant USRs.