automated coding style tool (was: RE: DCO: Was: Re: Contributing to gdb)

Aktemur, Tankut Baris via Gdb
2025-01-14T15:19:19Z

(forking off the DCO topic)

On Monday, January 13, 2025 6:42 PM Simon Marchi wrote:
> I would be happy if we accepted DCO contributions. Having to go through
> some copyright assignment paperwork is not the end of the world, but it
> is one of many annoyances that add friction for new contributors (others
> I think of right now are the use of mailing lists for reviews and our
> specific coding style that we are unable to enforce with an automated
> tool).

Regarding the automated coding style tool: is there any active attempt
to pursue this goal? The latest discussion I know of is this:

https://inbox.sourceware.org/gdb-patches/9e485731-875c-98e2-1894-6b1a45efa5c5@polymtl.ca/

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?

-Baris

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928