~dobey/unity-api/add-simple-logger

65.1.1 by Michi Henning
Added astyle-config.
1
# Options for formatting code with astyle.
2
#
3
# This helps to make code match the style guide.
4
# 
5
# Use like this:
6
# 
7
#     astyle --options=astyle-config mfile.h myfile.cpp
8
# 
9
# Occasionally, astyle does something silly (particularly with lambdas), so it's
10
# still necessary to scan the changes for things that are wrong.
11
# But, for most files, it does a good job.
12
# 
13
# Please consider using this before checking code in for review. Code reviews shouldn't
14
# have to deal with layout issues, they are just a distraction. It's better to be able
15
# to focus on semantics in a code review, with style issues out of the way.
16
17
--formatted
18
--style=allman
19
--min-conditional-indent=2
20
--indent-switches
21
--max-instatement-indent=80
22
--pad-header
23
--align-pointer=type
24
--align-reference=type
25
--add-brackets
26
--convert-tabs
27
--close-templates
28
--max-code-length=132
29
30
# --pad-oper
31
#
32
# Commented out for now. It changes
33
#
34
#     for (int i=0; i<10; ++i)
35
# to
36
#     for (int i = 0; i < 10; ++i)
37
#
38
# Unfortunately, it also messes with rvalue references:
39
#
40
#     ResourcePtr& operator=(ResourcePtr&& r);
41
#
42
# becomes:
43
#
44
#     ResourcePtr& operator=(ResourcePtr && r);