-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
195 lines (182 loc) · 5.61 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# BasedOnStyle: Microsoft
Language: Cpp
Standard: Latest
# Alignment ----------------------------------------------------
AlignAfterOpenBracket: AlwaysBreak
AlignArrayOfStructures: None
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: false
AlignConsecutiveShortCaseStatements:
Enabled: false
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
DerivePointerAlignment: false
PointerAlignment: Left
QualifierAlignment: Left
ReferenceAlignment: Left
# Short statements ---------------------------------------------
AllowShortLoopsOnASingleLine: false
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
AllowShortEnumsOnASingleLine: false
AllowShortCompoundRequirementOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortBlocksOnASingleLine: Never
# Width --------------------------------------------------------
AccessModifierOffset: -4
BracedInitializerIndentWidth: 4
ColumnLimit: 120
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
IndentWidth: 4
PPIndentWidth: -1
TabWidth: 4
# Wrapping -----------------------------------------------------
AllowAllArgumentsOnNextLine: false
# AllowAllConstructorInitializersOnNextLine: # deprecated
AllowAllParametersOfDeclarationOnNextLine: false
AllowBreakBeforeNoexceptSpecifier: OnlyWithParen
# ------------------------------
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
# ------------------------------
BreakAdjacentStringLiterals: false
BreakAfterAttributes: Always
BreakArrays: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Allman
# BraceWrapping:
BreakBeforeConceptDeclarations: Always
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
# BreakConstructorInitializersBeforeComma: # deprecated
BreakInheritanceList: BeforeColon
# BreakBeforeInheritanceComma: # deprecated
BreakStringLiterals: false
# ConstructorInitializerAllOnOneLineOrOnePerLine: # deprecated
VerilogBreakBetweenInstancePorts: false
# Indentation --------------------------------------------------
IndentWrappedFunctionNames: false
IndentRequiresClause: false
IndentPPDirectives: BeforeHash
IndentGotoLabels: false
IndentExternBlock: NoIndent
IndentCaseLabels: true
IndentCaseBlocks: false
IndentAccessModifiers: false
IncludeBlocks: Preserve
LambdaBodyIndentation: Signature
NamespaceIndentation: None
RequiresExpressionIndentation: OuterScope
# Lines --------------------------------------------------------
# DeriveLineEnding: # deprecated
EmptyLineBeforeAccessModifier: LogicalBlock
EmptyLineAfterAccessModifier: Never
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: false
KeepEmptyLinesAtEOF: true
MaxEmptyLinesToKeep: 1
ShortNamespaceLines: 0
# Spacing ------------------------------------------------------
BitFieldColonSpacing: After
Cpp11BracedListStyle: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatementsExceptControlMacros
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: false
AfterFunctionDeclarationName: false
AfterFunctionDefinitionName: false
AfterIfMacros: false
AfterOverloadedOperator: false
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
# SpacesInConditionalStatement: # deprecated
# SpacesInCStyleCastParentheses: # deprecated
SpacesInContainerLiterals: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: 1
SpacesInParens: Never
SpacesInParensOptions:
InConditionalStatements: false
InCStyleCasts: false
InEmptyParentheses: false
Other: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
# Other --------------------------------------------------------
BinPackParameters: false
BinPackArguments: false
CompactNamespaces: false
DisableFormat: false
# ExperimentalAutoDetectBinPacking: # experimental
FixNamespaceComments: true
# IntegerLiteralSeparator:
InsertTrailingCommas: Wrapped
InsertBraces: true
PackConstructorInitializers: CurrentLine
ReflowComments: false
RemoveSemicolon: true
RemoveParentheses: Leave
RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Always
SortIncludes: CaseSensitive
SortUsingDeclarations: Lexicographic
# Regex --------------------------------------------------------
# CommentPragmas:
# IncludeIsMainSourceRegex:
# IncludeIsMainRegex:
# MacroBlockBegin:
# MacroBlockEnd:
# Macros -------------------------------------------------------
# AttributeMacros:
# ForEachMacros:
# IfMacros:
# IncludeCategories:
# Macros:
# NamespaceMacros:
# QualifierOrder:
# RawStringFormats:
# StatementAttributeLikeMacros:
# StatementMacros:
# TypenameMacros:
# TypeNames:
# WhitespaceSensitiveMacros:
# Penalty ------------------------------------------------------
# PenaltyBreakAssignment:
# PenaltyBreakBeforeFirstCallParameter:
# PenaltyBreakComment:
# PenaltyBreakFirstLessLess:
# PenaltyBreakOpenParenthesis:
# PenaltyBreakString:
# PenaltyBreakTemplateDeclaration:
# PenaltyExcessCharacter:
# PenaltyIndentedWhitespace:
# PenaltyReturnTypeOnItsOwnLine:
# Additional
LineEnding: LF
UseTab: Never
UseCRLF: false