Re: GNU style checker for GDB
Simon Marchi via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected]? > > 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