Skip to content

Commit abca2de

Browse files
authored
clang format file (#7655)
1 parent 7cf3cfe commit abca2de

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: WebKit
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: DontAlign
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: DontAlign
33+
AlignTrailingComments: false
34+
AllowAllArgumentsOnNextLine: true
35+
AllowAllParametersOfDeclarationOnNextLine: true
36+
AllowShortEnumsOnASingleLine: true
37+
AllowShortBlocksOnASingleLine: Empty
38+
AllowShortCaseLabelsOnASingleLine: false
39+
AllowShortFunctionsOnASingleLine: All
40+
AllowShortLambdasOnASingleLine: All
41+
AllowShortIfStatementsOnASingleLine: WithoutElse
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: All
71+
BreakBeforeConceptDeclarations: Always
72+
BreakBeforeBraces: Custom
73+
BreakBeforeInheritanceComma: false
74+
BreakInheritanceList: BeforeColon
75+
BreakBeforeTernaryOperators: true
76+
BreakConstructorInitializersBeforeComma: false
77+
BreakConstructorInitializers: BeforeComma
78+
BreakAfterJavaFieldAnnotations: false
79+
BreakStringLiterals: true
80+
ColumnLimit: 0
81+
CommentPragmas: '^ IWYU pragma:'
82+
QualifierAlignment: Leave
83+
CompactNamespaces: false
84+
ConstructorInitializerIndentWidth: 4
85+
ContinuationIndentWidth: 4
86+
Cpp11BracedListStyle: false
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: false
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: BeforeHash
125+
IndentPPDirectives: BeforeHash
126+
IndentExternBlock: AfterExternBlock
127+
IndentRequiresClause: true
128+
IndentWidth: 4
129+
IndentWrappedFunctionNames: false
130+
InsertBraces: false
131+
InsertTrailingCommas: None
132+
JavaScriptQuotes: Leave
133+
JavaScriptWrapImports: true
134+
KeepEmptyLinesAtTheStartOfBlocks: true
135+
LambdaBodyIndentation: Signature
136+
MacroBlockBegin: ''
137+
MacroBlockEnd: ''
138+
MaxEmptyLinesToKeep: 1
139+
NamespaceIndentation: None
140+
ObjCBinPackProtocolList: Auto
141+
ObjCBlockIndentWidth: 4
142+
ObjCBreakBeforeNestedBlockParam: true
143+
ObjCSpaceAfterProperty: true
144+
ObjCSpaceBeforeProtocolList: true
145+
PenaltyBreakAssignment: 2
146+
PenaltyBreakBeforeFirstCallParameter: 19
147+
PenaltyBreakComment: 300
148+
PenaltyBreakFirstLessLess: 120
149+
PenaltyBreakOpenParenthesis: 0
150+
PenaltyBreakString: 1000
151+
PenaltyBreakTemplateDeclaration: 10
152+
PenaltyExcessCharacter: 1000000
153+
PenaltyReturnTypeOnItsOwnLine: 60
154+
PenaltyIndentedWhitespace: 0
155+
PointerAlignment: Middle
156+
PPIndentWidth: -1
157+
ReferenceAlignment: Pointer
158+
ReflowComments: false
159+
RemoveBracesLLVM: false
160+
RequiresClausePosition: OwnLine
161+
SeparateDefinitionBlocks: Leave
162+
ShortNamespaceLines: 1
163+
SortIncludes: CaseSensitive
164+
SortJavaStaticImport: Before
165+
SortUsingDeclarations: true
166+
SpaceAfterCStyleCast: false
167+
SpaceAfterLogicalNot: false
168+
SpaceAfterTemplateKeyword: true
169+
SpaceBeforeAssignmentOperators: true
170+
SpaceBeforeCaseColon: false
171+
SpaceBeforeCpp11BracedList: true
172+
SpaceBeforeCtorInitializerColon: true
173+
SpaceBeforeInheritanceColon: true
174+
SpaceBeforeParens: ControlStatements
175+
SpaceBeforeParensOptions:
176+
AfterControlStatements: true
177+
AfterForeachMacros: true
178+
AfterFunctionDefinitionName: false
179+
AfterFunctionDeclarationName: false
180+
AfterIfMacros: true
181+
AfterOverloadedOperator: false
182+
AfterRequiresInClause: false
183+
AfterRequiresInExpression: false
184+
BeforeNonEmptyParentheses: false
185+
SpaceAroundPointerQualifiers: Default
186+
SpaceBeforeRangeBasedForLoopColon: true
187+
SpaceInEmptyBlock: true
188+
SpaceInEmptyParentheses: false
189+
SpacesBeforeTrailingComments: 1
190+
SpacesInAngles: Never
191+
SpacesInConditionalStatement: false
192+
SpacesInContainerLiterals: true
193+
SpacesInCStyleCastParentheses: false
194+
SpacesInLineCommentPrefix:
195+
Minimum: 1
196+
Maximum: -1
197+
SpacesInParentheses: false
198+
SpacesInSquareBrackets: false
199+
SpaceBeforeSquareBrackets: false
200+
BitFieldColonSpacing: Both
201+
Standard: Latest
202+
StatementAttributeLikeMacros:
203+
- Q_EMIT
204+
StatementMacros:
205+
- Q_UNUSED
206+
- QT_REQUIRE_VERSION
207+
TabWidth: 4
208+
UseCRLF: false
209+
UseTab: Always
210+
WhitespaceSensitiveMacros:
211+
- STRINGIZE
212+
- PP_STRINGIZE
213+
- BOOST_PP_STRINGIZE
214+
- NS_SWIFT_NAME
215+
- CF_SWIFT_NAME
216+
...
217+

0 commit comments

Comments
 (0)