]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* .clangd: Add configuration for the clangd LSP server
authorPaul Smith <psmith@gnu.org>
Sun, 3 Dec 2023 23:00:01 +0000 (18:00 -0500)
committerPaul Smith <psmith@gnu.org>
Tue, 2 Jan 2024 00:24:37 +0000 (19:24 -0500)
.ccls
.clangd [new file with mode: 0644]

diff --git a/.ccls b/.ccls
index a953e9cf09653cd502d21481be74b067cfe9c52a..a799f3207236fbf3153bb4fa48950df88982f277 100644 (file)
--- a/.ccls
+++ b/.ccls
@@ -4,7 +4,6 @@ clang
 -Isrc
 -Ilib
 -DLIBDIR="/usr/local/lib"
--DINCLUDEDIR="/usr/local/include"
 -DLOCALEDIR="/usr/local/share/locale"
 -DMAKE_MAINTAINER_MODE
 -pthread
@@ -13,7 +12,6 @@ clang
 -Wall
 -Wextra
 -Werror
--Wno-address
 -Wwrite-strings
 -Wshadow
 -Wdeclaration-after-statement
@@ -26,3 +24,5 @@ clang
 -Wignored-qualifiers
 -Wformat-signedness
 -Wduplicated-cond
+-Wno-address
+-Wno-string-compare
diff --git a/.clangd b/.clangd
new file mode 100644 (file)
index 0000000..7b55147
--- /dev/null
+++ b/.clangd
@@ -0,0 +1,14 @@
+CompileFlags:
+  Add: [-xc, -DHAVE_CONFIG_H, -DMAKE_MAINTAINER_MODE, -DLIBDIR="/usr/local/lib", -DLOCALEDIR="/usr/local/share/locale", -I../src, -Isrc, -I../lib, -Ilib, -Wall, -Wextra, -Wwrite-strings, -Wshadow, -Wdeclaration-after-statement, -Wbad-function-cast, -Wformat-security, -Wtype-limits, -Wunused-but-set-parameter, -Wlogical-op, -Wpointer-arith, -Wignored-qualifiers, -Wformat-signedness, -Wduplicated-cond, -Wno-string-compare, -Wno-unused-includes]
+
+---
+If:
+  PathMatch: .*\.h
+CompileFlags:
+  Add: [-xc-header, --include=makeint.h]
+
+---
+If:
+  PathMatch: .*/makeint\.h
+Diagnostics:
+  UnusedIncludes: None