diff options
author | Lily Brown <lily@lily.fyi> | 2024-05-08 12:07:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 15:07:37 -0400 |
commit | 878c141adcd3a1ea47c4cc8429af5c8522678536 (patch) | |
tree | 204c31f60cc05f76f29e68b10f96f6763932201a /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 7e35a9a0e77aad673a3054855761ee4afd2605c1 (diff) | |
download | llvm-878c141adcd3a1ea47c4cc8429af5c8522678536.zip llvm-878c141adcd3a1ea47c4cc8429af5c8522678536.tar.gz llvm-878c141adcd3a1ea47c4cc8429af5c8522678536.tar.bz2 |
[mlir-lsp] Add DiagnosticTag from LSP spec (#91396)
Adds the [DiagnosticTag][diagtag] LSP construct to the LSP support
headers. I also added a unit test file to validate that the `tags` array
is omitted entirely if it's empty.
The LSP spec requires that `Diagnostic::tags` be an array; in order to
conform to that I used `std::vector`, as `SmallVector` doesn't have JSON
decoding support (you can encode it to JSON, but not decode it from
JSON).
[diagtag]:
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#diagnosticTag
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions