-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
59 lines (59 loc) · 1.56 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
BasedOnStyle: Google
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveDeclarations: 'None'
AlignOperands: false
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: 'Never'
AllowShortFunctionsOnASingleLine: 'None'
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: false
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: true
ColumnLimit: 80
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
DeriveLineEnding: false
DerivePointerAlignment: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<Windows\.h>$'
Priority: 30
- Regex: '^<Unknwn\.h>'
Priority: 30
- Regex: '^<Psapi\.h>'
Priority: 30
SortPriority: 31
- Regex: '^<winrt/.+'
Priority: 32
SortPriority: 32
- Regex: '^<ppl[a-z]+\.h>'
Priority: 33
- Regex: '^<winrt/.+'
Priority: 35
- Regex: '^<wil/.+'
Priority: 36
- Regex: '^<(windows|microsoft)\..+\.h>$' # Usually interop headers, e.g. windows.data.pdf.interop
Priority: 37
- Regex: '^<[a-z_]+/.+\.h(pp)?>$'
Priority: 999
SortPriority: 41
- Regex: '^<[a-z_/]+>$'
Priority: 42
CaseSensitive: true
- Regex: '^<[a-z0-9_]+\.h>$'
Priority: 43
IndentWidth: 2
LineEnding: 'LF'
MaxEmptyLinesToKeep: 1
PointerAlignment: Left
ReflowComments: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeRangeBasedForLoopColon: false
SpacesBeforeTrailingComments: 0
Standard: c++20
TabWidth: 2
UseTab: Never