-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.clang-format
More file actions
76 lines (75 loc) · 1.95 KB
/
Copy path.clang-format
File metadata and controls
76 lines (75 loc) · 1.95 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
Language: Cpp
BasedOnStyle: Google
Standard: c++20
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: AcrossComments
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: LeftWithLastLine
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
BinPackArguments: false
BinPackParameters: OnePerLine
BracedInitializerIndentWidth: -1
BraceWrapping:
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeConceptDeclarations: Always
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
ColumnLimit: 120
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: false
IncludeCategories:
# Local includes
- Regex: '^"'
Priority: 1
# Project includes
- Regex: '^<architecture/'
Priority: 1
# Dependency includes
- Regex: '^<.*\.h>'
Priority: 2
# Stdlib includes
- Regex: '^<.*>'
Priority: 3
IndentCaseLabels: false
IndentExternBlock: Indent
IndentGotoLabels: false
IndentPPDirectives: BeforeHash
IndentRequiresClause: false
IndentWidth: 4
InsertBraces: true
InsertNewlineAtEOF: true
InsertTrailingCommas: Wrapped
IntegerLiteralSeparator:
Binary: 4
Decimal: 3
Hex: 4
KeepEmptyLines:
AtEndOfFile: false
AtStartOfBlock: false
AtStartOfFile: false
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
QualifierAlignment: Custom
QualifierOrder: [static, inline, type, const, volatile]
ReferenceAlignment: Right
RemoveEmptyLinesInUnwrappedLines: true
RemoveSemicolon: true
SeparateDefinitionBlocks: Always
SortIncludes:
Enabled: true
IgnoreCase: true
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false
SpacesInContainerLiterals: false
TabWidth: 4
WrapNamespaceBodyWithEmptyLines: Never