Skip to content

Commit 179af8d

Browse files
committed
Cleanup clang-format.
1 parent 630860c commit 179af8d

1 file changed

Lines changed: 8 additions & 124 deletions

File tree

.clang-format

Lines changed: 8 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,191 +1,75 @@
11
---
22
AccessModifierOffset: -2
33
AlignAfterOpenBracket: AlwaysBreak
4-
AlignArrayOfStructures: None
5-
AlignConsecutiveMacros:
6-
Enabled: true
7-
AcrossEmptyLines: true
8-
AcrossComments: true
9-
AlignConsecutiveAssignments: None
10-
AlignConsecutiveBitFields:
11-
Enabled: true
12-
AcrossEmptyLines: true
13-
AcrossComments: true
14-
AlignConsecutiveDeclarations: None
4+
AlignConsecutiveAssignments: false
5+
AlignConsecutiveDeclarations: false
156
AlignEscapedNewlines: Right
16-
AlignOperands: Align
7+
AlignOperands: true
178
SortIncludes: false # don't, Windows headers need a fixed include order
18-
InsertBraces: true
199
AlignTrailingComments: true
20-
AllowAllArgumentsOnNextLine: true
2110
AllowAllParametersOfDeclarationOnNextLine: true
22-
AllowShortEnumsOnASingleLine: true
23-
AllowShortBlocksOnASingleLine: Empty
11+
AllowShortBlocksOnASingleLine: false
2412
AllowShortCaseLabelsOnASingleLine: true
2513
AllowShortFunctionsOnASingleLine: All
26-
AllowShortLambdasOnASingleLine: All
27-
AllowShortIfStatementsOnASingleLine: Never
14+
AllowShortIfStatementsOnASingleLine: false
2815
AllowShortLoopsOnASingleLine: false
2916
AlwaysBreakAfterDefinitionReturnType: None
3017
AlwaysBreakAfterReturnType: AllDefinitions
3118
AlwaysBreakBeforeMultilineStrings: false
32-
AlwaysBreakTemplateDeclarations: Yes
33-
AttributeMacros:
34-
- __capability
19+
AlwaysBreakTemplateDeclarations: true
3520
BinPackArguments: true
3621
BinPackParameters: true
37-
BraceWrapping:
38-
AfterCaseLabel: false
39-
AfterClass: false
40-
AfterControlStatement: Never
41-
AfterEnum: false
42-
AfterFunction: false
43-
AfterNamespace: false
44-
AfterObjCDeclaration: false
45-
AfterStruct: false
46-
AfterUnion: false
47-
AfterExternBlock: false
48-
BeforeCatch: false
49-
BeforeElse: false
50-
BeforeLambdaBody: false
51-
BeforeWhile: false
52-
IndentBraces: false
53-
SplitEmptyFunction: true
54-
SplitEmptyRecord: true
55-
SplitEmptyNamespace: true
5622
BreakBeforeBinaryOperators: NonAssignment
57-
BreakBeforeConceptDeclarations: true
5823
BreakBeforeBraces: Attach
5924
BreakBeforeInheritanceComma: false
6025
BreakInheritanceList: BeforeColon
6126
BreakBeforeTernaryOperators: true
6227
BreakConstructorInitializersBeforeComma: false
63-
BreakConstructorInitializers: BeforeColon
6428
BreakAfterJavaFieldAnnotations: false
6529
BreakStringLiterals: true
66-
ColumnLimit: 130
30+
ColumnLimit: 95
6731
CommentPragmas: "^ IWYU pragma:"
68-
QualifierAlignment: Leave
6932
CompactNamespaces: false
7033
ConstructorInitializerIndentWidth: 4
7134
ContinuationIndentWidth: 4
7235
Cpp11BracedListStyle: true
73-
DeriveLineEnding: true
7436
DerivePointerAlignment: false
7537
DisableFormat: false
76-
EmptyLineAfterAccessModifier: Never
77-
EmptyLineBeforeAccessModifier: LogicalBlock
78-
ExperimentalAutoDetectBinPacking: false
79-
PackConstructorInitializers: BinPack
8038
BasedOnStyle: ""
8139
ConstructorInitializerAllOnOneLineOrOnePerLine: false
82-
AllowAllConstructorInitializersOnNextLine: true
8340
FixNamespaceComments: true
84-
ForEachMacros:
85-
- foreach
86-
- Q_FOREACH
87-
- BOOST_FOREACH
88-
IfMacros:
89-
- KJ_IF_MAYBE
9041
IncludeBlocks: Preserve
91-
IncludeCategories:
92-
- Regex: "^<(.*)>"
93-
Priority: 0
94-
- Regex: '^"(.*)"'
95-
Priority: 1
96-
- Regex: "(.*)"
97-
Priority: 2
98-
IncludeIsMainRegex: "(Test)?$"
99-
IncludeIsMainSourceRegex: ""
100-
IndentAccessModifiers: false
10142
IndentCaseLabels: true
102-
IndentCaseBlocks: false
103-
IndentGotoLabels: true
10443
IndentPPDirectives: None
105-
IndentExternBlock: AfterExternBlock
106-
IndentRequires: true
10744
IndentWidth: 4
10845
IndentWrappedFunctionNames: false
109-
InsertTrailingCommas: None
110-
JavaScriptQuotes: Leave
111-
JavaScriptWrapImports: true
11246
KeepEmptyLinesAtTheStartOfBlocks: true
113-
LambdaBodyIndentation: Signature
11447
MacroBlockBegin: ""
11548
MacroBlockEnd: ""
11649
MaxEmptyLinesToKeep: 1
11750
NamespaceIndentation: None
118-
ObjCBinPackProtocolList: Auto
119-
ObjCBlockIndentWidth: 2
120-
ObjCBreakBeforeNestedBlockParam: true
121-
ObjCSpaceAfterProperty: false
122-
ObjCSpaceBeforeProtocolList: true
12351
PenaltyBreakAssignment: 2
12452
PenaltyBreakBeforeFirstCallParameter: 19
12553
PenaltyBreakComment: 300
12654
PenaltyBreakFirstLessLess: 120
127-
PenaltyBreakOpenParenthesis: 0
12855
PenaltyBreakString: 1000
129-
PenaltyBreakTemplateDeclaration: 10
13056
PenaltyExcessCharacter: 1000000
13157
PenaltyReturnTypeOnItsOwnLine: 60
132-
PenaltyIndentedWhitespace: 0
13358
PointerAlignment: Left
134-
PPIndentWidth: -1
135-
ReferenceAlignment: Pointer
13659
ReflowComments: false
137-
RemoveBracesLLVM: false
138-
SeparateDefinitionBlocks: Always
139-
ShortNamespaceLines: 1
140-
SortJavaStaticImport: Before
14160
SortUsingDeclarations: true
14261
SpaceAfterCStyleCast: false
143-
SpaceAfterLogicalNot: false
14462
SpaceAfterTemplateKeyword: true
14563
SpaceBeforeAssignmentOperators: true
146-
SpaceBeforeCaseColon: false
14764
SpaceBeforeParens: ControlStatements
148-
SpaceBeforeParensOptions:
149-
AfterControlStatements: true
150-
AfterForeachMacros: true
151-
AfterFunctionDefinitionName: false
152-
AfterFunctionDeclarationName: false
153-
AfterIfMacros: true
154-
AfterOverloadedOperator: false
155-
BeforeNonEmptyParentheses: false
156-
SpaceAroundPointerQualifiers: Default
157-
SpaceBeforeRangeBasedForLoopColon: true
158-
SpaceInEmptyBlock: false
15965
SpaceInEmptyParentheses: false
16066
SpacesBeforeTrailingComments: 1
161-
SpacesInAngles: Never
162-
SpacesInConditionalStatement: false
67+
SpacesInAngles: false
16368
SpacesInContainerLiterals: true
16469
SpacesInCStyleCastParentheses: false
165-
SpacesInLineCommentPrefix:
166-
Minimum: 1
167-
Maximum: -1
16870
SpacesInParentheses: false
16971
SpacesInSquareBrackets: false
170-
SpaceBeforeSquareBrackets: false
171-
BitFieldColonSpacing: Both
172-
Standard: Latest
173-
StatementAttributeLikeMacros:
174-
- Q_EMIT
175-
StatementMacros:
176-
- Q_UNUSED
177-
- QT_REQUIRE_VERSION
17872
TabWidth: 8
179-
UseCRLF: false
18073
UseTab: Never
181-
WhitespaceSensitiveMacros:
182-
- STRINGIZE
183-
- PP_STRINGIZE
184-
- BOOST_PP_STRINGIZE
185-
- NS_SWIFT_NAME
186-
- CF_SWIFT_NAME
187-
SpaceBeforeCpp11BracedList: false
188-
SpaceBeforeCtorInitializerColon: true
189-
SpaceBeforeInheritanceColon: true
19074
---
19175

0 commit comments

Comments
 (0)