Skip to content

Commit 02bb160

Browse files
authored
Merge pull request #153 from OpenBrickProtocolFoundation/feat/0.5.6
Version 0.5.6
2 parents ecc8144 + 6ebb050 commit 02bb160

File tree

198 files changed

+9012
-3880
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+9012
-3880
lines changed

.clang-tidy

Lines changed: 162 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -1,188 +1,168 @@
11
# taken from https://github.com/cpp-linter/cpp-linter-action/blob/main/demo/.clang-tidy
22
---
3-
Checks: "clang-diagnostic-*,clang-analyzer-*,bugprone-*,misc-*,performance-*,readability-*,portability-*,modernize-*,cppcoreguidelines-*,-modernize-use-trailing-return-type,-readability-named-parameter,-readability-identifier-length,-misc-include-cleaner,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-misc-non-private-member-variables-in-classes,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-special-member-functions"
3+
Checks: "clang-diagnostic-*,clang-analyzer-*,bugprone-*,misc-*,performance-*,readability-*,portability-*,modernize-*,cppcoreguidelines-*,google-*,llvm-*,cert-*,-modernize-use-trailing-return-type,-bugprone-argument-comment,-misc-include-cleaner,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-readability-avoid-nested-conditional-operator,-llvm-namespace-comment,-llvm-header-guard"
44
WarningsAsErrors: ""
55
HeaderFilterRegex: "oopetris/src/.*"
6-
AnalyzeTemporaryDtors: false
76
FormatStyle: "file"
87
CheckOptions:
9-
- key: bugprone-argument-comment.CommentBoolLiterals
10-
value: "0"
11-
- key: bugprone-argument-comment.CommentCharacterLiterals
12-
value: "0"
13-
- key: bugprone-argument-comment.CommentFloatLiterals
14-
value: "0"
15-
- key: bugprone-argument-comment.CommentIntegerLiterals
16-
value: "0"
17-
- key: bugprone-argument-comment.CommentNullPtrs
18-
value: "0"
19-
- key: bugprone-argument-comment.CommentStringLiterals
20-
value: "0"
21-
- key: bugprone-argument-comment.CommentUserDefinedLiterals
22-
value: "0"
23-
- key: bugprone-argument-comment.IgnoreSingleArgument
24-
value: "0"
25-
- key: bugprone-argument-comment.StrictMode
26-
value: "0"
27-
- key: bugprone-assert-side-effect.AssertMacros
28-
value: assert
29-
- key: bugprone-assert-side-effect.CheckFunctionCalls
30-
value: "0"
31-
- key: bugprone-dangling-handle.HandleClasses
32-
value: "std::basic_string_view;std::experimental::basic_string_view"
33-
- key: bugprone-dynamic-static-initializers.HeaderFileExtensions
34-
value: ",h,hh,hpp,hxx"
35-
- key: bugprone-exception-escape.FunctionsThatShouldNotThrow
36-
value: ""
37-
- key: bugprone-exception-escape.IgnoredExceptions
38-
value: ""
39-
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
40-
value: "0"
41-
- key: bugprone-not-null-terminated-result.WantToUseSafeFunctions
42-
value: "1"
43-
- key: bugprone-signed-char-misuse.CharTypdefsToIgnore
44-
value: ""
45-
- key: bugprone-sizeof-expression.WarnOnSizeOfCompareToConstant
46-
value: "1"
47-
- key: bugprone-sizeof-expression.WarnOnSizeOfConstant
48-
value: "1"
49-
- key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression
50-
value: "0"
51-
- key: bugprone-sizeof-expression.WarnOnSizeOfThis
52-
value: "1"
53-
- key: bugprone-string-constructor.LargeLengthThreshold
54-
value: "8388608"
55-
- key: bugprone-string-constructor.WarnOnLargeLength
56-
value: "1"
57-
- key: bugprone-suspicious-enum-usage.StrictMode
58-
value: "0"
59-
- key: bugprone-suspicious-missing-comma.MaxConcatenatedTokens
60-
value: "5"
61-
- key: bugprone-suspicious-missing-comma.RatioThreshold
62-
value: "0.200000"
63-
- key: bugprone-suspicious-missing-comma.SizeThreshold
64-
value: "5"
65-
- key: bugprone-suspicious-string-compare.StringCompareLikeFunctions
66-
value: ""
67-
- key: bugprone-suspicious-string-compare.WarnOnImplicitComparison
68-
value: "1"
69-
- key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
70-
value: "0"
71-
- key: bugprone-too-small-loop-variable.MagnitudeBitsUpperLimit
72-
value: "16"
73-
- key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField
74-
value: "1"
75-
- key: bugprone-unused-return-value.CheckedFunctions
76-
value: "::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::release;::std::basic_string::empty;::std::vector::empty"
77-
- key: cert-dcl16-c.NewSuffixes
78-
value: "L;LL;LU;LLU"
79-
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
80-
value: "0"
81-
- key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors
82-
value: "1"
83-
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
84-
value: "1"
85-
- key: google-readability-braces-around-statements.ShortStatementLines
86-
value: "1"
87-
- key: google-readability-function-size.StatementThreshold
88-
value: "800"
89-
- key: google-readability-namespace-comments.ShortNamespaceLines
90-
value: "10"
91-
- key: google-readability-namespace-comments.SpacesBeforeComments
92-
value: "2"
93-
- key: misc-definitions-in-headers.HeaderFileExtensions
94-
value: ",h,hh,hpp,hxx"
95-
- key: misc-definitions-in-headers.UseHeaderFileExtension
96-
value: "1"
97-
- key: misc-throw-by-value-catch-by-reference.CheckThrowTemporaries
98-
value: "1"
99-
- key: misc-unused-parameters.StrictMode
100-
value: "0"
101-
- key: modernize-loop-convert.MaxCopySize
102-
value: "16"
103-
- key: modernize-loop-convert.MinConfidence
104-
value: reasonable
105-
- key: modernize-use-trailing-return-type
106-
value: "false"
107-
- key: modernize-loop-convert.NamingStyle
108-
value: CamelCase
109-
- key: modernize-pass-by-value.IncludeStyle
110-
value: llvm
111-
- key: modernize-replace-auto-ptr.IncludeStyle
112-
value: llvm
113-
- key: modernize-use-nullptr.NullMacros
114-
value: "NULL"
115-
- key: performance-faster-string-find.StringLikeClasses
116-
value: "std::basic_string"
117-
- key: performance-for-range-copy.AllowedTypes
118-
value: ""
119-
- key: performance-for-range-copy.WarnOnAllAutoCopies
120-
value: "0"
121-
- key: performance-inefficient-string-concatenation.StrictMode
122-
value: "0"
123-
- key: performance-inefficient-vector-operation.EnableProto
124-
value: "0"
125-
- key: performance-inefficient-vector-operation.VectorLikeClasses
126-
value: "::std::vector"
127-
- key: performance-move-const-arg.CheckTriviallyCopyableMove
128-
value: "1"
129-
- key: performance-move-constructor-init.IncludeStyle
130-
value: llvm
131-
- key: performance-no-automatic-move.AllowedTypes
132-
value: ""
133-
- key: performance-type-promotion-in-math-fn.IncludeStyle
134-
value: llvm
135-
- key: performance-unnecessary-copy-initialization.AllowedTypes
136-
value: ""
137-
- key: performance-unnecessary-value-param.AllowedTypes
138-
value: ""
139-
- key: performance-unnecessary-value-param.IncludeStyle
140-
value: llvm
141-
- key: readability-braces-around-statements.ShortStatementLines
142-
value: "0"
143-
- key: readability-else-after-return.WarnOnUnfixable
144-
value: "1"
145-
- key: readability-function-size.BranchThreshold
146-
value: "4294967295"
147-
- key: readability-function-size.LineThreshold
148-
value: "4294967295"
149-
- key: readability-function-size.NestingThreshold
150-
value: "4294967295"
151-
- key: readability-function-size.ParameterThreshold
152-
value: "4294967295"
153-
- key: readability-function-size.StatementThreshold
154-
value: "800"
155-
- key: readability-function-size.VariableThreshold
156-
value: "4294967295"
157-
- key: readability-identifier-naming.IgnoreFailedSplit
158-
value: "0"
159-
- key: readability-implicit-bool-conversion.AllowIntegerConditions
160-
value: "0"
161-
- key: readability-implicit-bool-conversion.AllowPointerConditions
162-
value: "0"
163-
- key: readability-inconsistent-declaration-parameter-name.IgnoreMacros
164-
value: "1"
165-
- key: readability-inconsistent-declaration-parameter-name.Strict
166-
value: "0"
167-
- key: readability-magic-numbers.IgnoredFloatingPointValues
168-
value: "1.0;100.0;"
169-
- key: readability-magic-numbers.IgnoredIntegerValues
170-
value: "1;2;3;4;"
171-
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
172-
value: "0"
173-
- key: readability-redundant-smartptr-get.IgnoreMacros
174-
value: "1"
175-
- key: readability-redundant-string-init.StringNames
176-
value: "::std::basic_string"
177-
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
178-
value: "0"
179-
- key: readability-simplify-boolean-expr.ChainedConditionalReturn
180-
value: "0"
181-
- key: readability-simplify-subscript-expr.Types
182-
value: "::std::basic_string;::std::basic_string_view;::std::vector;::std::array"
183-
- key: readability-static-accessed-through-instance.NameSpecifierNestingThreshold
184-
value: "3"
185-
- key: readability-uppercase-literal-suffix.IgnoreMacros
186-
value: "1"
187-
- key: readability-uppercase-literal-suffix.NewSuffixes
188-
value: ""
8+
## NAMING CONVENTION SECTION
9+
- key: readability-identifier-naming.AbstractClassCase
10+
value: "CamelCase"
11+
- key: readability-identifier-naming.AggressiveDependentMemberLookup
12+
value: true
13+
- key: readability-identifier-naming.CheckAnonFieldInParent
14+
value: false
15+
- key: readability-identifier-naming.ClassCase
16+
value: "CamelCase"
17+
- key: readability-identifier-naming.ClassConstantCase
18+
value: "lower_case"
19+
- key: readability-identifier-naming.ClassConstantPrefix
20+
value: "c_"
21+
- key: readability-identifier-naming.ClassMemberCase
22+
value: "lower_case"
23+
- key: readability-identifier-naming.ClassMemberPrefix
24+
value: "m_"
25+
- key: readability-identifier-naming.ClassMethodCase
26+
value: "lower_case"
27+
- key: readability-identifier-naming.ConceptCase
28+
value: "CamelCase"
29+
- key: readability-identifier-naming.ConstantCase
30+
value: "lower_case"
31+
- key: readability-identifier-naming.ConstantMemberCase
32+
value: "lower_case"
33+
- key: readability-identifier-naming.ConstantParameterCase
34+
value: "lower_case"
35+
- key: readability-identifier-naming.ConstantPointerParameterCase
36+
value: "lower_case"
37+
- key: readability-identifier-naming.ConstexprFunctionCase
38+
value: "lower_case"
39+
- key: readability-identifier-naming.ConstexprMethodCase
40+
value: "lower_case"
41+
- key: readability-identifier-naming.ConstexprVariableCase
42+
value: "lower_case"
43+
- key: readability-identifier-naming.EnumCase
44+
value: "CamelCase"
45+
- key: readability-identifier-naming.EnumConstantCase
46+
value: "CamelCase"
47+
- key: readability-identifier-naming.FunctionCase
48+
value: "lower_case"
49+
- key: readability-identifier-naming.GlobalConstantCase
50+
value: "lower_case"
51+
- key: readability-identifier-naming.GlobalConstantPointerCase
52+
value: "lower_case"
53+
- key: readability-identifier-naming.GlobalFunctionCase
54+
value: "lower_case"
55+
- key: readability-identifier-naming.GlobalFunctionIgnoredRegexp
56+
value: "(PrintTo)" ## for gtest
57+
- key: readability-identifier-naming.GlobalPointerCase
58+
value: "lower_case"
59+
- key: readability-identifier-naming.GlobalVariableCase
60+
value: "lower_case"
61+
- key: readability-identifier-naming.GlobalVariablePrefix
62+
value: "g_"
63+
- key: readability-identifier-naming.LocalConstantCase
64+
value: "lower_case"
65+
- key: readability-identifier-naming.LocalConstantPointerCase
66+
value: "lower_case"
67+
- key: readability-identifier-naming.LocalPointerCase
68+
value: "lower_case"
69+
- key: readability-identifier-naming.LocalVariableCase
70+
value: "lower_case"
71+
- key: readability-identifier-naming.MacroDefinitionCase
72+
value: "UPPER_CASE"
73+
- key: readability-identifier-naming.MemberCase
74+
value: "lower_case"
75+
- key: readability-identifier-naming.MemberPrefix
76+
value: "m_"
77+
- key: readability-identifier-naming.MethodCase
78+
value: "lower_case"
79+
- key: readability-identifier-naming.NamespaceCase
80+
value: "lower_case"
81+
- key: readability-identifier-naming.ParameterCase
82+
value: "lower_case"
83+
- key: readability-identifier-naming.ParameterPackCase
84+
value: "lower_case"
85+
- key: readability-identifier-naming.PointerParameterCase
86+
value: "lower_case"
87+
- key: readability-identifier-naming.PrivateMemberCase
88+
value: "lower_case"
89+
- key: readability-identifier-naming.PrivateMemberPrefix
90+
value: "m_"
91+
- key: readability-identifier-naming.PrivateMethodCase
92+
value: "lower_case"
93+
- key: readability-identifier-naming.ProtectedMemberCase
94+
value: "lower_case"
95+
- key: readability-identifier-naming.ProtectedMemberPrefix
96+
value: "m_"
97+
- key: readability-identifier-naming.ProtectedMethodCase
98+
value: "lower_case"
99+
- key: readability-identifier-naming.PublicMemberCase
100+
value: "lower_case"
101+
- key: readability-identifier-naming.PublicMemberPrefix
102+
value: "" # NO PREFIX
103+
- key: readability-identifier-naming.PublicMethodCase
104+
value: "lower_case"
105+
- key: readability-identifier-naming.ScopedEnumConstantCase
106+
value: "CamelCase"
107+
- key: readability-identifier-naming.StaticConstantCase
108+
value: "lower_case"
109+
- key: readability-identifier-naming.StaticConstantPrefix
110+
value: "s_"
111+
- key: readability-identifier-naming.StaticVariableCase
112+
value: "lower_case"
113+
- key: readability-identifier-naming.StaticVariablePrefix
114+
value: "s_"
115+
- key: readability-identifier-naming.StructCase
116+
value: "CamelCase"
117+
- key: readability-identifier-naming.TemplateParameterCase
118+
value: "CamelCase"
119+
- key: readability-identifier-naming.TemplateTemplateParameterCase
120+
value: "CamelCase"
121+
- key: readability-identifier-naming.TypeAliasCase
122+
value: "CamelCase"
123+
- key: readability-identifier-naming.TypedefCase
124+
value: "CamelCase"
125+
- key: readability-identifier-naming.TypeTemplateParameterCase
126+
value: "CamelCase"
127+
- key: readability-identifier-naming.UnionCase
128+
value: "CamelCase"
129+
- key: readability-identifier-naming.ValueTemplateParameterCase
130+
value: "CamelCase"
131+
- key: readability-identifier-naming.VariableCase
132+
value: "lower_case"
133+
- key: readability-identifier-naming.VirtualMethodCase
134+
value: "lower_case"
135+
136+
# some needed settings, that are non default
137+
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
138+
value: true
139+
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
140+
value: true
141+
- key: bugprone-suspicious-enum-usage.StrictMode
142+
value: true
143+
- key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
144+
value: true
145+
- key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField
146+
value: true
147+
- key: misc-unused-parameters.StrictMode
148+
value: true
149+
- key: performance-inefficient-string-concatenation.StrictMode
150+
value: true
151+
- key: readability-inconsistent-declaration-parameter-name.Strict
152+
value: true
153+
154+
## special things, that have special values
155+
- key: readability-identifier-length.IgnoredVariableNames
156+
value: ""
157+
- key: readability-identifier-length.IgnoredParameterNames
158+
value: "^(os)$" ## std::ostream
159+
- key: readability-identifier-length.IgnoredExceptionVariableNames
160+
value: ""
161+
- key: readability-identifier-length.MinimumLoopCounterNameLength
162+
value: 1
163+
- key: readability-identifier-length.MinimumExceptionNameLength
164+
value: 5
165+
- key: readability-function-cognitive-complexity.Threshold
166+
value: 50
167+
- key: bugprone-assert-side-effect.AssertMacros
168+
value: "assert"

.github/workflows/android.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
android-build:
1313
name: Build android apk for - ${{ matrix.config.arch }}
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515
strategy:
1616
fail-fast: false
1717
matrix:
@@ -25,30 +25,32 @@ jobs:
2525
with:
2626
fetch-depth: "0"
2727

28+
# NOTE: meson has no dependencies, so --break-system-packages doesn't really break anything!
2829
- name: Setup Meson
2930
run: |
30-
python -m pip install --upgrade pip
31-
pip install meson
31+
pip install meson --break-system-packages
3232
3333
- name: Setup ninja
3434
run: |
3535
sudo apt-get update
36-
sudo apt-get install ninja-build
36+
sudo apt-get upgrade -y
37+
sudo apt-get install ninja-build jq
3738
3839
- name: Setup JDK
3940
uses: actions/setup-java@v4
4041
with:
4142
distribution: 'temurin'
42-
java-version: '17'
43+
java-version: '21'
4344

4445
- name: Setup Android SDK
4546
uses: android-actions/setup-android@v3
4647

4748
- name: Setup NDK
4849
run: |
49-
sdkmanager --install "ndk;26.3.11579264"
50+
sdkmanager --install "ndk;27.0.11718014"
5051
51-
- name: Build natibe libraries
52+
53+
- name: Build native libraries
5254
run: |
5355
bash ./platforms/build-android.sh ${{ matrix.config.arch }} complete_rebuild release
5456
cp -r ./assets/ platforms/android/app/src/main

0 commit comments

Comments
 (0)