Skip to content

Commit 607faeb

Browse files
authored
Initial commit
0 parents  commit 607faeb

File tree

15 files changed

+689
-0
lines changed

15 files changed

+689
-0
lines changed

.clang-format

Lines changed: 308 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,308 @@
1+
---
2+
BasedOnStyle: Chromium
3+
AccessModifierOffset: "-2"
4+
AlignAfterOpenBracket: Align
5+
AlignArrayOfStructures: Right
6+
AlignConsecutiveAssignments:
7+
Enabled: true
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: true
29+
AcrossEmptyLines: false
30+
AcrossComments: false
31+
AlignCompound: false
32+
AlignFunctionPointers: false
33+
PadOperators: true
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: false
67+
AllowAllParametersOfDeclarationOnNextLine: false
68+
AllowBreakBeforeNoexceptSpecifier: Never
69+
AllowShortBlocksOnASingleLine: true
70+
AllowShortCaseExpressionOnASingleLine: true
71+
AllowShortCaseLabelsOnASingleLine: true
72+
AllowShortCompoundRequirementOnASingleLine: true
73+
AllowShortEnumsOnASingleLine: true
74+
AllowShortFunctionsOnASingleLine: Inline
75+
AllowShortIfStatementsOnASingleLine: Never
76+
AllowShortLambdasOnASingleLine: All
77+
AllowShortLoopsOnASingleLine: false
78+
AlwaysBreakAfterDefinitionReturnType: None
79+
AlwaysBreakBeforeMultilineStrings: true
80+
AttributeMacros:
81+
- __capability
82+
BinPackArguments: 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
92+
AfterObjCDeclaration: 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
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+
BreakBeforeBraces: Attach
111+
BreakBeforeConceptDeclarations: Always
112+
BreakBeforeInlineASMColon: OnlyMultiline
113+
BreakBeforeTernaryOperators: true
114+
BreakConstructorInitializers: BeforeComma
115+
BreakFunctionDefinitionParameters: false
116+
BreakInheritanceList: BeforeComma
117+
BreakStringLiterals: true
118+
BreakTemplateDeclarations: Yes
119+
ColumnLimit: 100
120+
CommentPragmas: "^ IWYU pragma:"
121+
CompactNamespaces: false
122+
ConstructorInitializerIndentWidth: 4
123+
ContinuationIndentWidth: 4
124+
Cpp11BracedListStyle: true
125+
DerivePointerAlignment: false
126+
DisableFormat: false
127+
EmptyLineAfterAccessModifier: Never
128+
EmptyLineBeforeAccessModifier: LogicalBlock
129+
ExperimentalAutoDetectBinPacking: false
130+
FixNamespaceComments: true
131+
ForEachMacros:
132+
- foreach
133+
- Q_FOREACH
134+
- BOOST_FOREACH
135+
IfMacros:
136+
- KJ_IF_MAYBE
137+
IncludeBlocks: Preserve
138+
IncludeCategories:
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: AfterHash
163+
IndentRequiresClause: true
164+
IndentWidth: 2
165+
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
176+
JavaScriptQuotes: Leave
177+
JavaScriptWrapImports: true
178+
KeepEmptyLines:
179+
AtEndOfFile: false
180+
AtStartOfBlock: false
181+
AtStartOfFile: true
182+
LambdaBodyIndentation: Signature
183+
LineEnding: DeriveLF
184+
MacroBlockBegin: ""
185+
MacroBlockEnd: ""
186+
MainIncludeChar: Quote
187+
MaxEmptyLinesToKeep: 1
188+
NamespaceIndentation: None
189+
ObjCBinPackProtocolList: Never
190+
ObjCBlockIndentWidth: 2
191+
ObjCBreakBeforeNestedBlockParam: true
192+
ObjCSpaceAfterProperty: false
193+
ObjCSpaceBeforeProtocolList: true
194+
PPIndentWidth: -1
195+
PackConstructorInitializers: NextLine
196+
PenaltyBreakAssignment: 2
197+
PenaltyBreakBeforeFirstCallParameter: 1
198+
PenaltyBreakComment: 300
199+
PenaltyBreakFirstLessLess: 120
200+
PenaltyBreakOpenParenthesis: 0
201+
PenaltyBreakScopeResolution: 500
202+
PenaltyBreakString: 1000
203+
PenaltyBreakTemplateDeclaration: 10
204+
PenaltyExcessCharacter: 1000000
205+
PenaltyIndentedWhitespace: 0
206+
PenaltyReturnTypeOnItsOwnLine: 200
207+
PointerAlignment: Left
208+
QualifierAlignment: Leave
209+
RawStringFormats:
210+
- Language: Cpp
211+
Delimiters:
212+
- cc
213+
- CC
214+
- cpp
215+
- Cpp
216+
- CPP
217+
- c++
218+
- C++
219+
CanonicalDelimiter: ""
220+
BasedOnStyle: google
221+
- Language: TextProto
222+
Delimiters:
223+
- pb
224+
- PB
225+
- proto
226+
- PROTO
227+
EnclosingFunctions:
228+
- EqualsProto
229+
- EquivToProto
230+
- PARSE_PARTIAL_TEXT_PROTO
231+
- PARSE_TEST_PROTO
232+
- PARSE_TEXT_PROTO
233+
- ParseTextOrDie
234+
- ParseTextProtoOrDie
235+
- ParseTestProto
236+
- ParsePartialTestProto
237+
CanonicalDelimiter: pb
238+
BasedOnStyle: google
239+
ReferenceAlignment: Pointer
240+
ReflowComments: true
241+
RemoveBracesLLVM: false
242+
RemoveParentheses: Leave
243+
RemoveSemicolon: false
244+
RequiresClausePosition: OwnLine
245+
RequiresExpressionIndentation: OuterScope
246+
SeparateDefinitionBlocks: Leave
247+
ShortNamespaceLines: 1
248+
SkipMacroDefinitionBody: false
249+
SortIncludes: false
250+
SortJavaStaticImport: Before
251+
SortUsingDeclarations: true
252+
SpaceAfterCStyleCast: false
253+
SpaceAfterLogicalNot: false
254+
SpaceAfterTemplateKeyword: true
255+
SpaceAroundPointerQualifiers: Default
256+
SpaceBeforeAssignmentOperators: true
257+
SpaceBeforeCaseColon: false
258+
SpaceBeforeCpp11BracedList: false
259+
SpaceBeforeCtorInitializerColon: true
260+
SpaceBeforeInheritanceColon: true
261+
SpaceBeforeJsonColon: false
262+
SpaceBeforeParens: ControlStatements
263+
SpaceBeforeParensOptions:
264+
AfterControlStatements: true
265+
AfterForeachMacros: true
266+
AfterFunctionDeclarationName: false
267+
AfterFunctionDefinitionName: false
268+
AfterIfMacros: true
269+
AfterOverloadedOperator: false
270+
AfterPlacementOperator: true
271+
AfterRequiresInClause: false
272+
AfterRequiresInExpression: false
273+
BeforeNonEmptyParentheses: false
274+
SpaceBeforeRangeBasedForLoopColon: true
275+
SpaceBeforeSquareBrackets: false
276+
SpaceInEmptyBlock: false
277+
SpacesBeforeTrailingComments: 2
278+
SpacesInAngles: Never
279+
SpacesInContainerLiterals: true
280+
SpacesInLineCommentPrefix:
281+
Minimum: 1
282+
Maximum: -1
283+
SpacesInParens: Never
284+
SpacesInParensOptions:
285+
ExceptDoubleParentheses: false
286+
InConditionalStatements: false
287+
InCStyleCasts: false
288+
InEmptyParentheses: false
289+
Other: false
290+
SpacesInSquareBrackets: false
291+
Standard: Auto
292+
StatementAttributeLikeMacros:
293+
- Q_EMIT
294+
StatementMacros:
295+
- Q_UNUSED
296+
- QT_REQUIRE_VERSION
297+
TabWidth: 8
298+
TableGenBreakInsideDAGArg: DontBreak
299+
UseTab: Never
300+
VerilogBreakBetweenInstancePorts: true
301+
WhitespaceSensitiveMacros:
302+
- BOOST_PP_STRINGIZE
303+
- CF_SWIFT_NAME
304+
- NS_SWIFT_NAME
305+
- PP_STRINGIZE
306+
- STRINGIZE
307+
AllowAllConstructorInitializersOnNextLine: false
308+
ConstructorInitializerAllOnOneLineOrOnePerLine: true

.clang-tidy

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
Checks: "*,
3+
-abseil-*,
4+
-altera-*,
5+
-android-*,
6+
-fuchsia-*,
7+
-google-*,
8+
-llvm*,
9+
-modernize-use-trailing-return-type,
10+
-zircon-*,
11+
-readability-else-after-return,
12+
-readability-static-accessed-through-instance,
13+
-readability-avoid-const-params-in-decls,
14+
-cppcoreguidelines-non-private-member-variables-in-classes,
15+
-misc-non-private-member-variables-in-classes,
16+
-hicpp-named-parameter,
17+
-clang-diagnostic-unknown-attributes,
18+
-readability-named-parameter,
19+
-*-avoid-c-arrays,
20+
-*-magic-numbers,
21+
-*-avoid-do-while,
22+
-*-union-access,
23+
-readability-avoid-nested-conditional-operator,
24+
-readability-identifier-length,
25+
-modernize-use-designated-initializers,
26+
-misc-include-cleaner,
27+
-misc-use-internal-linkage,
28+
-cppcoreguidelines-noexcept-move-operations,
29+
-hicpp-noexcept-move,
30+
-performance-noexcept-move-constructor
31+
"
32+
WarningsAsErrors: ''
33+
HeaderFilterRegex: ''
34+
FormatStyle: none

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Rules in this file were initially inferred by Visual Studio IntelliCode from the Y:\che\palliate codebase based on best match to current usage at 16/01/2022
2+
# You can modify the rules from these initially generated values to suit your own policies
3+
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
4+
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
indent_size = 2
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.py]
14+
indent_style = space
15+
indent_size = 4
16+
charset = utf-8
17+
end_of_line = lf

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.h linguist-language=C++
2+
3+
* text=auto eol=lf

.github/workflows/meta-update.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Trigger Meta Update
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
trigger:
11+
uses: rsl-org/rsl/.github/workflows/trigger-update.yml@master
12+
secrets: inherit

0 commit comments

Comments
 (0)