-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
61 lines (61 loc) · 1.49 KB
/
.clang-format
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
BasedOnStyle: Chromium
Language: Cpp
MaxEmptyLinesToKeep: 3
IndentCaseLabels: false
AllowShortIfStatementsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortLambdasOnASingleLine: true
AllowShortFunctionsOnASingleLine: true
DerivePointerAlignment: false
PointerAlignment: Right
SpaceAfterCStyleCast: true
TabWidth: 2
UseTab: Never
IndentWidth: 2
AlignConsecutiveAssignments: false
IndentGotoLabels: true
AccessModifierOffset: -2
AlignConsecutiveMacros: false
AlignTrailingComments: false
SpacesInParentheses: false
SpacesBeforeTrailingComments : 4
SpaceBeforeParens: ControlStatements
SpaceBeforeAssignmentOperators: true
SortIncludes: false
Cpp11BracedListStyle: false
ContinuationIndentWidth: 2
BinPackArguments: true
ColumnLimit: 0
AllowShortEnumsOnASingleLine: true
AllowAllParametersOfDeclarationOnNextLine: true
BreakBeforeBraces: Custom
NamespaceIndentation: All
Cpp11BracedListStyle: false
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
- list_for_each
- list_for_each_safe
- list_for_each_entry
- list_for_each_entry_safe
- hlist_for_each_entry
- rb_list_foreach
- rb_list_foreach_safe
- EV_FOREACH
- LIST_FOREACH
BraceWrapping:
AfterClass: false
AfterStruct: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterObjCDeclaration: false
AfterUnion: false
BeforeCatch: false
BeforeElse: true
IndentBraces: false
SplitEmptyRecord: false