Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2017-07-24 15:57:11 +0000
committerMarc-André Laperle2017-09-01 15:31:57 +0000
commit11817c1c6a058b6e0f2049b79920d95915cd5ef0 (patch)
treef246c115b59a7bea5cc085470c682ea550b2a502 /lsp4e-cpp/org.eclipse.lsp4e.cpp
parent33a7f1e53349bdef9c5bc45926bd8c6410630248 (diff)
downloadorg.eclipse.cdt-11817c1c6a058b6e0f2049b79920d95915cd5ef0.tar.gz
org.eclipse.cdt-11817c1c6a058b6e0f2049b79920d95915cd5ef0.tar.xz
org.eclipse.cdt-11817c1c6a058b6e0f2049b79920d95915cd5ef0.zip
A basic LSP4E integration with Clangd
This plug-in adds an simple integration between LSP4E and Clangd. It simply launches clangd when opening C/C++ files with the Generic Editor. To try it, you need to: - Import the projects in your Eclipse workspace (you can only import the lsp4-cpp ones, the sources for CDT are not needed) - Open lsp4e.cpp-staging.target and set it as the target platform - You need to have clangd built and on the PATH. See https://clang.llvm.org/get_started.html - Start Eclipse: right-click on a project > Run as > Eclipse Application - In the new Eclipse instance, you can right-click on a C/C++ file > Open As > Generic Editor. This should make use of clangd, providing some basic diagnostics and formatting commands. This should help the Eclipse community to start playing with Clangd. Change-Id: I688d3a952dbc80d9f61186178f3c8a033afcc587 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Diffstat (limited to 'lsp4e-cpp/org.eclipse.lsp4e.cpp')
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp/.project17
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp/.settings/org.eclipse.core.resources.prefs2
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp/build.properties2
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp/feature.properties20
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp/feature.xml28
6 files changed, 71 insertions, 0 deletions
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp/.project b/lsp4e-cpp/org.eclipse.lsp4e.cpp/.project
new file mode 100644
index 00000000000..5763f0e6ddd
--- /dev/null
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.lsp4e.cpp</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp/.settings/org.eclipse.core.resources.prefs b/lsp4e-cpp/org.eclipse.lsp4e.cpp/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 00000000000..99f26c0203a
--- /dev/null
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp/.settings/org.eclipse.core.runtime.prefs b/lsp4e-cpp/org.eclipse.lsp4e.cpp/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 00000000000..5a0ad22d2a7
--- /dev/null
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp/build.properties b/lsp4e-cpp/org.eclipse.lsp4e.cpp/build.properties
new file mode 100644
index 00000000000..b3a611b5c93
--- /dev/null
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp/build.properties
@@ -0,0 +1,2 @@
+bin.includes = feature.xml,\
+ feature.properties
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp/feature.properties b/lsp4e-cpp/org.eclipse.lsp4e.cpp/feature.properties
new file mode 100644
index 00000000000..6fc612faeb8
--- /dev/null
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp/feature.properties
@@ -0,0 +1,20 @@
+###############################################################################
+# Copyright (c) 2017 Ericsson
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
+
+featureName=LSP4E C/C++ Support
+
+description=Plug-ins to support C/C++ language servers in LSP4E.
+
+featureProvider=Eclipse CDT
+
+copyright=Copyright (c) 2017 Ericsson and others.\n\
+All rights reserved. This program and the accompanying materials\n\
+are made available under the terms of the Eclipse Public License v1.0\n\
+which accompanies this distribution, and is available at\n\
+http://www.eclipse.org/legal/epl-v10.html
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp/feature.xml b/lsp4e-cpp/org.eclipse.lsp4e.cpp/feature.xml
new file mode 100644
index 00000000000..b8d78ac606c
--- /dev/null
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp/feature.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.eclipse.lsp4e.cpp"
+ label="%featureName"
+ version="1.0.0.qualifier"
+ provider-name="%featureProvider"
+ license-feature="org.eclipse.license"
+ license-feature-version="0.0.0">
+
+ <description>
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin
+ id="org.eclipse.lsp4e.cpp.language"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+</feature>

Back to the top