-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.clang-format
39 lines (39 loc) · 1.2 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
---
BasedOnStyle: LLVM
TabWidth: '2'
UseTab: Never
Language: Cpp
#
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: Empty
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
IndentPPDirectives: BeforeHash
IndentCaseLabels: false
IncludeCategories: [
{Regex: '<winsock.*\.h>' , Priority: -3},
{Regex: '<windows\.h>' , Priority: -2},
{Regex: '<winbase\.h>' , Priority: -1},
{Regex: '<win.*\.h>' , Priority: 0},
{Regex: '<sys/types\.h>' , Priority: 1},
{Regex: '<sys/stat\.h>' , Priority: 2},
# FreeBSD has zero header hygiene
{Regex: '<kvm\.h>' , Priority: 3},
{Regex: '<sys/param\.h>' , Priority: 4},
{Regex: '<sys/sysctl\.h>' , Priority: 5},
{Regex: '<sys/user\.h>' , Priority: 6},
{Regex: '<libprocstat\.h>', Priority: 7},
]
...