aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-11-06 10:25:27 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-11-07 12:47:07 +0100
commit1d7cff3779e4bff944ce17c86471a87141c352d2 (patch)
treeac45101d418ff679dc9bd4bef7c02c9daa7d6b79
parentc560e2f65b625367d3baf0fcf06cf19996407659 (diff)
downloadpasst-1d7cff3779e4bff944ce17c86471a87141c352d2.tar
passt-1d7cff3779e4bff944ce17c86471a87141c352d2.tar.gz
passt-1d7cff3779e4bff944ce17c86471a87141c352d2.tar.bz2
passt-1d7cff3779e4bff944ce17c86471a87141c352d2.tar.lz
passt-1d7cff3779e4bff944ce17c86471a87141c352d2.tar.xz
passt-1d7cff3779e4bff944ce17c86471a87141c352d2.tar.zst
passt-1d7cff3779e4bff944ce17c86471a87141c352d2.zip
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>
-rw-r--r--.clangd3
1 files changed, 3 insertions, 0 deletions
diff --git a/.clangd b/.clangd
new file mode 100644
index 0000000..41bec92
--- /dev/null
+++ b/.clangd
@@ -0,0 +1,3 @@
+CompileFlags:
+ # Don't try to interpret our headers as C++'
+ Add: [-xc, -Wall]