Skip to content

Commit c898215

Browse files
committed
Use older clang format
1 parent 9b94e36 commit c898215

File tree

1 file changed

+35
-79
lines changed

1 file changed

+35
-79
lines changed

.clang-format

+35-79
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,21 @@ Language: Cpp
44
AccessModifierOffset: -1
55
AlignAfterOpenBracket: Align
66
AlignArrayOfStructures: None
7-
AlignConsecutiveAssignments:
8-
Enabled: false
9-
AcrossEmptyLines: false
10-
AcrossComments: false
11-
AlignCompound: false
12-
PadOperators: true
13-
AlignConsecutiveBitFields:
14-
Enabled: false
15-
AcrossEmptyLines: false
16-
AcrossComments: false
17-
AlignCompound: false
18-
PadOperators: false
19-
AlignConsecutiveDeclarations:
20-
Enabled: false
21-
AcrossEmptyLines: false
22-
AcrossComments: false
23-
AlignCompound: false
24-
PadOperators: false
25-
AlignConsecutiveMacros:
26-
Enabled: false
27-
AcrossEmptyLines: false
28-
AcrossComments: false
29-
AlignCompound: false
30-
PadOperators: false
31-
AlignConsecutiveShortCaseStatements:
32-
Enabled: false
33-
AcrossEmptyLines: false
34-
AcrossComments: false
35-
AlignCaseColons: false
7+
AlignConsecutiveMacros: None
8+
AlignConsecutiveAssignments: None
9+
AlignConsecutiveBitFields: None
10+
AlignConsecutiveDeclarations: None
3611
AlignEscapedNewlines: Left
3712
AlignOperands: Align
38-
AlignTrailingComments:
39-
Kind: Always
40-
OverEmptyLines: 0
13+
AlignTrailingComments: true
4114
AllowAllArgumentsOnNextLine: true
4215
AllowAllParametersOfDeclarationOnNextLine: false
16+
AllowShortEnumsOnASingleLine: true
4317
AllowShortBlocksOnASingleLine: Never
4418
AllowShortCaseLabelsOnASingleLine: false
45-
AllowShortEnumsOnASingleLine: true
4619
AllowShortFunctionsOnASingleLine: Inline
47-
AllowShortIfStatementsOnASingleLine: Never
4820
AllowShortLambdasOnASingleLine: All
21+
AllowShortIfStatementsOnASingleLine: Never
4922
AllowShortLoopsOnASingleLine: false
5023
AlwaysBreakAfterDefinitionReturnType: None
5124
AlwaysBreakAfterReturnType: None
@@ -55,18 +28,17 @@ AttributeMacros:
5528
- __capability
5629
BinPackArguments: true
5730
BinPackParameters: false
58-
BitFieldColonSpacing: Both
5931
BraceWrapping:
6032
AfterCaseLabel: false
6133
AfterClass: false
6234
AfterControlStatement: Never
6335
AfterEnum: false
64-
AfterExternBlock: false
6536
AfterFunction: false
6637
AfterNamespace: false
6738
AfterObjCDeclaration: false
6839
AfterStruct: false
6940
AfterUnion: false
41+
AfterExternBlock: false
7042
BeforeCatch: false
7143
BeforeElse: false
7244
BeforeLambdaBody: false
@@ -75,28 +47,33 @@ BraceWrapping:
7547
SplitEmptyFunction: true
7648
SplitEmptyRecord: true
7749
SplitEmptyNamespace: true
78-
BreakAfterAttributes: Never
79-
BreakAfterJavaFieldAnnotations: false
80-
BreakArrays: true
8150
BreakBeforeBinaryOperators: None
82-
BreakBeforeConceptDeclarations: Always
51+
BreakBeforeConceptDeclarations: true
8352
BreakBeforeBraces: Attach
84-
BreakBeforeInlineASMColon: OnlyMultiline
53+
BreakBeforeInheritanceComma: false
54+
BreakInheritanceList: BeforeColon
8555
BreakBeforeTernaryOperators: true
56+
BreakConstructorInitializersBeforeComma: false
8657
BreakConstructorInitializers: BeforeColon
87-
BreakInheritanceList: BeforeColon
58+
BreakAfterJavaFieldAnnotations: false
8859
BreakStringLiterals: true
8960
ColumnLimit: 80
9061
CommentPragmas: '^ IWYU pragma:'
62+
QualifierAlignment: Leave
9163
CompactNamespaces: false
9264
ConstructorInitializerIndentWidth: 4
9365
ContinuationIndentWidth: 4
9466
Cpp11BracedListStyle: true
67+
DeriveLineEnding: true
9568
DerivePointerAlignment: false
9669
DisableFormat: false
9770
EmptyLineAfterAccessModifier: Never
9871
EmptyLineBeforeAccessModifier: LogicalBlock
9972
ExperimentalAutoDetectBinPacking: false
73+
PackConstructorInitializers: NextLine
74+
BasedOnStyle: ''
75+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
76+
AllowAllConstructorInitializersOnNextLine: true
10077
FixNamespaceComments: true
10178
ForEachMacros:
10279
- foreach
@@ -125,30 +102,19 @@ IncludeCategories:
125102
IncludeIsMainRegex: '([-_](test|unittest))?$'
126103
IncludeIsMainSourceRegex: ''
127104
IndentAccessModifiers: false
128-
IndentCaseBlocks: false
129105
IndentCaseLabels: true
130-
IndentExternBlock: AfterExternBlock
106+
IndentCaseBlocks: false
131107
IndentGotoLabels: true
132108
IndentPPDirectives: None
133-
IndentRequiresClause: true
109+
IndentExternBlock: AfterExternBlock
110+
IndentRequires: false
134111
IndentWidth: 2
135112
IndentWrappedFunctionNames: false
136-
InsertBraces: false
137-
InsertNewlineAtEOF: false
138113
InsertTrailingCommas: None
139-
IntegerLiteralSeparator:
140-
Binary: 0
141-
BinaryMinDigits: 0
142-
Decimal: 0
143-
DecimalMinDigits: 0
144-
Hex: 0
145-
HexMinDigits: 0
146114
JavaScriptQuotes: Leave
147115
JavaScriptWrapImports: true
148116
KeepEmptyLinesAtTheStartOfBlocks: false
149-
KeepEmptyLinesAtEOF: false
150117
LambdaBodyIndentation: Signature
151-
LineEnding: DeriveLF
152118
MacroBlockBegin: ''
153119
MacroBlockEnd: ''
154120
MaxEmptyLinesToKeep: 1
@@ -158,7 +124,6 @@ ObjCBlockIndentWidth: 2
158124
ObjCBreakBeforeNestedBlockParam: true
159125
ObjCSpaceAfterProperty: false
160126
ObjCSpaceBeforeProtocolList: true
161-
PackConstructorInitializers: NextLine
162127
PenaltyBreakAssignment: 2
163128
PenaltyBreakBeforeFirstCallParameter: 1
164129
PenaltyBreakComment: 300
@@ -167,11 +132,10 @@ PenaltyBreakOpenParenthesis: 0
167132
PenaltyBreakString: 1000
168133
PenaltyBreakTemplateDeclaration: 10
169134
PenaltyExcessCharacter: 1000000
170-
PenaltyIndentedWhitespace: 0
171135
PenaltyReturnTypeOnItsOwnLine: 200
136+
PenaltyIndentedWhitespace: 0
172137
PointerAlignment: Left
173138
PPIndentWidth: -1
174-
QualifierAlignment: Leave
175139
RawStringFormats:
176140
- Language: Cpp
177141
Delimiters:
@@ -205,25 +169,19 @@ RawStringFormats:
205169
ReferenceAlignment: Pointer
206170
ReflowComments: true
207171
RemoveBracesLLVM: false
208-
RemoveParentheses: Leave
209-
RemoveSemicolon: false
210-
RequiresClausePosition: OwnLine
211-
RequiresExpressionIndentation: OuterScope
212172
SeparateDefinitionBlocks: Leave
213173
ShortNamespaceLines: 1
214174
SortIncludes: CaseSensitive
215175
SortJavaStaticImport: Before
216-
SortUsingDeclarations: LexicographicNumeric
176+
SortUsingDeclarations: true
217177
SpaceAfterCStyleCast: false
218178
SpaceAfterLogicalNot: false
219179
SpaceAfterTemplateKeyword: true
220-
SpaceAroundPointerQualifiers: Default
221180
SpaceBeforeAssignmentOperators: true
222181
SpaceBeforeCaseColon: false
223182
SpaceBeforeCpp11BracedList: false
224183
SpaceBeforeCtorInitializerColon: true
225184
SpaceBeforeInheritanceColon: true
226-
SpaceBeforeJsonColon: false
227185
SpaceBeforeParens: ControlStatements
228186
SpaceBeforeParensOptions:
229187
AfterControlStatements: true
@@ -232,39 +190,37 @@ SpaceBeforeParensOptions:
232190
AfterFunctionDeclarationName: false
233191
AfterIfMacros: true
234192
AfterOverloadedOperator: false
235-
AfterRequiresInClause: false
236-
AfterRequiresInExpression: false
237193
BeforeNonEmptyParentheses: false
194+
SpaceAroundPointerQualifiers: Default
238195
SpaceBeforeRangeBasedForLoopColon: true
239-
SpaceBeforeSquareBrackets: false
240196
SpaceInEmptyBlock: false
197+
SpaceInEmptyParentheses: false
241198
SpacesBeforeTrailingComments: 2
242199
SpacesInAngles: Never
200+
SpacesInConditionalStatement: false
243201
SpacesInContainerLiterals: true
202+
SpacesInCStyleCastParentheses: false
244203
SpacesInLineCommentPrefix:
245204
Minimum: 1
246205
Maximum: -1
247-
SpacesInParens: Never
248-
SpacesInParensOptions:
249-
InCStyleCasts: false
250-
InConditionalStatements: false
251-
InEmptyParentheses: false
252-
Other: false
206+
SpacesInParentheses: false
253207
SpacesInSquareBrackets: false
208+
SpaceBeforeSquareBrackets: false
209+
BitFieldColonSpacing: Both
254210
Standard: Auto
255211
StatementAttributeLikeMacros:
256212
- Q_EMIT
257213
StatementMacros:
258214
- Q_UNUSED
259215
- QT_REQUIRE_VERSION
260216
TabWidth: 8
217+
UseCRLF: false
261218
UseTab: Never
262-
VerilogBreakBetweenInstancePorts: true
263219
WhitespaceSensitiveMacros:
220+
- STRINGIZE
221+
- PP_STRINGIZE
264222
- BOOST_PP_STRINGIZE
265-
- CF_SWIFT_NAME
266223
- NS_SWIFT_NAME
267-
- PP_STRINGIZE
268-
- STRINGIZE
224+
- CF_SWIFT_NAME
269225
...
270226

0 commit comments

Comments
 (0)