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:
parent
c560e2f65b
commit
1d7cff3779
1 changed files with 3 additions and 0 deletions
3
.clangd
Normal file
3
.clangd
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
CompileFlags:
|
||||||
|
# Don't try to interpret our headers as C++'
|
||||||
|
Add: [-xc, -Wall]
|
Loading…
Reference in a new issue