-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-format
42 lines (41 loc) · 1.17 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
BasedOnStyle: LLVM
TabWidth: 4
UseTab: ForIndentation
BreakBeforeBraces: Attach
#BreakStringLiterals: true
IndentWidth: 4
AlignAfterOpenBracket: Align
ColumnLimit: 90
#ExperimentalAutoDetectBinPacking: true
BinPackArguments: true
BinPackParameters: true
#ReflowComments: true
AlignTrailingComments: true
Language: Cpp
SpacesBeforeTrailingComments: 8
SpaceBeforeAssignmentOperators: true
AllowShortIfStatementsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
IndentCaseLabels: false
PenaltyReturnTypeOnItsOwnLine: 0
PenaltyBreakFirstLessLess: 0
PenaltyBreakAssignment: 0
PenaltyBreakTemplateDeclaration: 0
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyExcessCharacter: 2
PenaltyBreakString: 120
BreakBeforeBinaryOperators: None
IncludeCategories:
- Regex: '<deai/.*\.h>'
Priority: 1
- Regex: '<.*\.h>'
Priority: 2
- Regex: '".*\.h"'
Priority: 3
SortIncludes: true
ForEachMacros: [ list_for_each_entry, list_for_each_entry_safe, HASH_ITER ]
AlwaysBreakTemplateDeclarations: Yes
AccessModifierOffset: -4