CIRCT 22.0.0git
Loading...
Searching...
No Matches
LSPDiagnosticClient.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LIB_CIRCT_TOOLS_CIRCT_VERILOG_LSP_SERVER_LSPDIAGNOSTICCLIENT_H_
10#define LIB_CIRCT_TOOLS_CIRCT_VERILOG_LSP_SERVER_LSPDIAGNOSTICCLIENT_H_
11
12#include "VerilogDocument.h"
13#include "slang/diagnostics/DiagnosticClient.h"
14
15namespace circt {
16namespace lsp {
17
18class LSPDiagnosticClient : public slang::DiagnosticClient {
20 std::vector<llvm::lsp::Diagnostic> &diags;
21
22public:
24 std::vector<llvm::lsp::Diagnostic> &diags)
26
27 void report(const slang::ReportedDiagnostic &slangDiag) override;
28};
29} // namespace lsp
30} // namespace circt
31
32#endif
void report(const slang::ReportedDiagnostic &slangDiag) override
std::vector< llvm::lsp::Diagnostic > & diags
LSPDiagnosticClient(const VerilogDocument &document, std::vector< llvm::lsp::Diagnostic > &diags)
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.