This is an archive of the discontinued LLVM Phabricator instance.

[docs] Update clang-rename documentation
AbandonedPublic

Authored by kbobyrev on Aug 27 2018, 2:44 AM.

Details

Reviewers
None
Summary

Clangd has way better editor support compared to the ad-hoc integration I created before and we should point users to Clangd mentioning that they could still use standalone tool if they really want to.

Also, links to the Vim and Emacs scripts were not updated after the move from clang-tools-extra to clang.

This patch does not introduce any functionality changes.

Diff Detail

Event Timeline

kbobyrev created this revision.Aug 27 2018, 2:44 AM
kbobyrev updated this revision to Diff 162643.Aug 27 2018, 2:45 AM

Add missing _ after the link.

kbobyrev retitled this revision from [clang-rename] Update documentation to [docs] Update clang-rename documentation.Aug 27 2018, 2:59 AM
kbobyrev edited the summary of this revision. (Show Details)
ilya-biryukov added inline comments.Aug 27 2018, 4:40 AM
clang-tools-extra/docs/clang-rename.rst
28

I would not recommend clangd at this point, it only supports single-file renames, while clang-rename can actually do cross-TU renames IIUC.
Not opposed to putting recommendations of using clangd, of course, but let's be explicit about the limitations.

kbobyrev added inline comments.Aug 27 2018, 8:48 AM
clang-tools-extra/docs/clang-rename.rst
28

Interesting, I thought we do the same logic in Clangd. Yeah, I think we should fix that behavior.

ilya-biryukov added inline comments.Aug 28 2018, 1:09 AM
clang-tools-extra/docs/clang-rename.rst
28

For that we would need up-to-date cross references

kbobyrev updated this revision to Diff 163025.Aug 29 2018, 1:23 AM
kbobyrev marked 3 inline comments as done.

Moved the note about Clangd integration to the end, rephrased a bit.

Leaving some comments, but also suggest getting the final LGTM from the owner of the doc (@ioeric?)

clang-tools-extra/docs/clang-rename.rst
141

handle renaming requests seems to assume some familiarity with LSP. Maybe rephrase?

167

Accidentally linked to clang-rename.py instead clang-rename.el?

ioeric added inline comments.Aug 29 2018, 7:50 AM
clang-tools-extra/docs/clang-rename.rst
140

nit: clangd *shares* the renaming infrastructure of clang-rename...

141

Currently it only supports renaming symbol within a single file, but in the future it will have much better support than the standalone tool.

This seems clangd specific and can easily get outdated when the support is actually added in clangd. Consider moving it to clangd's documentation if we do want to advertise rename at this point?

kbobyrev updated this revision to Diff 163305.Aug 30 2018, 4:46 AM
kbobyrev marked 4 inline comments as done.
  • Fix the .py (should be .el in the second case) typo
  • Move piece about rename request to Clangd docs and advertise it htere
  • Use better wording for Clang-Rename docs advertising Clangd

@ioeric does it look better now?

kbobyrev abandoned this revision.Dec 2 2019, 2:25 AM