several changes:
- return a structure result in rename API;
- prepareRename now returns more information (main-file occurrences)
- remove the duplicated detecting-touch-identifier code in prepareRename (which is implemented in rename API);
Paths
| Differential D88634
[clangd] Extend the rename API. ClosedPublic Authored by hokein on Oct 1 2020, 12:19 AM.
Details
Summary several changes:
Diff Detail
Event Timeline
Comment Actions LG, introducing a separate field for locally affected ranges is up to you.
This revision is now accepted and ready to land.Oct 2 2020, 2:03 AM hokein marked 2 inline comments as done. Comment Actionsaddress comment: add the LocalChanges field in RenameResult.
Comment Actions LG, thanks!
This revision was landed with ongoing or failed builds.Oct 2 2020, 7:04 AM Closed by commit rG0f0cbcc4b166: [clangd] Extend the rename API. (authored by hokein). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 295476 clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/refactor/Rename.h
clang-tools-extra/clangd/refactor/Rename.cpp
clang-tools-extra/clangd/test/rename.test
clang-tools-extra/clangd/unittests/RenameTests.cpp
clang-tools-extra/clangd/unittests/SyncAPI.h
clang-tools-extra/clangd/unittests/SyncAPI.cpp
|
nit: drop "may be incomplete as it"?