-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.astylerc
42 lines (32 loc) · 801 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
41
42
# Don't create backup files, let git handle it
suffix=none
# K&R style
style=google
# 4 spaces, convert tabs to spaces
indent=spaces=4
convert-tabs
# Indent
indent-switches
indent-classes
indent-preproc-block
indent-preproc-define
# Brackets
add-brackets
# Remove spaces in and around parentheses
unpad-paren
# Insert a space after if, while, for, and around operators
pad-header
pad-oper
# Pointer/reference operators go next to the name (on the right)
align-pointer=name
align-reference=name
# Attach { for classes and namespaces
attach-namespaces
attach-classes
# Extend longer lines, define maximum 120 value. This results in aligned code,
# otherwise the lines are broken and not consistent
max-continuation-indent=120
max-code-length=120
# Breaks
break-after-logical
break-blocks=all