|
1 |
| ---- |
2 |
| -Language: Cpp |
3 |
| -AccessModifierOffset: -2 |
4 |
| -AlignAfterOpenBracket: Align |
5 |
| -AlignArrayOfStructures: None |
6 |
| -AlignConsecutiveAssignments: |
7 |
| - Enabled: true |
8 |
| - AcrossEmptyLines: true # 跨空行对齐 (如果需要) |
9 |
| - AcrossComments: true # 跨注释行对齐 (如果需要) |
10 |
| - AlignCompound: false # 不对齐复合赋值运算符,因为此处没有 |
11 |
| - AlignFunctionPointers: false #不对齐函数指针 |
12 |
| - PadOperators: true # 在运算符两侧添加空格 |
13 |
| -AlignConsecutiveBitFields: |
14 |
| - Enabled: false |
15 |
| - AcrossEmptyLines: false |
16 |
| - AcrossComments: false |
17 |
| - AlignCompound: false |
18 |
| - AlignFunctionPointers: false |
19 |
| - PadOperators: false |
20 |
| -AlignConsecutiveDeclarations: |
21 |
| - Enabled: false |
22 |
| - AcrossEmptyLines: false |
23 |
| - AcrossComments: false |
24 |
| - AlignCompound: false |
25 |
| - AlignFunctionPointers: false |
26 |
| - PadOperators: false |
27 |
| -AlignConsecutiveMacros: |
28 |
| - Enabled: false |
29 |
| - AcrossEmptyLines: false |
30 |
| - AcrossComments: false |
31 |
| - AlignCompound: false |
32 |
| - AlignFunctionPointers: false |
33 |
| - PadOperators: false |
34 |
| -AlignConsecutiveShortCaseStatements: |
35 |
| - Enabled: false |
36 |
| - AcrossEmptyLines: false |
37 |
| - AcrossComments: false |
38 |
| - AlignCaseArrows: false |
39 |
| - AlignCaseColons: false |
40 |
| -AlignConsecutiveTableGenBreakingDAGArgColons: |
41 |
| - Enabled: false |
42 |
| - AcrossEmptyLines: false |
43 |
| - AcrossComments: false |
44 |
| - AlignCompound: false |
45 |
| - AlignFunctionPointers: false |
46 |
| - PadOperators: false |
47 |
| -AlignConsecutiveTableGenCondOperatorColons: |
48 |
| - Enabled: false |
49 |
| - AcrossEmptyLines: false |
50 |
| - AcrossComments: false |
51 |
| - AlignCompound: false |
52 |
| - AlignFunctionPointers: false |
53 |
| - PadOperators: false |
54 |
| -AlignConsecutiveTableGenDefinitionColons: |
55 |
| - Enabled: false |
56 |
| - AcrossEmptyLines: false |
57 |
| - AcrossComments: false |
58 |
| - AlignCompound: false |
59 |
| - AlignFunctionPointers: false |
60 |
| - PadOperators: false |
61 |
| -AlignEscapedNewlines: Right |
62 |
| -AlignOperands: Align |
63 |
| -AlignTrailingComments: |
64 |
| - Kind: Always |
65 |
| - OverEmptyLines: 0 |
66 |
| -AllowAllArgumentsOnNextLine: true |
| 1 | +# Generated by CLion for QT |
| 2 | +BasedOnStyle: LLVM |
| 3 | + |
| 4 | +AccessModifierOffset: -4 |
| 5 | +AlignAfterOpenBracket: AlwaysBreak |
| 6 | +AlignConsecutiveAssignments: None |
| 7 | +AlignConsecutiveDeclarations: None |
| 8 | +AlignEscapedNewlines: DontAlign |
| 9 | +AlignOperands: Align |
| 10 | +AlignTrailingComments: true |
67 | 11 | AllowAllParametersOfDeclarationOnNextLine: true
|
68 |
| -AllowBreakBeforeNoexceptSpecifier: Never |
69 | 12 | AllowShortBlocksOnASingleLine: Never
|
70 |
| -AllowShortCaseExpressionOnASingleLine: true |
71 | 13 | AllowShortCaseLabelsOnASingleLine: false
|
72 |
| -AllowShortCompoundRequirementOnASingleLine: true |
73 |
| -AllowShortEnumsOnASingleLine: true |
74 |
| -AllowShortFunctionsOnASingleLine: All |
| 14 | +AllowShortFunctionsOnASingleLine: Inline |
75 | 15 | AllowShortIfStatementsOnASingleLine: Never
|
76 |
| -AllowShortLambdasOnASingleLine: All |
77 | 16 | AllowShortLoopsOnASingleLine: false
|
78 |
| -AlwaysBreakAfterDefinitionReturnType: None |
| 17 | +AlwaysBreakAfterReturnType: None |
79 | 18 | AlwaysBreakBeforeMultilineStrings: false
|
80 |
| -AttributeMacros: |
81 |
| - - __capability |
82 |
| -BinPackArguments: true |
83 |
| -BinPackParameters: true |
84 |
| -BitFieldColonSpacing: Both |
| 19 | +AlwaysBreakTemplateDeclarations: Yes |
| 20 | +BinPackArguments: false |
| 21 | +BinPackParameters: false |
85 | 22 | BraceWrapping:
|
86 |
| - AfterCaseLabel: false |
87 |
| - AfterClass: false |
| 23 | + AfterClass: true |
88 | 24 | AfterControlStatement: Never
|
89 |
| - AfterEnum: false |
90 |
| - AfterExternBlock: false |
91 |
| - AfterFunction: false |
92 |
| - AfterNamespace: false |
| 25 | + AfterEnum: false |
| 26 | + AfterFunction: true |
| 27 | + AfterNamespace: false |
93 | 28 | AfterObjCDeclaration: false
|
94 |
| - AfterStruct: false |
95 |
| - AfterUnion: false |
96 |
| - BeforeCatch: false |
97 |
| - BeforeElse: false |
98 |
| - BeforeLambdaBody: false |
99 |
| - BeforeWhile: false |
100 |
| - IndentBraces: false |
101 |
| - SplitEmptyFunction: true |
102 |
| - SplitEmptyRecord: true |
103 |
| - SplitEmptyNamespace: true |
104 |
| -BreakAdjacentStringLiterals: true |
105 |
| -BreakAfterAttributes: Leave |
106 |
| -BreakAfterJavaFieldAnnotations: false |
107 |
| -BreakAfterReturnType: None |
108 |
| -BreakArrays: true |
109 |
| -BreakBeforeBinaryOperators: None |
110 |
| -BreakBeforeConceptDeclarations: Always |
111 |
| -BreakBeforeBraces: Attach |
112 |
| -BreakBeforeInlineASMColon: OnlyMultiline |
| 29 | + AfterStruct: true |
| 30 | + AfterUnion: false |
| 31 | + BeforeCatch: false |
| 32 | + BeforeElse: false |
| 33 | + IndentBraces: false |
| 34 | + SplitEmptyFunction: false |
| 35 | + SplitEmptyRecord: false |
| 36 | + SplitEmptyNamespace: false |
| 37 | +BreakBeforeBinaryOperators: All |
| 38 | +BreakBeforeBraces: Custom |
| 39 | +BreakBeforeInheritanceComma: false |
113 | 40 | BreakBeforeTernaryOperators: true
|
114 |
| -BreakConstructorInitializers: BeforeColon |
115 |
| -BreakFunctionDefinitionParameters: false |
116 |
| -BreakInheritanceList: BeforeColon |
| 41 | +BreakConstructorInitializersBeforeComma: false |
| 42 | +BreakConstructorInitializers: BeforeComma |
| 43 | +BreakAfterJavaFieldAnnotations: false |
117 | 44 | BreakStringLiterals: true
|
118 |
| -BreakTemplateDeclarations: MultiLine |
119 |
| -ColumnLimit: 80 |
120 |
| -CommentPragmas: '^ IWYU pragma:' |
| 45 | +ColumnLimit: 100 |
| 46 | +CommentPragmas: '^ IWYU pragma:' |
121 | 47 | CompactNamespaces: false
|
| 48 | +ConstructorInitializerAllOnOneLineOrOnePerLine: false |
122 | 49 | ConstructorInitializerIndentWidth: 4
|
123 | 50 | ContinuationIndentWidth: 4
|
124 | 51 | Cpp11BracedListStyle: true
|
125 | 52 | DerivePointerAlignment: false
|
126 |
| -DisableFormat: false |
127 |
| -EmptyLineAfterAccessModifier: Never |
128 |
| -EmptyLineBeforeAccessModifier: LogicalBlock |
| 53 | +DisableFormat: false |
129 | 54 | ExperimentalAutoDetectBinPacking: false
|
130 | 55 | FixNamespaceComments: true
|
131 | 56 | ForEachMacros:
|
| 57 | + - forever # avoids { wrapped to next line |
132 | 58 | - foreach
|
133 | 59 | - Q_FOREACH
|
134 | 60 | - BOOST_FOREACH
|
135 |
| -IfMacros: |
136 |
| - - KJ_IF_MAYBE |
137 |
| -IncludeBlocks: Preserve |
138 | 61 | IncludeCategories:
|
139 |
| - - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
140 |
| - Priority: 2 |
141 |
| - SortPriority: 0 |
142 |
| - CaseSensitive: false |
143 |
| - - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
144 |
| - Priority: 3 |
145 |
| - SortPriority: 0 |
146 |
| - CaseSensitive: false |
147 |
| - - Regex: '.*' |
148 |
| - Priority: 1 |
149 |
| - SortPriority: 0 |
150 |
| - CaseSensitive: false |
| 62 | + - Regex: '^<Q.*' |
| 63 | + Priority: 200 |
151 | 64 | IncludeIsMainRegex: '(Test)?$'
|
152 |
| -IncludeIsMainSourceRegex: '' |
153 |
| -IndentAccessModifiers: false |
154 |
| -IndentCaseBlocks: false |
155 | 65 | IndentCaseLabels: false
|
156 |
| -IndentExternBlock: AfterExternBlock |
157 |
| -IndentGotoLabels: true |
158 |
| -IndentPPDirectives: None |
159 |
| -IndentRequiresClause: true |
160 |
| -IndentWidth: 2 |
| 66 | +IndentWidth: 4 |
161 | 67 | IndentWrappedFunctionNames: false
|
162 |
| -InsertBraces: false |
163 |
| -InsertNewlineAtEOF: false |
164 |
| -InsertTrailingCommas: None |
165 |
| -IntegerLiteralSeparator: |
166 |
| - Binary: 0 |
167 |
| - BinaryMinDigits: 0 |
168 |
| - Decimal: 0 |
169 |
| - DecimalMinDigits: 0 |
170 |
| - Hex: 0 |
171 |
| - HexMinDigits: 0 |
| 68 | +InsertBraces: false |
172 | 69 | JavaScriptQuotes: Leave
|
173 | 70 | JavaScriptWrapImports: true
|
174 |
| -KeepEmptyLines: |
175 |
| - AtEndOfFile: false |
176 |
| - AtStartOfBlock: true |
177 |
| - AtStartOfFile: true |
178 |
| -LambdaBodyIndentation: Signature |
179 |
| -LineEnding: DeriveLF |
180 |
| -MacroBlockBegin: '' |
181 |
| -MacroBlockEnd: '' |
182 |
| -MainIncludeChar: Quote |
| 71 | +KeepEmptyLinesAtTheStartOfBlocks: false |
| 72 | +# Do not add QT_BEGIN_NAMESPACE/QT_END_NAMESPACE as this will indent lines in between. |
| 73 | +MacroBlockBegin: "" |
| 74 | +MacroBlockEnd: "" |
183 | 75 | MaxEmptyLinesToKeep: 1
|
184 | 76 | NamespaceIndentation: None
|
185 |
| -ObjCBinPackProtocolList: Auto |
186 |
| -ObjCBlockIndentWidth: 2 |
187 |
| -ObjCBreakBeforeNestedBlockParam: true |
| 77 | +ObjCBlockIndentWidth: 4 |
188 | 78 | ObjCSpaceAfterProperty: false
|
189 | 79 | ObjCSpaceBeforeProtocolList: true
|
190 |
| -PackConstructorInitializers: BinPack |
191 |
| -PenaltyBreakAssignment: 2 |
192 |
| -PenaltyBreakBeforeFirstCallParameter: 19 |
193 |
| -PenaltyBreakComment: 300 |
194 |
| -PenaltyBreakFirstLessLess: 120 |
195 |
| -PenaltyBreakOpenParenthesis: 0 |
196 |
| -PenaltyBreakScopeResolution: 500 |
197 |
| -PenaltyBreakString: 1000 |
198 |
| -PenaltyBreakTemplateDeclaration: 10 |
199 |
| -PenaltyExcessCharacter: 1000000 |
200 |
| -PenaltyIndentedWhitespace: 0 |
201 |
| -PenaltyReturnTypeOnItsOwnLine: 60 |
| 80 | +PenaltyBreakAssignment: 88 |
| 81 | +PenaltyBreakBeforeFirstCallParameter: 300 |
| 82 | +PenaltyBreakComment: 500 |
| 83 | +PenaltyBreakFirstLessLess: 400 |
| 84 | +PenaltyBreakString: 600 |
| 85 | +PenaltyExcessCharacter: 50 |
| 86 | +PenaltyReturnTypeOnItsOwnLine: 300 |
202 | 87 | PointerAlignment: Right
|
203 |
| -PPIndentWidth: -1 |
204 |
| -QualifierAlignment: Leave |
205 |
| -ReferenceAlignment: Pointer |
206 |
| -ReflowComments: true |
207 |
| -RemoveBracesLLVM: false |
208 |
| -RemoveParentheses: Leave |
209 |
| -RemoveSemicolon: false |
210 |
| -RequiresClausePosition: OwnLine |
211 |
| -RequiresExpressionIndentation: OuterScope |
212 |
| -SeparateDefinitionBlocks: Leave |
213 |
| -ShortNamespaceLines: 1 |
214 |
| -SkipMacroDefinitionBody: false |
215 |
| -SortIncludes: CaseSensitive |
216 |
| -SortJavaStaticImport: Before |
217 |
| -SortUsingDeclarations: LexicographicNumeric |
218 |
| -SpaceAfterCStyleCast: false |
219 |
| -SpaceAfterLogicalNot: false |
220 |
| -SpaceAfterTemplateKeyword: true |
221 |
| -SpaceAroundPointerQualifiers: Default |
| 88 | +ReflowComments: false |
| 89 | +SortIncludes: CaseSensitive |
| 90 | +SortUsingDeclarations: true |
| 91 | +SpaceAfterCStyleCast: true |
| 92 | +SpaceAfterTemplateKeyword: false |
222 | 93 | SpaceBeforeAssignmentOperators: true
|
223 |
| -SpaceBeforeCaseColon: false |
224 |
| -SpaceBeforeCpp11BracedList: false |
225 |
| -SpaceBeforeCtorInitializerColon: true |
226 |
| -SpaceBeforeInheritanceColon: true |
227 |
| -SpaceBeforeJsonColon: false |
228 | 94 | SpaceBeforeParens: ControlStatements
|
229 |
| -SpaceBeforeParensOptions: |
230 |
| - AfterControlStatements: true |
231 |
| - AfterForeachMacros: true |
232 |
| - AfterFunctionDefinitionName: false |
233 |
| - AfterFunctionDeclarationName: false |
234 |
| - AfterIfMacros: true |
235 |
| - AfterOverloadedOperator: false |
236 |
| - AfterPlacementOperator: true |
237 |
| - AfterRequiresInClause: false |
238 |
| - AfterRequiresInExpression: false |
239 |
| - BeforeNonEmptyParentheses: false |
240 |
| -SpaceBeforeRangeBasedForLoopColon: true |
241 |
| -SpaceBeforeSquareBrackets: false |
242 |
| -SpaceInEmptyBlock: false |
| 95 | +SpaceInEmptyParentheses: false |
243 | 96 | SpacesBeforeTrailingComments: 1
|
244 |
| -SpacesInAngles: Never |
245 |
| -SpacesInContainerLiterals: true |
246 |
| -SpacesInLineCommentPrefix: |
247 |
| - Minimum: 1 |
248 |
| - Maximum: -1 |
249 |
| -SpacesInParens: Never |
250 |
| -SpacesInParensOptions: |
251 |
| - ExceptDoubleParentheses: false |
252 |
| - InCStyleCasts: false |
253 |
| - InConditionalStatements: false |
254 |
| - InEmptyParentheses: false |
255 |
| - Other: false |
| 97 | +SpacesInAngles: Never |
| 98 | +SpacesInContainerLiterals: false |
| 99 | +SpacesInCStyleCastParentheses: false |
| 100 | +SpacesInParentheses: false |
256 | 101 | SpacesInSquareBrackets: false
|
257 |
| -Standard: Latest |
258 |
| -StatementAttributeLikeMacros: |
259 |
| - - Q_EMIT |
260 |
| -StatementMacros: |
261 |
| - - Q_UNUSED |
262 |
| - - QT_REQUIRE_VERSION |
263 |
| -TableGenBreakInsideDAGArg: DontBreak |
264 |
| -TabWidth: 8 |
265 |
| -UseTab: Never |
266 |
| -VerilogBreakBetweenInstancePorts: true |
267 |
| -WhitespaceSensitiveMacros: |
268 |
| - - BOOST_PP_STRINGIZE |
269 |
| - - CF_SWIFT_NAME |
270 |
| - - NS_SWIFT_NAME |
271 |
| - - PP_STRINGIZE |
272 |
| - - STRINGIZE |
273 |
| -... |
274 |
| - |
| 102 | +Standard: c++17 |
| 103 | +TabWidth: 4 |
| 104 | +UseTab: Never |
0 commit comments