This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add a flag to clangdServer rename function to control whether we want format the replacements.
ClosedPublic

Authored by hokein on Jul 10 2019, 6:01 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein created this revision.Jul 10 2019, 6:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2019, 6:01 AM
ilya-biryukov accepted this revision.Jul 10 2019, 6:20 AM

LGTM with a small NIT.

Was also thinking about adding a test for this, but the amount of work required to do so seems to outweigh the usefulness. Therefore seems ok to land without the test too.
But up to you.

clang-tools-extra/clangd/ClangdServer.h
244 ↗(On Diff #208932)

Could you add a short comment mentioning the highlight use-case? (the review description seems to be a good fit)

This revision is now accepted and ready to land.Jul 10 2019, 6:20 AM
hokein updated this revision to Diff 208940.Jul 10 2019, 6:39 AM
hokein marked an inline comment as done.

Address review comment.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2019, 6:44 AM