forked from pmret/papermario
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
63 lines (53 loc) · 1.31 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
DisableFormat: true # clang-format supports many filetypes
---
Language: Cpp
DisableFormat: false
BasedOnStyle: WebKit
IndentWidth: 4
UseTab: Never
ColumnLimit: 120
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
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
PadOperators: true
AlignConsecutiveDeclarations: # structs etc
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignTrailingComments: true
WhitespaceSensitiveMacros: ['STRINGIFY']
# 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
---
...