-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
91 lines (83 loc) · 2.62 KB
/
Copy path.clang-format
File metadata and controls
91 lines (83 loc) · 2.62 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Canonical clang-format configuration — shared by the pipeline repos
# (slang-math / Aether / Harmonia / Hyperion / Theia).
# C++23, 4-space indent, 120-column limit.
---
Language: Cpp
Standard: Latest
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 120
# Braces
BreakBeforeBraces: Attach
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
# Alignment
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments:
Enabled: false
AlignConsecutiveDeclarations:
Enabled: false
AlignConsecutiveMacros:
Enabled: true
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
# Pointers and references
PointerAlignment: Left
ReferenceAlignment: Left
DerivePointerAlignment: false
# Includes
SortIncludes: CaseSensitive
IncludeBlocks: Regroup
IncludeCategories:
# System / Vulkan headers first
- Regex: '^<volk/'
Priority: 1
- Regex: '^<vulkan/'
Priority: 1
- Regex: '^<SDL3/'
Priority: 2
# Other third-party angle-bracket headers
- Regex: '^<'
Priority: 4
# Project headers
- Regex: '^"'
Priority: 5
# Function parameters / call arguments
AllowAllParametersOfDeclarationOnNextLine: false
BinPackArguments: false
BinPackParameters: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false
# Constructors / initializer lists
ConstructorInitializerIndentWidth: 4
PackConstructorInitializers: NextLine
BreakConstructorInitializers: BeforeColon
# Misc
SpaceAfterCStyleCast: false
SpaceBeforeParens: ControlStatements
SpaceInEmptyBlock: false
Cpp11BracedListStyle: true
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
NamespaceIndentation: None
MaxEmptyLinesToKeep: 1
SeparateDefinitionBlocks: Leave