summaryrefslogtreecommitdiff
path: root/.astylerc
blob: 7dccc3e76ad2462e87a51b1e8166509f42c25e96 (plain)
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
# astyle -n -r "benchmark/*.h,*.cpp" "src/*.h,*.cpp" "tests/*.h,*.cpp" "tools/*.h,*.cpp" "examples/*.h,*.cpp"

# brace style
--style=allman

# tab
--attach-namespaces
--attach-extern-c
--attach-closing-while

# indentation
--indent-preproc-define
--indent-col1-comments
--min-conditional-indent=0
--max-continuation-indent=120

# padding
--pad-oper
--pad-comma
--pad-header
--align-pointer=type
--align-reference=type

# formatting
--break-closing-braces
--attach-return-type
--attach-return-type-decl
--keep-one-line-blocks
--keep-one-line-statements
--convert-tabs
--max-code-length=200
--mode=c

# other
--lineend=linux