forked from swift-project/pilotclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.astylerc
40 lines (28 loc) · 1009 Bytes
/
.astylerc
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
# Open brace goes on same line as conditional or loop statement.
# Open brace goes on its own line after function, class, or namespace statement.
--style=allman
# Indent with 4 spaces.
--indent=spaces=4
# Indent code after a case label, but do not indent the case label itself.
--indent-cases
# Indent code inside namespace blocks.
--indent-namespaces
# Outdent labels by one level of indentation.
--indent-labels
# Indent preprocessor definitions where they span multiple lines with backslash.
--indent-preprocessor
# Add an extra indentation where a conditional clause spans multiple lines.
--min-conditional-indent=2
# Spaces around operators.
--pad-oper
# Space after if keyword.
--pad-header
# Remove unwanted spaces around parenthesis.
--unpad-paren
# Allow some occasional exceptions to the rules.
--keep-one-line-blocks
--keep-one-line-statements
# Convert tabs to spaces.
--convert-tabs
# In declarations, attach the * or & qualifier to the identifier, not the type.
--align-pointer=name