mirror of
https://github.com/mirror/make.git
synced 2024-12-26 12:50:20 +08:00
* .clangd: Add configuration for the clangd LSP server
This commit is contained in:
parent
b1e240c554
commit
2ce7e40822
4
.ccls
4
.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
|
||||
|
14
.clangd
Normal file
14
.clangd
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user