-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
73 lines (73 loc) · 1.98 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
# Currently configured for clang-format-15. Disabled options require a newer version.
---
AccessModifierOffset: -4
#AlignConsecutiveMacros:
# Enabled: true
# AcrossEmptyLines: true
# AcrossComments: true
# AlignCompound: true
# PadOperators: true
AlignEscapedNewlines: Right
AlignOperands: Align
AlignTrailingComments: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BitFieldColonSpacing: Both
BreakBeforeBraces: Custom
BreakBeforeConceptDeclarations: true
BraceWrapping:
AfterEnum: true
AfterExternBlock: true
AfterClass: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyNamespace: false
SplitEmptyRecord: false
BreakConstructorInitializers: BeforeComma
ColumnLimit: 160
ConstructorInitializerIndentWidth: 0
FixNamespaceComments: true
IncludeBlocks: Preserve
IndentPPDirectives: BeforeHash
#IndentRequiresClause: false
IndentWidth: 4
Language: Cpp
PackConstructorInitializers: Never
PointerAlignment: Left
#RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Always
SortIncludes: CaseSensitive
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterFunctionDeclarationName: false
AfterFunctionDefinitionName: false
AfterOverloadedOperator: false
# AfterRequiresInClause: false
# AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceBeforeCtorInitializerColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
Standard: c++20
TabWidth: 4
UseTab: Never
...