brintos

brintos / llvm-project-archived public Read only

0
0
Text · 966 B · d652899 Raw
33 lines · c
1//===- LSPServer.h - MLIR LSP Server ----------------------------*- C++ -*-===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LIB_MLIR_TOOLS_MLIRLSPSERVER_LSPSERVER_H10#define LIB_MLIR_TOOLS_MLIRLSPSERVER_LSPSERVER_H11 12#include <memory>13 14namespace llvm {15struct LogicalResult;16namespace lsp {17class JSONTransport;18} // namespace lsp19} // namespace llvm20 21namespace mlir {22namespace lsp {23class MLIRServer;24 25/// Run the main loop of the LSP server using the given MLIR server and26/// transport.27llvm::LogicalResult runMlirLSPServer(MLIRServer &server,28                                     llvm::lsp::JSONTransport &transport);29} // namespace lsp30} // namespace mlir31 32#endif // LIB_MLIR_TOOLS_MLIRLSPSERVER_LSPSERVER_H33