[clangd-dev] LSP's diagnostic's 'code' and Clang's diagnostic category

Alex L via clangd-dev clangd-dev at lists.llvm.org
Tue Aug 7 16:50:02 PDT 2018


I noticed that Clangd doesn't currently use LSP's 'code' field in the
Diagnostic structure when publishing the diagnostics. I would like to use
it to send the name of the diagnostic's category to the client (e.g.
"Semantic Issue" / "Parsing Issue"). Would it make sense to use the 'code'
field for this, and would it make sense to turn it on by default? Are there
any other plans to use it for something else instead?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/clangd-dev/attachments/20180807/ba0fded3/attachment.html>

More information about the clangd-dev mailing list