1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00
cdt/lsp4e-cpp
Nathan Ridge 3679b7cd90 Give lsp4e-cpp access to some CDT internals
This avoids either littering lsp4e-cpp code with "restriction"
warnings, or suppressing them (which can hide useful warnings).

It seems pointless to expose the relevant internals as public APIs
since lsp4e-cpp is conceptually an internal consumer.

Change-Id: I9d8c70570682fa86b2369445a812af14de4930e6
2018-09-02 01:23:17 -04:00
..
.mvn A basic LSP4E integration with Clangd 2017-09-01 11:31:57 -04:00
org.eclipse.lsp4e.cpp Bug 535427 - Add the lsp4e-cpp plugins to the build 2018-06-28 13:47:07 +01:00
org.eclipse.lsp4e.cpp.language Give lsp4e-cpp access to some CDT internals 2018-09-02 01:23:17 -04:00
org.eclipse.lsp4e.cpp.language.tests Bug 535427 - Add the lsp4e-cpp plugins to the build 2018-06-28 13:47:07 +01:00
org.eclipse.lsp4e.cpp.site Bug 535427 - Add the lsp4e-cpp plugins to the build 2018-06-28 13:47:07 +01:00
LICENSE A basic LSP4E integration with Clangd 2017-09-01 11:31:57 -04:00
pom.xml Bug 535427 - Add the lsp4e-cpp plugins to the build 2018-06-28 13:47:07 +01:00
README.md A basic LSP4E integration with Clangd 2017-09-01 11:31:57 -04:00

LSP4E-CPP: C/C++ Language Server Support in Eclipse IDE

Support for C/C++ edition in Eclipse IDE using the Language Server Protocol. Relies on Clangd and the Language Server Protocol.

Prerequisites

You need Clangd working on CLI (visible in PATH environment variable). Since Clangd is very young, you will most likely need to compile it from source, see the Clang documentation for more instructions. Make sure you you do checkout the Clang extra Tools.

Build from source

Requirements

  • Maven 3.3 or greater
  • Java 8 (make sure it is seen by Maven with mvn -version)

With the repository cloned, simply execute mvn clean package. The p2 repository will be in $LSP4E_CPP_ROOT/org.eclipse.lsp4e.cpp.site/target/repository.

Installation in Eclipse IDE

Go to Help > Install new Software. Add the local repository $LSP4E_CPP_ROOT/org.eclipse.lsp4e.cpp.site/target/repository.

Usage

Once the plug-in is installed, right-click on a C/C++ source file and open with the Generic Text Editor.

Concept

LSP4E-CPP uses the lsp4e project to integrate with Clangd (part of Clang "extra" tools) with the goal to provide a rich C/C++ editor in the Eclipse IDE.

Keep in mind that Clangd is very young and just getting started so not many features are functional at this moment.