When renaming a class with template constructors, we are missing the
occurrences of the template constructors, because getUSRsForDeclaration doesn't
give USRs of the templated constructors (they are not in the normal ctors()
method).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/unittests/RenameTests.cpp | ||
---|---|---|
144 | nit: Maybe also add ^ to this one and the one below? | |
clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp | ||
140 | nit: The naming is slightly confusing, this probably suggests MethodDecl instance, but it's not spelled anywhere and may be better to call it just D. | |
clang/test/clang-rename/TemplateCtor.cpp | ||
1 ↗ | (On Diff #243147) | Nit: not sure if the new file is necessary, maybe just put this under .../Ctor.cpp? |
Comment Actions
Should be good to go, please run git-clang-format on the changes just to make sure.
Thanks for fixing this!
clang-tools-extra/clangd/unittests/RenameTests.cpp | ||
---|---|---|
141 | nit: I think this is still not formatted as the comment has a different offset. |
nit: I think this is still not formatted as the comment has a different offset.