Make clangd handle "textDocument/rename" request. The rename
functionality comes from the "local-rename" sub-tool of clang-refactor.
Currently clangd only supports local rename (only symbol occurrences in
the main file will be renamed).
Paths
| Differential D39676
[clangd] Add rename support. ClosedPublic Authored by hokein on Nov 6 2017, 1:32 AM.
Details Summary Make clangd handle "textDocument/rename" request. The rename Currently clangd only supports local rename (only symbol occurrences in
Diff Detail
Event TimelineComment Actions Impl LG apart from error handling :-)
Comment Actions Side-comment: will want to let the user know about the fact that global symbols aren't really renamed yet until global rename works? Comment Actions Just a few minor code style comments.
hokein marked 10 inline comments as done. Comment Actions
This revision is now accepted and ready to land.Nov 8 2017, 6:35 AM Closed by commit rL317780: [clangd] Add rename support. (authored by hokein). · Explain WhyNov 9 2017, 3:30 AM This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done.
Revision Contents
Diff 122074 clangd/CMakeLists.txt
clangd/ClangdLSPServer.h
clangd/ClangdLSPServer.cpp
clangd/ClangdServer.h
clangd/ClangdServer.cpp
clangd/ClangdUnit.h
clangd/ClangdUnit.cpp
clangd/Protocol.h
clangd/Protocol.cpp
clangd/ProtocolHandlers.h
clangd/ProtocolHandlers.cpp
test/clangd/initialize-params-invalid.test
test/clangd/initialize-params.test
test/clangd/rename.test
|
why is this needed? shouldn't inheriting the base method be enough if it's only ever called through the base?