svn commit: r365071 - in head/sys: net net/altq net/route net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/common netgraph...

Mike Karels mike at karels.net
Sat Sep 5 22:28:31 UTC 2020


> From: Ed Maste <emaste at freebsd.org>
> Date: Sat, 5 Sep 2020 17:26:47 -0400
> Subject: Re: svn commit: r365071 - in head/sys: net net/altq net/route
>  net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu
>  netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/common netgraph...

> On Sat, 5 Sep 2020 at 16:41, Warner Losh <imp at bsdimp.com> wrote:
> >
> >> Fixed:
> >> - *_FOREACH now has a space before (, equivalent to for (;;)
> >
> > Except pretty much everywhere we don't have a space there...

> Why not? Why should TAILQ_FOREACH have a different style from a for loop?

Because it is a macro, maybe?  And all the other invocations are done that
way.

> > broke all alignment of variables and comments that were done.
> > broke purposely outdented code in statistics function
> > broke all err() calls to wrap too much

> I had all of these under "indifferent" already, or are more examples
> of already covered cases (e.g. what seems to be string argument
> wrapping).

I don't consider those indifferent.

> > extra headers still included.

> This is probably not the job of a formatter though.

> >> - function argument wrapping (see write_glyph_buf)
> >> - leading indentation and args-per-line (print_font_info)
> >
> > An interesting experiment, but there's far more worse after than before. The rearranging of carefully aligned elements is an especially galling change for some people (myself included).

> I disagree this is far worse. If we fixed the wrapping on the second
> line of if/for conditions I'd say the benefit of letting tooling take
> care of the formatting outweighs the perhaps slightly less appealing
> formatting.

I'm with Warner on this.  I saw a lot to dislike in the changes, and very
little actual improvement.  If we were starting from scratch, I might be
willing to accept the changes to have a formatter (albeit begrudingly), but
we are not starting from scratch.  The churn would be horrible, and the
benefit very little in comparison.  Interesting experiment, but let's keep
it just an experiment.

		Mike


More information about the svn-src-head mailing list