add implementation and tests for virtual function renaming
Details
Diff Detail
Event Timeline
haven't found anything else
clang-rename/USRFindingAction.cpp | ||
---|---|---|
48 | const auto &OverridenMethod |
clang-rename/USRFindingAction.cpp | ||
---|---|---|
48 | Fixed; thanks! |
clang-rename/USRFindingAction.cpp | ||
---|---|---|
12 | ... at <offset>, as well as all relevant USRs. | |
46 | I'd use early exit here: | |
48 | This is n^3, right? (for each virtual method we run over all overrides, searching through all USRs) | |
161 | Having all side-effects in the constructor is really unexpected to me. I'd add a Find() method. |
clang-rename/USRFindingAction.cpp | ||
---|---|---|
48 | Thanks for the feedback! |
clang-rename/USRFindingAction.cpp | ||
---|---|---|
45 | Still pondering whether 'relevant' is a good name here... | |
72 | 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. | |
86 | 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.