[PATCH] D130081: Add foldings for multi-line comment.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 26 03:54:31 PDT 2022
kadircet added inline comments.
================
Comment at: clang-tools-extra/clangd/Protocol.h:1782
unsigned endCharacter;
- std::string kind;
+ FoldingRangeKind kind;
};
----------------
hokein wrote:
> sorry for not being clear on my previous comment, I think the current `string kind;` is good, and it aligns with the LSP one.
>
> what I suggest was adding string literals to FoldingRange, something like
>
>
> ```
> struct FoldingRange {
> const static llvm::StringLiteral REGION_KIND;
> const static llvm::StringLiteral COMMENT_KIND;
> const static llvm::StringLiteral IMPORT_KIND;
>
> // other fields keep as-is.
> ...
> }
> ```
> we're diverging from the LSP structure.
+1, we already have the same pattern for code action kinds, i was also referring to this in our offline discussion.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130081/new/
https://reviews.llvm.org/D130081
More information about the cfe-commits
mailing list