-
Notifications
You must be signed in to change notification settings - Fork 18
/
astylerc
69 lines (52 loc) · 1.47 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# ----------ASTYLERC-------------------------------------------------------
#
# Author: Thoshitha Gamage
# Date : December 9, 2011
#
# ---------------README---------------------------------------------------
# 1. Install astyle for your version of linux using the default package manager
# ubuntu example: sudo apt-get install astyle
#
# 2. Copy this file to your home directory and make it a hidden file
# cp astylerc ~/.astylerc
#
# 3. Stylize your code using astyle
# astyle <code-to-format>
#
# 4. Read more about Astyle options at http://astyle.sourceforge.net/astyle.html
#
# 5. Yell at me if you can't get this done. You know my email
# -------------------------------------------------------------------------
# Indent classes
indent-classes
# Indent switch blocks
#indent-switches
# Indent brackets
#indent-brackets
# Convert tabs into spaces
convert-tabs
# Fill empty lines with the white space
fill-empty-lines
# Brackets break/attach
brackets=break
# Don't break long lines
keep-one-line-statements
# Don't break one line blocks
keep-one-line-blocks
# Set space indent
indent=spaces=4
# Suffix for original file
suffix=none
# Process directories recursively
#recursive
# Indent C++ comments
#indent-col1-comments
# Pad empty lines around header blocks ("if", "for", "while")
break-blocks
# Minimum conditional indent for long headers
#min-conditional-indent=4
# Delete empty lines within a function
delete-empty-lines
# Preserve Date
preserve-date
#lineend=linux