mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-13 03:55:22 +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>
244 lines
7.3 KiB
XML
244 lines
7.3 KiB
XML
<!--
|
|
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
|
|
-->
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<prerequisites>
|
|
<maven>${required-maven-version}</maven>
|
|
</prerequisites>
|
|
|
|
<groupId>org.eclipse.lsp4e.cpp.group</groupId>
|
|
<artifactId>org.eclipse.lsp4e.cpp.parent</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<packaging>pom</packaging>
|
|
<name>LSP4E C/C++ Support Parent</name>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Eclipse Public License v1.0</name>
|
|
<comments>
|
|
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.htm
|
|
</comments>
|
|
</license>
|
|
</licenses>
|
|
|
|
<properties>
|
|
<required-maven-version>3.3</required-maven-version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
<tycho-version>1.0.0</tycho-version>
|
|
<target-platform>lsp4e.cpp-staging</target-platform>
|
|
</properties>
|
|
|
|
<modules>
|
|
<module>org.eclipse.lsp4e.cpp</module>
|
|
<module>org.eclipse.lsp4e.cpp.language</module>
|
|
<module>org.eclipse.lsp4e.cpp.site</module>
|
|
<module>org.eclipse.lsp4e.cpp.target</module>
|
|
</modules>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<inherited>true</inherited>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<version>1.4.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-maven-version</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireMavenVersion>
|
|
<version>${required-maven-version}</version>
|
|
</requireMavenVersion>
|
|
<requireJavaVersion>
|
|
<version>1.8</version>
|
|
</requireJavaVersion>
|
|
</rules>
|
|
<fail>true</fail>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.tycho</groupId>
|
|
<artifactId>target-platform-configuration</artifactId>
|
|
<configuration>
|
|
<includePackedArtifacts>true</includePackedArtifacts>
|
|
<environments>
|
|
<environment>
|
|
<os>win32</os>
|
|
<ws>win32</ws>
|
|
<arch>x86</arch>
|
|
</environment>
|
|
<environment>
|
|
<os>win32</os>
|
|
<ws>win32</ws>
|
|
<arch>x86_64</arch>
|
|
</environment>
|
|
<environment>
|
|
<os>macosx</os>
|
|
<ws>cocoa</ws>
|
|
<arch>x86_64</arch>
|
|
</environment>
|
|
<environment>
|
|
<os>linux</os>
|
|
<ws>gtk</ws>
|
|
<arch>x86</arch>
|
|
</environment>
|
|
<environment>
|
|
<os>linux</os>
|
|
<ws>gtk</ws>
|
|
<arch>x86_64</arch>
|
|
</environment>
|
|
</environments>
|
|
<target>
|
|
<artifact>
|
|
<groupId>org.eclipse.lsp4e.cpp.group</groupId>
|
|
<artifactId>org.eclipse.lsp4e.cpp.target</artifactId>
|
|
<classifier>${target-platform}</classifier>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</artifact>
|
|
</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.tycho</groupId>
|
|
<artifactId>tycho-maven-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
<extensions>true</extensions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.tycho</groupId>
|
|
<artifactId>tycho-source-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>plugin-source</id>
|
|
<goals>
|
|
<goal>plugin-source</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.eclipse.tycho</groupId>
|
|
<artifactId>tycho-compiler-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
<encoding>UTF-8</encoding>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.tycho</groupId>
|
|
<artifactId>target-platform-configuration</artifactId>
|
|
<version>${tycho-version}</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.tycho</groupId>
|
|
<artifactId>tycho-versions-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.tycho</groupId>
|
|
<artifactId>tycho-packaging-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.0.1</version>
|
|
<configuration>
|
|
<encoding>UTF-8</encoding>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.8</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.10</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.rcptt</groupId>
|
|
<artifactId>rcptt-maven-plugin</artifactId>
|
|
<version>${rcptt-version}</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
<version>3.5.1</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>2.8.2</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
<version>2.5.2</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
<version>2.9</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.10.4</version>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
</project>
|