Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] _gcc: add some clang specific warnings



On Mon, 6 Jan 2020 at 20:16, dana <dana@xxxxxxx> wrote:
>
> On 5 Jan 2020, at 12:52, Eitan Adler <lists@xxxxxxxxxxxxxx> wrote:
> > This adds some missing completions to the _gcc completer for clang.
> > Sadly clang does not support --help=warnings so it is not complete.
>
> Merged. It occurred to me that it won't work quite accurately on macOS,
> though, because gcc is actually clang there.

I really wish clang would implement --help=<object>. This would
eliminate the need to list all of the options and so forth. I believe
I filed a feature request years ago but can't actually find it right
about now.

> I think this should address it.

This patch seems alright to me.

> Or should we go even further and try to be
> clever about which options to provide for CFLAGS, &al.?

CFLAGS is used in many more odd contexts - including where you don't
know what CC is. In this case I'd complete the union of the two.

> All we could do with
> that is guess, i suppose.
>

-- 
Eitan Adler



Messages sorted by: Reverse Date, Date, Thread, Author