-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.astylerc
51 lines (34 loc) · 1.25 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
# These options are mirrored in .astylerc and doc/CODE_STYLE.txt
# "One True Brace Style"
--style=1tbs
# Attach brackets to class and struct inline function definitions.
--attach-inlines
# 4 spaces per indentation level and per tab stop
--indent=spaces=4
# 'char *foo' instead of 'char* foo'
--align-pointer=name
# maximum length for a single unbroken line
--max-code-length=100
# 'foo ||\nbar' instead of 'foo\n|| bar'
--break-after-logical
# indent 'public:' 'protected:' 'private:' deeper than 'class' or 'struct'
--indent-classes
# indent 'case' lines deeper than 'switch'
--indent-switches
# indent later lines of multi-line preprocessor directives
# to be deprecated by --indent-preproc-define
--indent-preprocessor
# indent comments on column 1 to match the code block they are in
--indent-col1-comments
# indent multi-line control block headers like 'if (foo\nbar)'
--min-conditional-indent=0
# add space around operators with two operands
--pad-oper
# add brackets to unbracketed one line conditional statements
--add-brackets
# replaces tabs with spaces in non-indent sections, except in strings
--convert-tabs
# remove extra space padding around parentheses
--unpad-paren
# insert space padding around parentheses on the inside only
--pad-paren-in