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:
parent
c69c18b732
commit
9df2074a06
1 changed files with 2 additions and 1 deletions
3
.clangd
3
.clangd
|
|
@ -2,4 +2,5 @@
|
||||||
If:
|
If:
|
||||||
PathMatch: "src/*.c"
|
PathMatch: "src/*.c"
|
||||||
CompileFlags:
|
CompileFlags:
|
||||||
Add: [-Wno-unused-macros, -include=config.h]
|
Add: [-Wno-unused-macros, -include=config.h, -fstrict-flex-arrays=3]
|
||||||
|
Remove: [-fstrict-flex-arrays]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue