Re: clang-format

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aboaOGqhQV5bH4Sh@qinghai>
On Wed, Mar 18, 2026 at 01:11:14AM +0100, Alejandro Colomar via Mutt-dev wrote:
>Okay, so I've tried today clang-format(1) for the first time, after
>someone suggested it in a project I co-maintain, and now have a well
>formed opinion about it:
>
>It's pure crap.  Please don't use it.

LOL!

>I would like it if you could enable a few options that it would
>diagnose, and ignore everything else, just like compiler diagnostics
>have always worked.  But it doesn't work like that.
>
>> > Rene voiced a dislike of formatters, especially when they are run
>> > automatically on a pipeline.  Perhaps we could run this formatter once,
>> > clean up the egregious function alignment issues, and then just leave the
>> > format config as "reference"?
>
>I agree with Rene.

Okay, you don't have to twist my arm.  I resisted formatters myself for 
a long time already, but started to feel like "everyone else was doing 
it" and thought I'd give it a look.

Before I drop the proposal, though, are there any Mutt devs/contributors 
who would like to play devil's advocate?

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmm6GjgACgkQre92hIAx
a9r/pA/9EgOuy5aeF6j6Fl7ePim7LBh5s9Zfs5ol5Y+0GlEccWh2B7Ert4Hc5j07
hxIowyXPGGIuUZnDmKwo+Owfcrbza/jD7iZR03SeONU1a9Wxvj0GmHRYLPXUJdwd
gtk+uKF+2YOYXDnlRyMiscjobktmbBcUCrH1x+DQG2zh5C7KAuiheBZr2SuIVMw6
sdd3EkkcejWj2aHbiG2tHcsQHngDIurhTjplYSvbNxCUo1wEVZKPmzCRi19k++QD
gqbERoQV3CNi1wdYPriuDNmjxLoJ4tvr0F+mUyl3bj+BrxUkysO4ZSbf+j1KBPsN
hlxkmi66rCA1tK9F5Qcp83eYtD8uZVTs519auoflKyQ5zYe9HeD5R5/t7NliXU1V
DUpibRAVlv4ztyq7CRbmgl0ja90ZwMiIHbxBw4A8kEqkivODiHDZCO/IbkdAl9U5
+NsX8K5tbCxVbVvv2sMxb8+O3w//YIhFBg1kAv431zAShly/YPtjVhDiGgGEGcP9
iYbjGQKTNhBtjVU7XiVbzifUBMqKFTkdjA5pXX8dq/s5PI5JZPeeB/nQnlKvkcoI
pYq7xK81bB6mytXFwjeLxZwI4axXekI7JQz18txYScn39jToP9jnbGyuKGoV66mb
vUASUf49Y3NDEOKrqq0C1ZfkZYqryu4nbTkHPqCeLSD2TG10F/c=
=7gu6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.