From 16a2123ef0c8dedb9c496d439a6dd439bd578f2d Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Thu, 28 Jun 2012 15:44:49 -0400 Subject: Add contrib/astylerc. This is an astyle options file that roughly aligns with the coding style guidelines. Signed-off-by: Marti Bolivar --- contrib/astylerc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 contrib/astylerc (limited to 'contrib') diff --git a/contrib/astylerc b/contrib/astylerc new file mode 100644 index 0000000..211b008 --- /dev/null +++ b/contrib/astylerc @@ -0,0 +1,22 @@ +# This is an astyle (http://astyle.sourceforge.net/) options file you +# can use to autoformat code roughly along the lines of libmaple's +# style guidelines. "Roughly" in the sense that if you use it on code +# that wildly differs from the libmaple style, the patch stands a much +# better chance of not getting held up for trivial reasons. +# +# Use it like this: +# +# $ astyle --options=contrib/astylerc +# +# It needs astyle version 2; versions 1.x are missing some of these +# options. + +--indent=spaces=4 +--style=attach +--indent-namespaces +--pad-oper +--pad-header +--unpad-paren +--align-pointer=name +--indent-preprocessor +--lineend=linux -- cgit v1.2.3