1
# Options for formatting code with astyle.
3
# This helps to make code match the style guide.
7
# astyle --options=astyle-config mfile.h myfile.cpp
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.
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.
19
--min-conditional-indent=2
21
--max-instatement-indent=80
24
--align-reference=type
32
# Commented out for now. It changes
34
# for (int i=0; i<10; ++i)
36
# for (int i = 0; i < 10; ++i)
38
# Unfortunately, it also messes with rvalue references:
40
# ResourcePtr& operator=(ResourcePtr&& r);
44
# ResourcePtr& operator=(ResourcePtr && r);