forked from nzeemin/ukncbtl-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astyle-cpp-options
32 lines (25 loc) · 886 Bytes
/
astyle-cpp-options
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## Formatting options for
## Astyle - Source code indenter, formatter, and beautifier for C, C++, and Java Source Code
## http://astyle.sourceforge.net/
# Indent as C/C++
--mode=c
# Use CRLF line end style
--lineend=windows
# Allman style formatting/indenting uses broken brackets
--style=break
# Indent using 4 spaces per indent
--indent=spaces=4
--indent-namespaces
# Indent 'case X:' blocks from the 'case X:' headers. Case statements not enclosed in blocks are NOT indented.
--indent-cases
--min-conditional-indent=0
--max-instatement-indent=8
# Insert space padding around operators
--pad-oper
# Insert space padding after paren headers only (e.g. 'if', 'for', 'while'...)
--pad-header
--break-closing-brackets
# Don't break one-line blocks
--keep-one-line-blocks
# Don't break complex statements and multiple statements residing on a single line
--keep-one-line-statements