-
Notifications
You must be signed in to change notification settings - Fork 240
/
.clang-format
66 lines (66 loc) · 1.74 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
62
63
64
65
66
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 120
AlignEscapedNewlines: Left
AlignAfterOpenBracket: AlwaysBreak
#
# Bind * to the type rather than the name.
PointerAlignment: Left
#
# Put function name on separate line from return type.
AlwaysBreakAfterReturnType: All
#
# Put arguments either all on same line or on separate lines.
BinPackArguments: false
#
# Put function parameters on separate lines.
BinPackParameters: false
#
# Open brace goes on new line only when starting a new struct, enum, or func.
BreakBeforeBraces: Mozilla
#
# Special include file sort ordering rules.
# Priority indicates the "group" (where groups are separated by a blank line).
# SortPriority indicates the overall order when we need to override alphabetical
# order due to Windows header dependencies.
SortIncludes: 'true'
IncludeBlocks: Regroup
IncludeIsMainRegex: "UNUSED$"
IncludeCategories:
# winsock2.h must be before in6addr.h or windows.h
- Regex: '^<[Ww]insock2.h>'
Priority: 2
SortPriority: 2
- Regex: '^<in6addr.h>'
Priority: 2
SortPriority: 3
# windows.h must be before ElfWrapper.h or netsh.h
- Regex: '^<[Ww]indows.h>'
Priority: 2
SortPriority: 3
# ws2def.h and ws2ipdef.h must be before iphlpapi.h
- Regex: '^<(ws2def|ws2ipdef).h>'
Priority: 2
SortPriority: 3
# ws2tcpip.h must be before mstcpip.h
- Regex: '^<ws2tcpip.h>'
Priority: 2
SortPriority: 3
- Regex: '^(<|")ElfWrapper.h'
Priority: 2
SortPriority: 4
# ntifs.h must be before ntddk.h
- Regex: '^<ntifs.h'
Priority: 2
SortPriority: 4
# ndis.h must be before fwpsk.h
- Regex: '^<ndis.h'
Priority: 2
SortPriority: 4
- Regex: '\.c"'
Priority: 6
- Regex: '^"'
Priority: 1
- Regex: '^<'
Priority: 2
SortPriority: 5