[PATCH v2] Add .clang-format

Tom Tromey tom@tromey.com
Wed Oct 1 13:11:33 GMT 2025


>>> Are you ok with having this file at the top-level?  Just adding this
>>> file shouldn't alter anybody's workflow.

>> Until I see formatting instructions; either a config like
>> .clang-format or something a human can follow, I do not expect to
>> continue with this patch submission.

>> So, yes please, I vote for a .clang-format file at the top level.

Simon> I would also vote for merging it.  The chances of this file breaking
Simon> anything are very low.

I wasn't sure about putting it at the top level because I had two
concerns:

1. That some binutils users would think it was definitive for binutils
   and use it, maybe causing some friction.  (And I think this current
   thread shows that at least the first clause of that seems plausible.)

2. That at some point we'd find a case where gdb and binutils disagree
   on some setting.

That said, I don't really care all that much where the file ends up.
How about we give the binutils maintainers a little more time; in the
absence of a response I'll send a new patch to put it in the root
directory.

thanks,
Tom


More information about the Binutils mailing list