aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-28 15:44:49 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-28 15:48:39 -0400
commit16a2123ef0c8dedb9c496d439a6dd439bd578f2d (patch)
tree2fd2fb6658ce2157289e62c02b42ffb04cfc774c /contrib
parent0a6171402cfff5bf437a18f6fae32fbc0afe3980 (diff)
downloadlibrambutan-16a2123ef0c8dedb9c496d439a6dd439bd578f2d.tar.gz
librambutan-16a2123ef0c8dedb9c496d439a6dd439bd578f2d.zip
Add contrib/astylerc.
This is an astyle options file that roughly aligns with the coding style guidelines. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/astylerc22
1 files changed, 22 insertions, 0 deletions
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 <your_source_file>
+#
+# 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