[PATCH] Add clang-format config to contrib folder
Hans-Peter Nilsson
hp@bitrange.com
Thu Nov 19 15:53:00 GMT 2015
On Wed, 18 Nov 2015, Jeff Law wrote:
> Given that gnu-indent seems to muck up C++ badly in my
> experience, clang-format may be a better long term solution. I'd really like
> to get to a point one day where formatting is a commit hook so that things are
> always kept properly formatted.
I hope you don't mean the direct interpretation; that the result
of indent (any indent program) should be blindly committed, but
that it should (perhaps) be used to (re)format and the commit
refused if there's a diff. No tool should be trusted to
override the committers' edits. Really.
brgds, H-P
More information about the Gcc-patches
mailing list