Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Abstract Syntax Tree for C programs
Date: Thu, 13 Jun 2019 02:40:03 -0700
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <8636kd9630.fsf@mailhub.linuxsc.com>
References: <475067fe-369c-4246-84a1-05b1a3a0c6be@googlegroups.com> <5dd4672f-a571-40bc-bb1a-c14f6c631eb7@googlegroups.com> <5cf589ea$0$3377$426a34cc@news.free.fr> <5cf62fb7$0$19246$426a34cc@news.free.fr> <861s05ap1u.fsf@mailhub.linuxsc.com> <5cfa06b1$0$15482$426a74cc@news.free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="ef0a227b331df30b5055ba709176503b"; logging-data="3688"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YknfiL9KncyMSL5PA6V4uC2E2kqq/o2w="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:V3pSwpry83Fqsrz1xMX48ebjnUo= sha1:wZKUllhIJe/fEOqgqUnC4gMEBNg=
Xref: csiph.com comp.lang.c:144797
Mateusz Viste writes:
> On Thu, 06 Jun 2019 23:26:53 -0700, Tim Rentsch wrote:
>
>> On the last part: the idea that all the stylistic diagnostics lead to
>> good coding practices is, well, let me say suspect. Some of them,
>> maybe; others not so much, and for some even counter-productive.
>
> This is a pragmatic point of view that I can only agree to, at least on
> the general, theoretical plane. That being said, we are discussing
> specifically clang's -Weverything here. Could you provide some examples
> of "counter-productive stylistic diagnostics" triggered by -Weverything?
> I do not say there are no such things, but I either never saw them, or
> perhaps did not consider them counter-productive, hence why I'm curious
> to know what you are referring to exactly.
Two comments.
One, my comment was not specifically about -Weverything but about
stylistic diagnostics generally, including -Wall, -Wextra, etc.
Two, I'm reluctant to get drawn into a discussion about style
judgments. If you find that a particular set of style choices
seems helpful to you, that's great, more power to you, but please
don't assume other people have the same reaction. That's pretty
much all I was trying to say.