forked from ethteck/kh1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
39 lines (31 loc) · 833 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
39
IndentWidth: 4
UseTab: Never
ColumnLimit: 120
PointerAlignment: Left
AllowShortIfStatementsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
BreakBeforeBraces: Custom
BraceWrapping:
# Place opening brace on next line if the statement is multi-line
# e.g.
# if (very
# long
# condition)
# {
AfterControlStatement: MultiLine
IndentCaseLabels: true
BreakBeforeBinaryOperators: NonAssignment
ExperimentalAutoDetectBinPacking: true
BinPackParameters: false
AlignAfterOpenBracket: BlockIndent
# Our include order is WIP so disable it
SortIncludes: false
IncludeCategories:
# common.h always comes first
- Regex: '^"common\.h"$'
Priority: 10
# everything else
- Regex: '.*'
Priority: 1
SortPriority: 0
AllowShortFunctionsOnASingleLine: None