From f35e60577fde44a7360415448a380702d2ac0ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 17 May 2026 15:03:56 +0200 Subject: [PATCH] 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). --- .clangd | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .clangd 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