Subject: Re: bug#78250: 31.0.50; Eglot: eglot-show-call-hierarchy

From: Gerd Möllmann <[email-masked]>
Date: Fri, 09 May 2025 05:45:05 +0200

João Távora <[email-masked]> writes:

> PS: if you use clangd on Emacs' repo, here's a patch to .clangd you
> might like. 
>
> diff --git a/.clangd b/.clangd
> index 469d33dfd03..5c7308d64ae 100644
> --- a/.clangd
> +++ b/.clangd
> @@ -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]

Hm, is there something wrong with the flexible array members in Emacs?