emacs/.clangd
João Távora 9df2074a06 Tweak .clangd to work with gcc-compiled Emacs (bug#78367)
A Gcc configuration of Emacs emits -fstrict-flex-arrays but
clangd doesn't understand that.  This causes spurious errors of
"unknown flag" that prevent analysis.  So tweak .clangd to the
nearest clang equivalent (which is very similar).

* .clangd (CompileFlags): Remove -fstrict-flex-arrays, add
-fstrict-flex-arrays=3.
2025-05-11 11:14:32 +01:00

6 lines
155 B
YAML

---
If:
PathMatch: "src/*.c"
CompileFlags:
Add: [-Wno-unused-macros, -include=config.h, -fstrict-flex-arrays=3]
Remove: [-fstrict-flex-arrays]