-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
107 lines (92 loc) · 2.53 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
Language: Cpp
DisableFormat: false
RemoveSemicolon: false
RemoveBracesLLVM: false
SpaceInEmptyBlock: false
CompactNamespaces: false
SpaceBeforeCaseColon: false
SpaceAfterLogicalNot: false
SpaceBeforeSquareBrackets: false
SpacesInContainerLiterals: false
SpaceAfterTemplateKeyword: false
KeepEmptyLinesAtTheStartOfBlocks: false
InsertBraces: true
ReflowComments: true
IndentRequires: true
IndentCaseLabels: true
BreakStringLiterals: true
FixNamespaceComments: true
IndentRequiresClause: true
SpaceAfterCStyleCast: true
IndentAccessModifiers: true
IndentWrappedFunctionNames: true
SpaceBeforeInheritanceColon: true
AllowShortLoopsOnASingleLine: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true
AllowShortCaseLabelsOnASingleLine: true
SpaceBeforeRangeBasedForLoopColon: true
SortIncludes: CaseInsensitive
IncludeBlocks: Regroup
AlignOperands: AlignAfterOperator
SpaceBeforeParens: Custom
RemoveParentheses: MultipleParentheses
IndentPPDirectives: AfterHash
NamespaceIndentation: All
BreakInheritanceList: AfterComma
SortUsingDeclarations: LexicographicNumeric
SpaceAroundPointerQualifiers: After
RequiresExpressionIndentation: Keyword
EmptyLineBeforeAccessModifier: LogicalBlock
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveDeclarations: Consecutive
PointerAlignment: Right
QualifierAlignment: Left
ReferenceAlignment: Right
AlignArrayOfStructures: Right
UseTab: Never
SpacesInAngles: Never
BreakBeforeBinaryOperators: None
EmptyLineAfterAccessModifier: Never
SeparateDefinitionBlocks: Always
AllowShortBlocksOnASingleLine: Always
IndentWidth: 2
ShortNamespaceLines: 0
MaxEmptyLinesToKeep: 1
ContinuationIndentWidth: 2
SpacesBeforeTrailingComments: 1
ColumnLimit: 100
SpaceBeforeParensOptions:
AfterPlacementOperator: false
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterControlStatements: true
BraceWrapping:
AfterEnum: false
AfterClass: false
AfterUnion: false
BeforeElse: false
BeforeWhile: false
AfterStruct: false
BeforeCatch: false
AfterFunction: false
AfterCaseLabel: false
AfterNamespace: false
AfterExternBlock: false
SplitEmptyRecord: false
SplitEmptyFunction: false
SplitEmptyNamespace: false
AfterControlStatement: Never
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossComments: true
AlignCaseColons: true
AcrossEmptyLines: true
AlignTrailingComments:
Kind: Always
OverEmptyLines: 2
---