|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+# This is an astyle (http://astyle.sourceforge.net/) options file you
|
|
|
2
|
+# can use to autoformat code roughly along the lines of libmaple's
|
|
|
3
|
+# style guidelines. "Roughly" in the sense that if you use it on code
|
|
|
4
|
+# that wildly differs from the libmaple style, the patch stands a much
|
|
|
5
|
+# better chance of not getting held up for trivial reasons.
|
|
|
6
|
+#
|
|
|
7
|
+# Use it like this:
|
|
|
8
|
+#
|
|
|
9
|
+# $ astyle --options=contrib/astylerc <your_source_file>
|
|
|
10
|
+#
|
|
|
11
|
+# It needs astyle version 2; versions 1.x are missing some of these
|
|
|
12
|
+# options.
|
|
|
13
|
+
|
|
|
14
|
+--indent=spaces=4
|
|
|
15
|
+--style=attach
|
|
|
16
|
+--indent-namespaces
|
|
|
17
|
+--pad-oper
|
|
|
18
|
+--pad-header
|
|
|
19
|
+--unpad-paren
|
|
|
20
|
+--align-pointer=name
|
|
|
21
|
+--indent-preprocessor
|
|
|
22
|
+--lineend=linux
|