]> git.eshelyaron.com Git - emacs.git/commit
Tweak .clangd to work with gcc-compiled Emacs (bug#78367)
authorJoão Távora <joaotavora@gmail.com>
Sun, 11 May 2025 10:14:02 +0000 (11:14 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 12 May 2025 19:55:27 +0000 (21:55 +0200)
commit75d5db4b554061e348bd65d617da8b2d6b2c62eb
tree40c5b32950e25cb8bfd75f3949df2300c434d50d
parent275623b88ad80c1a5345babaa878b44ec5677eb6
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.

(cherry picked from commit 9df2074a06fefa0b5bfe9714b45c383fa45d6650)
.clangd