Also contain a fix:
- Fix a false positive of renaming a using shadow function declaration.
Paths
| Differential D38882
[clang-rename] Add function unit tests. ClosedPublic Authored by hokein on Oct 13 2017, 6:57 AM.
Details Summary Also contain a fix:
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 13 2017, 8:14 AM Comment Actions Sorry, I thought I have run all the tests. The previous version broke one test in RenameClass. We still need the workaround for the std::function<void(T)> special case. I added it back, and also added a corresponding test case for renaming function, but it is currently not supported and disabled, I think it is fine now, as it is a rare case IMO. Please take a look again. Comment Actions Still LGTM
hokein marked an inline comment as done. Comment ActionsRemove the FIXME.
Closed by commit rL315898: [clang-rename] Add function unit tests. (authored by hokein). · Explain WhyOct 16 2017, 3:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 118903 lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
unittests/Rename/CMakeLists.txt
unittests/Rename/RenameClassTest.cpp
unittests/Rename/RenameFunctionTest.cpp
|
The current behavior looks fine to me, but I'm not sure if this is a right FIXME? Basically, I think we want to be able to get the real DeclContext for the symbol reference here right?