mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 04:00:56 +00:00
52b34df9d6
This commits adds a basic language server for PDLL to enable providing language features in IDEs such as VSCode. This initial commit only adds support for tracking definitions, references, and diagnostics, but followup commits will build upon this to provide more significant behavior. In addition to the server, this commit also updates mlir-vscode to support the PDLL language and invoke the server. Differential Revision: https://reviews.llvm.org/D121541
17 lines
589 B
C++
17 lines
589 B
C++
//===- mlir-pdll-lsp-server.cpp - PDLL Language Server main ---------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "mlir/Support/LogicalResult.h"
|
|
#include "mlir/Tools/mlir-pdll-lsp-server/MlirPdllLspServerMain.h"
|
|
|
|
using namespace mlir;
|
|
|
|
int main(int argc, char **argv) {
|
|
return failed(MlirPdllLspServerMain(argc, argv));
|
|
}
|