[Ur] [PATCH] Add .clang-format style file; run clang-format

Benjamin Barenblat bbaren at mit.edu
Sun Aug 9 17:01:41 EDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Sunday,  9 August 2015, at 11.28 am EDT, Adam Chlipala wrote:
> It's not obvious to me […] that it's worth the complexity of integrating
> a tool like this into the development workflow […].
>
> Is the current official code so hard on the eyes? :)

No, but potential contributors do look at nitpicky things like style
consistency when judging the quality of a project and deciding whether
or not to participate.  If style is consistent and enforced through a
tool like clang-format, more people are likely to contribute.

As for integrating clang-format into the development workflow, it’s as
simple as running that clang-format command from the previous e-mail
before committing.  One could even add it as a pre-commit hook and
forget all about it.

Benjamin
-----BEGIN PGP SIGNATURE-----

iQF8BAEBCgBmBQJVx7+1XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5OThCQjVEMTlDOEE3QjE3OUUwREFCODY5
RTczMDE0OUVCOTFDNTNCAAoJEJ5zAUnrkcU7NTAIAIlfxJaoxONX46x3syXKLJUn
Nj5LZVt+5V39UCkDoX2jRun/s1YVkFdKiaDdrOIinc7QX1ayjUBEWa5VSuj1Jj66
l1OUNqUV9SLRHggRukg0NC+vQFUHUiuaEtfeWYbmDYtd1ltpJGl7upfVSd4EmarP
3SpyePL6ar4TDNKPEbntx0dgPnjUdPJEPfrbtSp4+XwPWWgh7ilKvHdnFLgYH0vN
4Gx06/wi5h8qT9gwCOYYIRIwgTABVThEEGfuNsZgaOT1+fjUp18XtkeXSIbB7Jxk
24S1ZjpBcEagyTzNZwbIuJbncuDoH00VKeXqDeGZHn+Sg8/tFjxM3KY8j0d3nh4=
=Yuda
-----END PGP SIGNATURE-----



More information about the Ur mailing list