Re: automated coding style tool
Simon Marchi via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2025-01-14 12:11, Tom Tromey wrote: > 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 I don't know how often those ugly outputs happen, but it is possible to disable clang-format locally, like this: https://github.com/efficios/babeltrace/blob/5105ea10985ef0512878ff3f9bc8e1092735e75c/src/cpp-common/bt2/field-path.hpp#L106-L114 So if it's a relatively rare occurence that the output is atrociously bad enough to make your eyes bleed, the benefit of the tool is still there. Simon