aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-05-17 13:03:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-05-17 13:03:56 +0000
commitf35e60577fde44a7360415448a380702d2ac0ae4 (patch)
tree792ba4ea9f576e6454bb410412f97fbd5262e68c
parentchangelog: add new 'unreleased' section (diff)
project: add .clangd, where we set -Wno-c2y-extensions
We make use of __COUNTER__, which recent versions of clang emit a warning for (unless you compile with -std=c2y). Our meson.build already handles this for the actual build, but if your build is using gcc, -Wno-c2y-extensions isn't added to the build rules (since gcc doesn't support the flag).
-rw-r--r--.clangd5
1 files changed, 5 insertions, 0 deletions
diff --git a/.clangd b/.clangd
new file mode 100644
index 00000000..336c0f12
--- /dev/null
+++ b/.clangd
@@ -0,0 +1,5 @@
+# -*- yaml -*-
+
+CompileFlags:
+ Add:
+ - -Wno-c2y-extensions