GNU style checker for GDB

Simon Marchi simon.marchi@polymtl.ca
Mon Mar 8 17:35:46 GMT 2021


On 2021-03-08 8:10 a.m., Zied Guermazi wrote:
> hi,
> 
> is there a style checker that I can use to detect styles issues before sending patches to gdb-patches@sourceware.org?
> 
> I have the program indent installed on my machine. can it be used for this purpose? which options shall i use?
> 
> Kind Regards
> 
> Zied Guermazi

People try now and then to configure tools to do this, but so
unfortunately so far there is no tool/configuration that matches exactly
the style we use.  If I remember correctly, indent does not know C++, so
it's not useful here.  clang-format can get quite close, but not enough
so that we can say "just run this and it will be fine".

To be clear, I really wish there existed such a tool, it would simplify
things a lot.

Simon




More information about the Gdb mailing list