[clang-tools-extra] [llvm] [clangd] Outline LSP payload decode errors (PR #203121)
Aleksandr Platonov via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 14 05:07:16 PDT 2026
ArcsinX wrote:
> We have the same pattern here https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/LSP/Transport.h#L171
>
> I think if we decide to commit this, we need to fix it in two places using a single function that creates an `LSPError` (and use this function in both places). BTW, the name `parseError` isn't quite right, since we aren't parsing an error, but handling it.
Sorry, it looks like https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/LSP is a separate, independent LSP implementation, so a common function to create `LSPError` can't be implemented; however, it still makes sense to apply the changes simultaneously in a single MR, since the pattern is the same.
https://github.com/llvm/llvm-project/pull/203121
More information about the cfe-commits
mailing list