Skip to content

Commit 2cbfa64

Browse files
committed
.clang-format: Init with "clang-format-15 --dump-config > .clang-format"
This is with clang-format 15.0.7.
1 parent 1753780 commit 2cbfa64

File tree

1 file changed

+216
-0
lines changed

1 file changed

+216
-0
lines changed

.clang-format

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: Align
6+
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+
AlignEscapedNewlines: Right
32+
AlignOperands: Align
33+
AlignTrailingComments: true
34+
AllowAllArgumentsOnNextLine: true
35+
AllowAllParametersOfDeclarationOnNextLine: true
36+
AllowShortEnumsOnASingleLine: true
37+
AllowShortBlocksOnASingleLine: Never
38+
AllowShortCaseLabelsOnASingleLine: false
39+
AllowShortFunctionsOnASingleLine: All
40+
AllowShortLambdasOnASingleLine: All
41+
AllowShortIfStatementsOnASingleLine: Never
42+
AllowShortLoopsOnASingleLine: false
43+
AlwaysBreakAfterDefinitionReturnType: None
44+
AlwaysBreakAfterReturnType: None
45+
AlwaysBreakBeforeMultilineStrings: false
46+
AlwaysBreakTemplateDeclarations: MultiLine
47+
AttributeMacros:
48+
- __capability
49+
BinPackArguments: true
50+
BinPackParameters: true
51+
BraceWrapping:
52+
AfterCaseLabel: false
53+
AfterClass: false
54+
AfterControlStatement: Never
55+
AfterEnum: false
56+
AfterFunction: false
57+
AfterNamespace: false
58+
AfterObjCDeclaration: false
59+
AfterStruct: false
60+
AfterUnion: false
61+
AfterExternBlock: false
62+
BeforeCatch: false
63+
BeforeElse: false
64+
BeforeLambdaBody: false
65+
BeforeWhile: false
66+
IndentBraces: false
67+
SplitEmptyFunction: true
68+
SplitEmptyRecord: true
69+
SplitEmptyNamespace: true
70+
BreakBeforeBinaryOperators: None
71+
BreakBeforeConceptDeclarations: Always
72+
BreakBeforeBraces: Attach
73+
BreakBeforeInheritanceComma: false
74+
BreakInheritanceList: BeforeColon
75+
BreakBeforeTernaryOperators: true
76+
BreakConstructorInitializersBeforeComma: false
77+
BreakConstructorInitializers: BeforeColon
78+
BreakAfterJavaFieldAnnotations: false
79+
BreakStringLiterals: true
80+
ColumnLimit: 80
81+
CommentPragmas: '^ IWYU pragma:'
82+
QualifierAlignment: Leave
83+
CompactNamespaces: false
84+
ConstructorInitializerIndentWidth: 4
85+
ContinuationIndentWidth: 4
86+
Cpp11BracedListStyle: true
87+
DeriveLineEnding: true
88+
DerivePointerAlignment: false
89+
DisableFormat: false
90+
EmptyLineAfterAccessModifier: Never
91+
EmptyLineBeforeAccessModifier: LogicalBlock
92+
ExperimentalAutoDetectBinPacking: false
93+
PackConstructorInitializers: BinPack
94+
BasedOnStyle: ''
95+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
96+
AllowAllConstructorInitializersOnNextLine: true
97+
FixNamespaceComments: true
98+
ForEachMacros:
99+
- foreach
100+
- Q_FOREACH
101+
- BOOST_FOREACH
102+
IfMacros:
103+
- KJ_IF_MAYBE
104+
IncludeBlocks: Preserve
105+
IncludeCategories:
106+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
107+
Priority: 2
108+
SortPriority: 0
109+
CaseSensitive: false
110+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
111+
Priority: 3
112+
SortPriority: 0
113+
CaseSensitive: false
114+
- Regex: '.*'
115+
Priority: 1
116+
SortPriority: 0
117+
CaseSensitive: false
118+
IncludeIsMainRegex: '(Test)?$'
119+
IncludeIsMainSourceRegex: ''
120+
IndentAccessModifiers: false
121+
IndentCaseLabels: false
122+
IndentCaseBlocks: false
123+
IndentGotoLabels: true
124+
IndentPPDirectives: None
125+
IndentExternBlock: AfterExternBlock
126+
IndentRequiresClause: true
127+
IndentWidth: 2
128+
IndentWrappedFunctionNames: false
129+
InsertBraces: false
130+
InsertTrailingCommas: None
131+
JavaScriptQuotes: Leave
132+
JavaScriptWrapImports: true
133+
KeepEmptyLinesAtTheStartOfBlocks: true
134+
LambdaBodyIndentation: Signature
135+
MacroBlockBegin: ''
136+
MacroBlockEnd: ''
137+
MaxEmptyLinesToKeep: 1
138+
NamespaceIndentation: None
139+
ObjCBinPackProtocolList: Auto
140+
ObjCBlockIndentWidth: 2
141+
ObjCBreakBeforeNestedBlockParam: true
142+
ObjCSpaceAfterProperty: false
143+
ObjCSpaceBeforeProtocolList: true
144+
PenaltyBreakAssignment: 2
145+
PenaltyBreakBeforeFirstCallParameter: 19
146+
PenaltyBreakComment: 300
147+
PenaltyBreakFirstLessLess: 120
148+
PenaltyBreakOpenParenthesis: 0
149+
PenaltyBreakString: 1000
150+
PenaltyBreakTemplateDeclaration: 10
151+
PenaltyExcessCharacter: 1000000
152+
PenaltyReturnTypeOnItsOwnLine: 60
153+
PenaltyIndentedWhitespace: 0
154+
PointerAlignment: Right
155+
PPIndentWidth: -1
156+
ReferenceAlignment: Pointer
157+
ReflowComments: true
158+
RemoveBracesLLVM: false
159+
RequiresClausePosition: OwnLine
160+
SeparateDefinitionBlocks: Leave
161+
ShortNamespaceLines: 1
162+
SortIncludes: CaseSensitive
163+
SortJavaStaticImport: Before
164+
SortUsingDeclarations: true
165+
SpaceAfterCStyleCast: false
166+
SpaceAfterLogicalNot: false
167+
SpaceAfterTemplateKeyword: true
168+
SpaceBeforeAssignmentOperators: true
169+
SpaceBeforeCaseColon: false
170+
SpaceBeforeCpp11BracedList: false
171+
SpaceBeforeCtorInitializerColon: true
172+
SpaceBeforeInheritanceColon: true
173+
SpaceBeforeParens: ControlStatements
174+
SpaceBeforeParensOptions:
175+
AfterControlStatements: true
176+
AfterForeachMacros: true
177+
AfterFunctionDefinitionName: false
178+
AfterFunctionDeclarationName: false
179+
AfterIfMacros: true
180+
AfterOverloadedOperator: false
181+
AfterRequiresInClause: false
182+
AfterRequiresInExpression: false
183+
BeforeNonEmptyParentheses: false
184+
SpaceAroundPointerQualifiers: Default
185+
SpaceBeforeRangeBasedForLoopColon: true
186+
SpaceInEmptyBlock: false
187+
SpaceInEmptyParentheses: false
188+
SpacesBeforeTrailingComments: 1
189+
SpacesInAngles: Never
190+
SpacesInConditionalStatement: false
191+
SpacesInContainerLiterals: true
192+
SpacesInCStyleCastParentheses: false
193+
SpacesInLineCommentPrefix:
194+
Minimum: 1
195+
Maximum: -1
196+
SpacesInParentheses: false
197+
SpacesInSquareBrackets: false
198+
SpaceBeforeSquareBrackets: false
199+
BitFieldColonSpacing: Both
200+
Standard: Latest
201+
StatementAttributeLikeMacros:
202+
- Q_EMIT
203+
StatementMacros:
204+
- Q_UNUSED
205+
- QT_REQUIRE_VERSION
206+
TabWidth: 8
207+
UseCRLF: false
208+
UseTab: Never
209+
WhitespaceSensitiveMacros:
210+
- STRINGIZE
211+
- PP_STRINGIZE
212+
- BOOST_PP_STRINGIZE
213+
- NS_SWIFT_NAME
214+
- CF_SWIFT_NAME
215+
...
216+

0 commit comments

Comments
 (0)