mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-02 10:31:15 +00:00

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.
6 lines
155 B
YAML
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]
|