1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

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.
This commit is contained in:
João Távora 2025-05-11 11:14:02 +01:00
parent c69c18b732
commit 9df2074a06

View file

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