automated coding style tool
Tom Tromey
tom@tromey.com
Tue Jan 14 17:11:05 GMT 2025
>>>>> Aktemur, Tankut Baris via Gdb <gdb@sourceware.org> writes:
> Regarding the automated coding style tool: is there any active attempt
> to pursue this goal?
Every year or two I take another look at clang-format.
The discussion is here:
https://sourceware.org/bugzilla/show_bug.cgi?id=30098
> Tom mentioned his t/clang-format branch in that email thread. I checked
> the branch. The clang-format config file has
> # BasedOnStyle: GNU
> Is the GDB coding style so off from the built-in GNU style
> that it cannot be reused?
I don't recall why I commented this out. Anyway clang-format doesn't
come very close to GNU style. I'd be ok with ignoring most of the
little differences (i.e., I don't care about goto label placement), but
the bin packing output is just super ugly some of the time.
Tom
More information about the Gdb
mailing list