This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Separate final_result into a different message
ClosedPublic

Authored by kbobyrev on Oct 20 2020, 11:39 PM.

Details

Summary

This is a breaking change in remote index protocol.

Diff Detail

Event Timeline

kbobyrev created this revision.Oct 20 2020, 11:39 PM
kbobyrev requested review of this revision.Oct 20 2020, 11:39 PM
kbobyrev updated this revision to Diff 299705.Oct 21 2020, 8:45 AM

Fix proto formatting

kbobyrev updated this revision to Diff 300528.Oct 25 2020, 1:24 AM

Rebase on top of master, use proto2 syntax.

kbobyrev retitled this revision from [clangd] Separate final_result into a different message; NFC to [clangd] Separate final_result into a different message.Oct 25 2020, 1:24 AM
kbobyrev edited the summary of this revision. (Show Details)
sammccall accepted this revision.Oct 27 2020, 3:03 AM
sammccall added inline comments.
clang-tools-extra/clangd/index/remote/Index.proto
18

this deserves a comment: "Common final result for streaming requests."

18

this isn't specific to Lookup, so shouldn't go between LookupRequest and LookupReply, rather either at the very top or below all the request/reply messages.

23

I think stream_result/result suggests that result is "primary" which isn't the case.
I think the old names stream_result/final_result were clearer.

This revision is now accepted and ready to land.Oct 27 2020, 3:03 AM
kbobyrev updated this revision to Diff 300936.Oct 27 2020, 3:45 AM
kbobyrev marked 3 inline comments as done.

Address post-LGTM comments.

This revision was landed with ongoing or failed builds.Oct 27 2020, 3:46 AM
This revision was automatically updated to reflect the committed changes.