Skip to content

Commit ce3db31

Browse files
committed
✨ feat: updated template files to latest versions
1 parent c0bd188 commit ce3db31

15 files changed

+403
-244
lines changed

.clang-format

Lines changed: 270 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,307 @@
11
---
2-
# BasedOnStyle: WebKit
3-
AccessModifierOffset: -4
4-
AlignAfterOpenBracket: DontAlign
5-
AlignConsecutiveAssignments: false
6-
AlignConsecutiveDeclarations: false
7-
AlignEscapedNewlines: Right
8-
AlignOperands: false
9-
AlignTrailingComments: false
10-
AllowAllParametersOfDeclarationOnNextLine: true
11-
AllowShortBlocksOnASingleLine: false
2+
BasedOnStyle: Chromium
3+
AccessModifierOffset: -1
4+
AlignAfterOpenBracket: Align
5+
AlignArrayOfStructures: None
6+
AlignConsecutiveAssignments:
7+
Enabled: false
8+
AcrossEmptyLines: false
9+
AcrossComments: false
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: Left
62+
AlignOperands: Align
63+
AlignTrailingComments:
64+
Kind: Always
65+
OverEmptyLines: 0
66+
AllowAllArgumentsOnNextLine: true
67+
AllowAllParametersOfDeclarationOnNextLine: false
68+
AllowBreakBeforeNoexceptSpecifier: Never
69+
AllowShortBlocksOnASingleLine: Never
70+
AllowShortCaseExpressionOnASingleLine: true
1271
AllowShortCaseLabelsOnASingleLine: false
13-
AllowShortFunctionsOnASingleLine: All
14-
AllowShortIfStatementsOnASingleLine: false
72+
AllowShortCompoundRequirementOnASingleLine: true
73+
AllowShortEnumsOnASingleLine: true
74+
AllowShortFunctionsOnASingleLine: Inline
75+
AllowShortIfStatementsOnASingleLine: Never
76+
AllowShortLambdasOnASingleLine: All
1577
AllowShortLoopsOnASingleLine: false
1678
AlwaysBreakAfterDefinitionReturnType: None
17-
AlwaysBreakAfterReturnType: None
18-
AlwaysBreakBeforeMultilineStrings: false
19-
AlwaysBreakTemplateDeclarations: No
79+
AlwaysBreakBeforeMultilineStrings: true
80+
AttributeMacros:
81+
- __capability
2082
BinPackArguments: true
21-
BinPackParameters: true
22-
BraceWrapping:
23-
AfterClass: false
24-
AfterControlStatement: false
25-
AfterEnum: false
26-
AfterFunction: true
27-
AfterNamespace: false
83+
BinPackParameters: false
84+
BitFieldColonSpacing: Both
85+
BraceWrapping:
86+
AfterCaseLabel: false
87+
AfterClass: false
88+
AfterControlStatement: Never
89+
AfterEnum: false
90+
AfterFunction: false
91+
AfterNamespace: false
2892
AfterObjCDeclaration: false
29-
AfterStruct: false
30-
AfterUnion: false
31-
BeforeCatch: false
32-
BeforeElse: false
33-
IndentBraces: false
93+
AfterStruct: false
94+
AfterUnion: false
95+
AfterExternBlock: false
96+
BeforeCatch: false
97+
BeforeElse: false
98+
BeforeLambdaBody: false
99+
BeforeWhile: false
100+
IndentBraces: false
34101
SplitEmptyFunction: true
35102
SplitEmptyRecord: true
36103
SplitEmptyNamespace: true
37-
BreakBeforeBinaryOperators: All
38-
BreakBeforeBraces: WebKit
39-
BreakBeforeInheritanceComma: false
40-
BreakBeforeTernaryOperators: true
41-
BreakConstructorInitializersBeforeComma: false
42-
BreakConstructorInitializers: BeforeComma
104+
BreakAdjacentStringLiterals: true
105+
BreakAfterAttributes: Leave
43106
BreakAfterJavaFieldAnnotations: false
107+
BreakAfterReturnType: None
108+
BreakArrays: true
109+
BreakBeforeBinaryOperators: None
110+
BreakBeforeBraces: Attach
111+
BreakBeforeConceptDeclarations: Always
112+
BreakBeforeInlineASMColon: OnlyMultiline
113+
BreakBeforeTernaryOperators: true
114+
BreakConstructorInitializers: BeforeColon
115+
BreakFunctionDefinitionParameters: false
116+
BreakInheritanceList: BeforeColon
44117
BreakStringLiterals: true
45-
ColumnLimit: 0
46-
CommentPragmas: '^ IWYU pragma:'
118+
BreakTemplateDeclarations: Yes
119+
ColumnLimit: 80
120+
CommentPragmas: "^ IWYU pragma:"
47121
CompactNamespaces: false
48-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
49122
ConstructorInitializerIndentWidth: 4
50123
ContinuationIndentWidth: 4
51-
Cpp11BracedListStyle: false
124+
Cpp11BracedListStyle: true
52125
DerivePointerAlignment: false
53-
DisableFormat: false
126+
DisableFormat: false
127+
EmptyLineAfterAccessModifier: Never
128+
EmptyLineBeforeAccessModifier: LogicalBlock
54129
ExperimentalAutoDetectBinPacking: false
55-
FixNamespaceComments: false
56-
ForEachMacros:
130+
FixNamespaceComments: true
131+
ForEachMacros:
57132
- foreach
58133
- Q_FOREACH
59134
- BOOST_FOREACH
135+
IfMacros:
136+
- KJ_IF_MAYBE
137+
IncludeBlocks: Preserve
60138
IncludeCategories:
61-
- Regex: '^"config\.h"'
62-
Priority: -1
63-
# The main header for a source file automatically gets category 0
64-
- Regex: '^<.*SoftLink.h>'
65-
Priority: 4
66-
- Regex: '^".*SoftLink.h"'
67-
Priority: 3
68-
- Regex: '^<.*>'
69-
Priority: 2
70-
- Regex: '.*'
71-
Priority: 1
72-
IncludeIsMainRegex: '(Test)?$'
73-
IndentCaseLabels: false
74-
IndentWidth: 4
139+
- Regex: ^<ext/.*\.h>
140+
Priority: 2
141+
SortPriority: 0
142+
CaseSensitive: false
143+
- Regex: ^<.*\.h>
144+
Priority: 1
145+
SortPriority: 0
146+
CaseSensitive: false
147+
- Regex: ^<.*
148+
Priority: 2
149+
SortPriority: 0
150+
CaseSensitive: false
151+
- Regex: .*
152+
Priority: 3
153+
SortPriority: 0
154+
CaseSensitive: false
155+
IncludeIsMainRegex: ([-_](test|unittest))?$
156+
IncludeIsMainSourceRegex: ""
157+
IndentAccessModifiers: false
158+
IndentCaseBlocks: false
159+
IndentCaseLabels: true
160+
IndentExternBlock: AfterExternBlock
161+
IndentGotoLabels: true
162+
IndentPPDirectives: None
163+
IndentRequiresClause: true
164+
IndentWidth: 4
75165
IndentWrappedFunctionNames: false
166+
InsertBraces: false
167+
InsertNewlineAtEOF: false
168+
InsertTrailingCommas: None
169+
IntegerLiteralSeparator:
170+
Binary: 0
171+
BinaryMinDigits: 0
172+
Decimal: 0
173+
DecimalMinDigits: 0
174+
Hex: 0
175+
HexMinDigits: 0
76176
JavaScriptQuotes: Leave
77177
JavaScriptWrapImports: true
78-
KeepEmptyLinesAtTheStartOfBlocks: true
79-
MacroBlockBegin: ''
80-
MacroBlockEnd: ''
178+
KeepEmptyLines:
179+
AtEndOfFile: false
180+
AtStartOfBlock: false
181+
AtStartOfFile: true
182+
LambdaBodyIndentation: Signature
183+
Language: Cpp
184+
LineEnding: DeriveLF
185+
MacroBlockBegin: ""
186+
MacroBlockEnd: ""
187+
MainIncludeChar: Quote
81188
MaxEmptyLinesToKeep: 1
82189
NamespaceIndentation: None
83-
ObjCBlockIndentWidth: 4
84-
ObjCSpaceAfterProperty: true
190+
ObjCBinPackProtocolList: Never
191+
ObjCBlockIndentWidth: 2
192+
ObjCBreakBeforeNestedBlockParam: true
193+
ObjCSpaceAfterProperty: false
85194
ObjCSpaceBeforeProtocolList: true
195+
PPIndentWidth: -1
196+
PackConstructorInitializers: NextLine
86197
PenaltyBreakAssignment: 2
87-
PenaltyBreakBeforeFirstCallParameter: 19
198+
PenaltyBreakBeforeFirstCallParameter: 1
88199
PenaltyBreakComment: 300
89200
PenaltyBreakFirstLessLess: 120
201+
PenaltyBreakOpenParenthesis: 0
202+
PenaltyBreakScopeResolution: 500
90203
PenaltyBreakString: 1000
204+
PenaltyBreakTemplateDeclaration: 10
91205
PenaltyExcessCharacter: 1000000
92-
PenaltyReturnTypeOnItsOwnLine: 60
206+
PenaltyIndentedWhitespace: 0
207+
PenaltyReturnTypeOnItsOwnLine: 200
93208
PointerAlignment: Left
94-
ReflowComments: true
95-
SortIncludes: true
96-
SortUsingDeclarations: true
209+
QualifierAlignment: Leave
210+
RawStringFormats:
211+
- Language: Cpp
212+
Delimiters:
213+
- cc
214+
- CC
215+
- cpp
216+
- Cpp
217+
- CPP
218+
- c++
219+
- C++
220+
CanonicalDelimiter: ""
221+
BasedOnStyle: google
222+
- Language: TextProto
223+
Delimiters:
224+
- pb
225+
- PB
226+
- proto
227+
- PROTO
228+
EnclosingFunctions:
229+
- EqualsProto
230+
- EquivToProto
231+
- PARSE_PARTIAL_TEXT_PROTO
232+
- PARSE_TEST_PROTO
233+
- PARSE_TEXT_PROTO
234+
- ParseTextOrDie
235+
- ParseTextProtoOrDie
236+
- ParseTestProto
237+
- ParsePartialTestProto
238+
CanonicalDelimiter: pb
239+
BasedOnStyle: google
240+
ReferenceAlignment: Pointer
241+
ReflowComments: true
242+
RemoveBracesLLVM: false
243+
RemoveParentheses: Leave
244+
RemoveSemicolon: false
245+
RequiresClausePosition: OwnLine
246+
RequiresExpressionIndentation: OuterScope
247+
SeparateDefinitionBlocks: Leave
248+
ShortNamespaceLines: 1
249+
SkipMacroDefinitionBody: false
250+
SortIncludes: CaseSensitive
251+
SortJavaStaticImport: Before
252+
SortUsingDeclarations: LexicographicNumeric
97253
SpaceAfterCStyleCast: false
98-
SpaceAfterTemplateKeyword: false
254+
SpaceAfterLogicalNot: false
255+
SpaceAfterTemplateKeyword: true
256+
SpaceAroundPointerQualifiers: Default
99257
SpaceBeforeAssignmentOperators: true
100-
SpaceBeforeCpp11BracedList: true
258+
SpaceBeforeCaseColon: false
259+
SpaceBeforeCpp11BracedList: false
260+
SpaceBeforeCtorInitializerColon: true
261+
SpaceBeforeInheritanceColon: true
262+
SpaceBeforeJsonColon: false
101263
SpaceBeforeParens: ControlStatements
102-
SpaceInEmptyParentheses: false
103-
SpacesBeforeTrailingComments: 1
104-
SpacesInAngles: false
264+
SpaceBeforeParensOptions:
265+
AfterControlStatements: true
266+
AfterForeachMacros: true
267+
AfterFunctionDeclarationName: false
268+
AfterFunctionDefinitionName: false
269+
AfterIfMacros: true
270+
AfterOverloadedOperator: false
271+
AfterPlacementOperator: true
272+
AfterRequiresInClause: false
273+
AfterRequiresInExpression: false
274+
BeforeNonEmptyParentheses: false
275+
SpaceBeforeRangeBasedForLoopColon: true
276+
SpaceBeforeSquareBrackets: false
277+
SpaceInEmptyBlock: false
278+
SpacesBeforeTrailingComments: 2
279+
SpacesInAngles: Never
105280
SpacesInContainerLiterals: true
106-
SpacesInCStyleCastParentheses: false
107-
SpacesInParentheses: false
281+
SpacesInLineCommentPrefix:
282+
Minimum: 1
283+
Maximum: -1
284+
SpacesInParens: Never
285+
SpacesInParensOptions:
286+
ExceptDoubleParentheses: false
287+
InConditionalStatements: false
288+
InCStyleCasts: false
289+
InEmptyParentheses: false
290+
Other: false
108291
SpacesInSquareBrackets: false
109-
Standard: Cpp11
110-
TabWidth: 8
111-
UseTab: Never
112-
---
113-
Language: ObjC
114-
PointerAlignment: Right
115-
...
292+
Standard: Auto
293+
StatementAttributeLikeMacros:
294+
- Q_EMIT
295+
StatementMacros:
296+
- Q_UNUSED
297+
- QT_REQUIRE_VERSION
298+
TabWidth: 8
299+
TableGenBreakInsideDAGArg: DontBreak
300+
UseTab: Never
301+
VerilogBreakBetweenInstancePorts: true
302+
WhitespaceSensitiveMacros:
303+
- BOOST_PP_STRINGIZE
304+
- CF_SWIFT_NAME
305+
- NS_SWIFT_NAME
306+
- PP_STRINGIZE
307+
- STRINGIZE

.github/issue_template/task-template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ assignees: ''
88

99
---
1010

11-
**Time estimate:** XX hours
11+
**Time estimate:** XX hours
1212
**Deadline:** DD.MONTH
1313

1414
**Description of task:** DESCRIPTION
15-

0 commit comments

Comments
 (0)