[PATCH] D82436: [clangd] Implement textDocument/foldingRange
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 13 06:01:56 PDT 2020
sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.
Nice, thanks!
================
Comment at: clang-tools-extra/clangd/Protocol.h:1523
+ unsigned startLine = 0;
+ llvm::Optional<unsigned> startCharacter;
+ unsigned endLine = 0;
----------------
for outgoing fields that are optional in the protocol but we always set, we tend to omit `Optional`. The protocol is worded in a way that suggests servers may continue to set the character fields even for line-oriented editors, and I think we should do this, dropping `Optional` here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82436/new/
https://reviews.llvm.org/D82436
More information about the cfe-commits
mailing list