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

Benjamin Barenblat bbaren at mit.edu
Thu Aug 6 15:03:13 EDT 2015


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

Hi all,

I’ve whipped up a style file for clang-format so we can consistently
format C and JavaScript.  I’ve tried to match the existing style as
closely as possible, modulo forcing line wrapping to 80 characters.  You
can grab the patch from <http://web.mit.edu/bbaren/c/64148c94.patch>;
its SHA256 sum is 27543c3a30685fd494696d31c5347af8b72c25b89db810371d36bf734f9689f3.

If you’d prefer to replicate my results instead of applying a
172-kilobyte patch, you can just grab the style file out of the diff and
run

    find . -name \*.js -or -name \*.c -print0 | xargs -0 clang-format-3.7 -style=file -i

Best,
Benjamin
-----BEGIN PGP SIGNATURE-----

iQF8BAEBCgBmBQJVw69yXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5OThCQjVEMTlDOEE3QjE3OUUwREFCODY5
RTczMDE0OUVCOTFDNTNCAAoJEJ5zAUnrkcU7EAcH/irdxK4IM0O+c273zuyYdV8T
9ne72nHJQDQ/g3YF8RXOY/rRzFNO7L/fhohT5jPkhDEVoL91mN+NJQgkpJIFZ55h
t7IUYfDTGcrtGl1EU6uVEF1STC6pcW/vx7DF7d1mFvDUrjUJ5Ig5pItPs7/NrGht
eGQRNKNV5hypRGV4UCW9XY93l7g8I1vieyISD/jNYQkkUfk0g4I56UK8/hPsDF7y
hHl5RVGdJmSLj+pIU9k7mConWbFEnmBBMG/qcb7rXWbLuZHovMgu0v+HjUrFXt1n
fqgTM0JBhToBJaXd3q00wAqkE5mPW2C8k78j2cTmPf6hPvjRpN9UN3EwXHsz5lg=
=7mm0
-----END PGP SIGNATURE-----



More information about the Ur mailing list