-
Notifications
You must be signed in to change notification settings - Fork 3
/
.astyle-options
81 lines (69 loc) · 1.39 KB
/
.astyle-options
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
70
71
72
73
74
75
76
77
78
79
80
81
# use attached brackets:
#
# int Foo(bool isBar) {
# if (isBar) {
# bar();
# return 1;
# } else
# return 0;
# }
--style=java
# tab indent equals 4 spaces
--indent=tab=4
# indent contents of namespaces
#
# namespace foospace
# {
# class Foo
# {
# public:
# Foo();
# virtual ~Foo();
# };
# }
--indent-namespaces
# indent preprocessor blocks
#
# #ifdef _WIN32
# #include <windows.h>
# #ifndef NO_EXPORT
# #define EXPORT
# #endif
# #endif
--indent-preproc-block
# indent multiline preprocessor definitions ending with backslashes
#
# #define Is_Bar(arg,a,b) \
# (Is_Foo((arg), (a)) \
# || Is_Foo((arg), (b)))
--indent-preproc-define
# insert spaces around operands
#
# if (foo == 2)
# a = bar((b - c) * a, d--);
--pad-oper
# insert space after if/for/while
#
# if (isFoo((a+2), b))
# bar(a, b);
--pad-header
# align pointer operators * and & to the name
#
# char* foo1;
# char& foo2;
# String^ s1;
--align-pointer=type
# add braces to single line if/while/for statements
#
# if (isFoo) {
# isFoo = false;
# }
--add-brackets
# max line length before line break
--max-code-length=100
# indent multiline headers at least two tabs
--min-conditional-indent=2
# also indent comments that are on col 1
--indent-col1-comments
# in the output, only display files that were actually formatted
--formatted