-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-format
38 lines (38 loc) · 973 Bytes
/
.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
---
Language: Cpp
BasedOnStyle: Google
ColumnLimit: 0
IndentWidth: 4
AccessModifierOffset: -2
NamespaceIndentation: All
AlignOperands: AlignAfterOperator
AllowShortLoopsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
EmptyLineBeforeAccessModifier: LogicalBlock
SeparateDefinitionBlocks: Always
PointerAlignment: Right
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: All
PackConstructorInitializers: NextLine
IncludeCategories:
- Regex: 'testlib\.h'
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: '^<(iostream|cstdio)>'
Priority: 2
SortPriority: 1
CaseSensitive: false
- Regex: '^<.*'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 3
SortPriority: 0
CaseSensitive: false
# InsertBraces: true ## clang-format 15