1
0
mirror of https://passt.top/passt synced 2024-12-22 05:35:23 +00:00

clang: Add rudimentary clangd configuration

clangd's default configuration seems to try to treat .h files as C++ not
C.  There are many more spurious warnings generated at present, but this
removes some of the most egregious ones.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
David Gibson 2024-11-06 10:25:27 +11:00 committed by Stefano Brivio
parent c560e2f65b
commit 1d7cff3779

3
.clangd Normal file
View File

@ -0,0 +1,3 @@
CompileFlags:
# Don't try to interpret our headers as C++'
Add: [-xc, -Wall]