-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
76 lines (75 loc) · 2.4 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
67
68
69
70
71
72
73
74
75
76
---
#BasedOnStyle: LLVM # Use defaults from the LLVM style
AlwaysBreakTemplateDeclarations: Yes
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignOperands: DontAlign
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
#AllowShortIfStatementsOnASingleLine: false
#AlignTrailingComments:
# Kind: Always
# OverEmptyLines: 2
#BinPackArguments: false
#BinPackParameters: false
BitFieldColonSpacing: None
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
BraceWrapping:
BeforeLambdaBody: true
# AfterEnum: true
# AfterStruct: false
# SplitEmptyFunction: false
#ColumnLimit: 0
ColumnLimit: 120
ContinuationIndentWidth: 8
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<catch2/'
Priority: 1
- Regex: '^<libv/.*fwd(_ptr)?.hpp>'
Priority: 3
SortPriority: 2
- Regex: '^<libv/'
Priority: 3
- Regex: '^<wish/'
Priority: 3
- Regex: '<[[:alnum:]_]+>' # Extensionless std headers
Priority: 4
- Regex: '<[[:alnum:].-_]+>' # Any <> header (external headers)
Priority: 2
- Regex: '"[[:alnum:]._-]+"' # Any "" header
Priority: 5
# Unfortunately freetype wierd include via macros FT_FREETYPE_H
# - Regex: '^<(assimp|boost|clip|colony|cppcoro|hdiffpatch|efsw|fmt|function2|GL|GLFW|gli|glm|openssl|immer|prometheus|range|rp3d|SOIL2|sol|sqlite3|utf8cpp|jc_voronoi|vide)/'
# Priority: 2
# - Regex: '^<(ctre\.hpp|zstd\.h|ft2build\.h)>$'
# Priority: 2
#IncludeIsMainRegex:
#IncludeIsMainSourceRegex:
#IndentCaseLabels
IndentCaseLabels: false
#IndentPPDirectives
IndentWidth: 4
LineEnding: LF
LambdaBodyIndentation: OuterScope
MaxEmptyLinesToKeep: 2
PackConstructorInitializers: NextLine
QualifierAlignment: Left
#QualifierAlignment: Custom
#QualifierOrder: ['friend', 'static', 'constexpr', 'inline', 'volatile', 'restrict', 'const', 'type']
#QualifierOrder: ['virtual', 'explicit', 'friend', 'static', 'constexpr', 'inline', 'const', 'type']
PointerAlignment: Left
ReferenceAlignment: Left
#RemoveSemicolon: true
#RequiresClausePosition
RequiresExpressionIndentation: OuterScope
SpaceAfterCStyleCast: true
SpaceInEmptyBlock: true
SeparateDefinitionBlocks: Leave
SortIncludes: CaseInsensitive
TabWidth: 4
UseTab: Always
...