1#--------------------------------------------------
2# AStyle Configuration
3#
4# Docs: http://astyle.sourceforge.net/astyle.html
5#--------------------------------------------------
6
7# use Kernighan & Ritchie style
8style=kr
9
10indent=spaces=4
11
12#--------------------------------------------------
13# Bracket Options
14#--------------------------------------------------
15
16#--------------------------------------------------
17# Indentation Options
18#--------------------------------------------------
19
20indent-namespaces
21
22indent-switches
23
24indent-preproc-block
25
26#--------------------------------------------------
27# Padding Options
28#--------------------------------------------------
29
30#--------------------------------------------------
31# Formatting options
32#--------------------------------------------------
33
34align-pointer=type
35
36align-reference=type
37
38# convert tabs into spaces
39convert-tabs
40
41# break line, if the code exceed 120 columns.
42max-code-length=120
43
44break-after-logical
45
46mode=c
47
48lineend=linux
49
50#--------------------------------------------------
51# Processing
52#--------------------------------------------------
53
54# travel through dirs
55recursive
56
57# show only formatted files
58formatted