Skip to content

Commit d79f58f

Browse files
committed
.clang-format: Init with "clang-format --dump-config > .clang-format"
1 parent a8c6edd commit d79f58f

File tree

1 file changed

+217
-0
lines changed

1 file changed

+217
-0
lines changed

.clang-format

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

0 commit comments

Comments
 (0)