-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.astylerc
More file actions
47 lines (32 loc) · 1.42 KB
/
style.astylerc
File metadata and controls
47 lines (32 loc) · 1.42 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Documentation http://manpages.ubuntu.com/manpages/trusty/man1/astyle.1.html
# 4 space indent
indent=spaces=4
# Indent 'class' and 'struct' access modifiers, 'public:', 'protected:' and 'private:', one half indent.
indent-modifiers
# Indent 'switch' blocks so that the 'case X:' statements are indented in the switch block. The entire case block is indented.
indent-switches
# Do not retain a backup of the original file. The original file is purged after it is formatted.
#suffix=none
# 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
# Attach a pointer operator (*) to the variable name (right).
align-pointer=name
# Attach a reference to the variable type.
align-reference=type
# Insert space padding after paren headers only (e.g. 'if', 'for', 'while'...).
pad-header
# Insert space padding around operators.
pad-oper
# Convert tabs to spaces in the non-indentation part of the line.
# The number of spaces inserted will maintain the spacing of the tab.
convert-tabs
# The length will break a line if the code exceeds the preset number of characters
max-code-length=200
# Set the minimal indent that is added when a header is built of multiple lines.
min-conditional-indent=0
# The maximum of # spaces to indent a continuation line.
max-continuation-indent=120
# Java style uses attached braces.
style=java