mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00

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>
114 lines
7.4 KiB
XML
114 lines
7.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<?pde version="3.8"?><target name="cdt-plus-lsp4e.cpp" sequenceNumber="46">
|
|
<locations>
|
|
<!-- This target is useful for using CDT in combination of the LSP -->
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.antlr.runtime" version="0.0.0"/>
|
|
<unit id="org.apache.commons.compress" version="0.0.0"/>
|
|
<unit id="org.apache.log4j" version="0.0.0"/>
|
|
<unit id="org.apache.log4j.source" version="0.0.0"/>
|
|
<unit id="net.sourceforge.lpg.lpgjavaruntime" version="0.0.0"/>
|
|
<unit id="org.junit" version="0.0.0"/>
|
|
<unit id="org.junit.source" version="0.0.0"/>
|
|
<unit id="org.mockito" version="0.0.0"/>
|
|
<unit id="org.slf4j.impl.log4j12" version="0.0.0"/>
|
|
<unit id="org.hamcrest" version="0.0.0"/>
|
|
<unit id="org.hamcrest.core" version="0.0.0"/>
|
|
<unit id="com.google.gson" version="0.0.0"/>
|
|
<unit id="org.freemarker" version="0.0.0"/>
|
|
<unit id="org.apache.commons.io" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/S20170120205402/repository/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.swtbot.eclipse.feature.group" version="0.0.0"/>
|
|
<unit id="org.eclipse.swtbot.feature.group" version="0.0.0"/>
|
|
<unit id="org.eclipse.swtbot.eclipse.test.junit.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/technology/swtbot/snapshots/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<repository location="http://download.eclipse.org/tm/updates/4.2milestones/20161026"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.remote.feature.group" version="0.0.0"/>
|
|
<unit id="org.eclipse.remote.serial.feature.group" version="0.0.0"/>
|
|
<unit id="org.eclipse.remote.console.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/tools/ptp/builds/remote/oxygen/milestones"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<!-- Needed for org.eclipse.emf.edit -->
|
|
<!-- Need to pull in org.eclipse.cdt.utils.pty for org.eclipse.remote.core to build -->
|
|
<repository location="http://download.eclipse.org/releases/oxygen"/>
|
|
</location>
|
|
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.license.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/cbi/updates/license/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.test.feature.group" version="0.0.0"/>
|
|
<unit id="org.eclipse.sdk.ide" version="0.0.0"/>
|
|
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/eclipse/updates/4.7milestones/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.launchbar.feature.group" version="0.0.0"/>
|
|
<unit id="org.eclipse.launchbar.remote.feature.group" version="0.0.0"/>
|
|
<repository location="https://hudson.eclipse.org/cdt/job/launchbar-master/lastSuccessfulBuild/artifact/repo/target/repository/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.linuxtools.docker.feature.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/linuxtools/updates-docker-nightly/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.tm.terminal.control" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/tm/terminal/builds/development/nightly/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.wst.xml_ui.feature.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/webtools/downloads/drops/R3.9.0/S-3.9.0M5-20170201000249/repository/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.tm.terminal.feature.feature.group" version="0.0.0"/>
|
|
<unit id="org.eclipse.tm.terminal.connector.cdtserial.feature.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/tm/terminal/updates/4.3milestones/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.tools.templates.core" version="0.0.0"/>
|
|
<unit id="org.eclipse.tools.templates.freemarker" version="0.0.0"/>
|
|
<unit id="org.eclipse.tools.templates.ui" version="0.0.0"/>
|
|
<repository location="https://hudson.eclipse.org/cdt/job/tools-templates-master/lastSuccessfulBuild/artifact/repo/target/repository/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.xtext.xbase.lib.feature.group" version="0.0.0"/>
|
|
<unit id="org.eclipse.egit.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/releases/oxygen/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.mylyn.commons.notifications.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/mylyn/releases/latest"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.mylyn.wikitext.sdk.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/mylyn/docs/releases/3.0.13"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.lsp4e" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/lsp4e/snapshots/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<unit id="org.eclipse.lsp4j.sdk.feature.group" version="0.0.0"/>
|
|
<repository location="http://download.eclipse.org/lsp4j/updates/releases/0.2.0/"/>
|
|
</location>
|
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
|
<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/milestones"/>
|
|
</location>
|
|
</locations>
|
|
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
|
<launcherArgs>
|
|
<vmArgs>-Xms40m
|
|
-Xmx512M
|
|
-XX:MaxPermSize=256m
|
|
-ea</vmArgs>
|
|
<programArgs>-consolelog</programArgs>
|
|
</launcherArgs>
|
|
</target>
|