-
Notifications
You must be signed in to change notification settings - Fork 52
/
.clang-format
40 lines (40 loc) · 1.08 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
IndentWidth: 4
ColumnLimit: 100
AlignConsecutiveDeclarations: true
AlignConsecutiveAssignments: true
AlignConsecutiveMacros: true
AlignAfterOpenBracket: true
AllowShortBlocksOnASingleLine: Always
BreakBeforeBraces: Stroustrup
# BraceBreakingStyle: Stroustrup
# PenaltyReturnTypeOnItsOwnLine: 0
AlwaysBreakAfterDefinitionReturnType: TopLevel
AlwaysBreakAfterReturnType: TopLevel
SpaceAfterLogicalNot: true
SpaceAfterCStyleCast: true
# SpaceAroundPointerQualifiers: Both
SpaceBeforeAssignmentOperators: true
UseTab: Never
PointerAlignment: Left
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^(<|")(zzip/conf[.]h)'
Priority: 2
- Regex: '^(<|")(zzip/types[.]h)'
Priority: 3
- Regex: '^(<|")(zzip/zzip[.]h)'
Priority: 4
- Regex: '^(<|")(zzip/lib[.]h)'
Priority: 5
- Regex: '^(<|")(zzip/write[.]h)'
Priority: 6
- Regex: '^(<|")(zzip/file[.]h)'
Priority: 8
- Regex: '^(<|")(zlib[.]h)'
Priority: 10
- Regex: '^(<|")(zzip/format[.]h)'
Priority: 11
- Regex: '^(<|")(zzip/mmapped[.]h)'
Priority: 12
- Regex: '^(<|")(zzip/[a-z][^.]*[.]h)'
Priority: 22