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).
This commit is contained in:
Daniel Eklöf 2026-05-17 15:03:56 +02:00
parent 2d11b36a24
commit f35e60577f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
.clangd Normal file
View file

@ -0,0 +1,5 @@
# -*- yaml -*-
CompileFlags:
Add:
- -Wno-c2y-extensions