-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
82 lines (74 loc) · 2.03 KB
/
.clang-format
File metadata and controls
82 lines (74 loc) · 2.03 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
## AUTHOR: WANDEX
## https://clang.llvm.org/docs/ClangFormatStyleOptions.html
## https://llvm.org/docs/CodingStandards.html
## https://google.github.io/styleguide/cppguide.html
---
BasedOnStyle: LLVM
Language: Cpp
Standard: c++20
IncludeBlocks: Preserve
SortIncludes: true
BreakConstructorInitializers: BeforeComma
BreakTemplateDeclarations: Yes
ColumnLimit: 80
FixNamespaceComments: true
IndentCaseLabels: false
IndentPPDirectives: AfterHash
IndentRequiresClause: false
IndentWidth: 2
InsertNewlineAtEOF: true
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
PPIndentWidth: 0
PackConstructorInitializers: Never
PointerAlignment: Left
QualifierAlignment: Custom
QualifierOrder: [friend, inline, static, constexpr, volatile, restrict, type, const]
ReflowComments: Always
SkipMacroDefinitionBody: true
WrapNamespaceBodyWithEmptyLines: Always
AllowShortCaseExpressionOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveMacros: Consecutive
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCaseColons: true
AlignEscapedNewlines: Right
AlignOperands: AlignAfterOperator
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
Cpp11BracedListStyle: false
SpaceBeforeCpp11BracedList: false
BreakBeforeBraces: Custom
BraceWrapping: ## BreakBeforeBraces: Linux - Cpp Extended
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: MultiLine
AfterEnum: true
AfterExternBlock: false
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyNamespace: true
SplitEmptyRecord: true
## clang-format 22
# NumericLiteralCase:
# ExponentLetter: Lower
# HexDigit: Upper
# Prefix: Lower
# Suffix: Lower