소스 검색

Add contrib/astylerc.

Marti Bolivar 5 년 전
부모
커밋
4660d08c6d
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22 0
      contrib/astylerc

+ 22 - 0
contrib/astylerc 파일 보기

@@ -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