mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Add .clangd file to simplify project sharing with non-CDT
In the example CMake project add a .clangd to enable pointing clangd at the appropriate compilation database without having to make a copy of it.
This commit is contained in:
parent
cb367f063e
commit
4bc687b83b
4 changed files with 8 additions and 1 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -152,6 +152,7 @@ test_commands text
|
||||||
# Other special files
|
# Other special files
|
||||||
cdtOptions text
|
cdtOptions text
|
||||||
.clang-format text
|
.clang-format text
|
||||||
|
.clangd text
|
||||||
.contentsettings text
|
.contentsettings text
|
||||||
*.csv text
|
*.csv text
|
||||||
*.dia binary
|
*.dia binary
|
||||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.cmake.core;singleton:=true
|
Bundle-SymbolicName: org.eclipse.cdt.cmake.core;singleton:=true
|
||||||
Bundle-Version: 1.5.0.qualifier
|
Bundle-Version: 1.5.100.qualifier
|
||||||
Bundle-Activator: org.eclipse.cdt.cmake.core.internal.Activator
|
Bundle-Activator: org.eclipse.cdt.cmake.core.internal.Activator
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Require-Bundle: org.eclipse.core.runtime,
|
Require-Bundle: org.eclipse.core.runtime,
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
CompileFlags:
|
||||||
|
# When using clangd update this entry to point at the desired
|
||||||
|
# configuration directory to pick up the compile_commands.json
|
||||||
|
CompilationDatabase: build/default
|
|
@ -1,4 +1,6 @@
|
||||||
<templateManifest>
|
<templateManifest>
|
||||||
|
<file src="/templates/simple/.clangd"
|
||||||
|
dest="/${projectName}/.clangd"/>
|
||||||
<file src="/templates/simple/CMakeLists.txt"
|
<file src="/templates/simple/CMakeLists.txt"
|
||||||
dest="/${projectName}/CMakeLists.txt"/>
|
dest="/${projectName}/CMakeLists.txt"/>
|
||||||
<file src="/templates/simple/config.h.in"
|
<file src="/templates/simple/config.h.in"
|
||||||
|
|
Loading…
Add table
Reference in a new issue