-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.astylerc
36 lines (32 loc) · 804 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
# astyle settings file
# Requires Artistic Style 3.1
# http://astyle.sourceforge.net/
# Usage:
# astyle --suffix=none --options=.astylerc filename.cpp
# or recursively
# astyle --suffix=none --options=.astylerc -r 'include/*' 'src/*'
# or using find
# find src include -type f | xargs astyle --suffix=none --options=.astylerc
style=java
add-braces
align-pointer=type
align-reference=type
attach-closing-while
attach-return-type
attach-return-type-decl
break-one-line-headers
close-templates
indent-col1-comments
indent-preproc-block
indent-preproc-define
indent-switches
indent=spaces=4
keep-one-line-statements
min-conditional-indent=0
pad-comma
pad-header
pad-include
pad-oper # Bug with this for nested templates https://gitlab.com/saalen/astyle/-/issues/69
squeeze-lines=1
squeeze-ws
unpad-paren