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
14namespace circt {
15namespace lsp {
16
17class LSPDiagnosticClient : public slang::DiagnosticClient {
19 std::vector<llvm::lsp::Diagnostic> &diags;
20
21public:
23 std::vector<llvm::lsp::Diagnostic> &diags)
25
26 void report(const slang::ReportedDiagnostic &slangDiag) override;
27};
28} // namespace lsp
29} // namespace circt
30
31#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.