Skip to content

Commit 9568280

Browse files
committed
Merge branch 'develop'
2 parents b4488d6 + d76f3be commit 9568280

File tree

2,194 files changed

+346168
-383801
lines changed

Some content is hidden

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

2,194 files changed

+346168
-383801
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- image: mrpt/mrpt-build-env:full-bionic
7979
steps:
8080
- checkout
81-
- run: apt install clang-format-11 -yq
81+
- run: apt install clang-format-14 -yq
8282
- run: git submodule sync
8383
- run: git submodule update --init --recursive
8484
- run: pip3 install --user -r .circleci/python_reqs.txt

.clang-format

Lines changed: 100 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,141 @@
11
---
22
Language: Cpp
3+
# BasedOnStyle: Google
34
AccessModifierOffset: -1
45
AlignAfterOpenBracket: AlwaysBreak
5-
AlignConsecutiveMacros: false
6-
AlignConsecutiveAssignments: false
7-
AlignConsecutiveDeclarations: false
8-
AlignEscapedNewlines: Right
9-
AlignOperands: false
10-
AlignTrailingComments: false
6+
AlignArrayOfStructures: Right
7+
AlignConsecutiveMacros: Consecutive
8+
AlignConsecutiveAssignments: None
9+
AlignConsecutiveBitFields: None
10+
AlignConsecutiveDeclarations: None
11+
AlignEscapedNewlines: Left
12+
AlignOperands: Align
13+
AlignTrailingComments: true
1114
AllowAllArgumentsOnNextLine: true
12-
AllowAllConstructorInitializersOnNextLine: true
1315
AllowAllParametersOfDeclarationOnNextLine: true
14-
AllowShortBlocksOnASingleLine: Always
15-
AllowShortCaseLabelsOnASingleLine: true
16+
AllowShortEnumsOnASingleLine: true
17+
AllowShortBlocksOnASingleLine: Never
18+
AllowShortCaseLabelsOnASingleLine: false
1619
AllowShortFunctionsOnASingleLine: All
1720
AllowShortLambdasOnASingleLine: All
18-
AllowShortIfStatementsOnASingleLine: Always
19-
AllowShortLoopsOnASingleLine: false
21+
AllowShortIfStatementsOnASingleLine: WithoutElse
22+
AllowShortLoopsOnASingleLine: true
23+
AlwaysBreakAfterDefinitionReturnType: None
2024
AlwaysBreakAfterReturnType: None
2125
AlwaysBreakBeforeMultilineStrings: true
2226
AlwaysBreakTemplateDeclarations: Yes
27+
AttributeMacros:
28+
- __capability
2329
BinPackArguments: true
24-
BinPackParameters: true
30+
BinPackParameters: false
2531
BraceWrapping:
26-
AfterCaseLabel: true
27-
AfterClass: true
28-
AfterControlStatement: true
29-
AfterEnum: true
30-
AfterFunction: true
31-
AfterNamespace: true
32-
AfterObjCDeclaration: true
33-
AfterStruct: true
34-
AfterUnion: true
35-
AfterExternBlock: true
36-
BeforeCatch: true
37-
BeforeElse: true
32+
AfterCaseLabel: false
33+
AfterClass: false
34+
AfterControlStatement: Never
35+
AfterEnum: false
36+
AfterFunction: false
37+
AfterNamespace: false
38+
AfterObjCDeclaration: false
39+
AfterStruct: false
40+
AfterUnion: false
41+
AfterExternBlock: false
42+
BeforeCatch: false
43+
BeforeElse: false
44+
BeforeLambdaBody: false
45+
BeforeWhile: false
3846
IndentBraces: false
3947
SplitEmptyFunction: true
4048
SplitEmptyRecord: true
4149
SplitEmptyNamespace: true
4250
BreakBeforeBinaryOperators: None
51+
BreakBeforeConceptDeclarations: true
4352
BreakBeforeBraces: Allman
4453
BreakBeforeInheritanceComma: false
45-
BreakInheritanceList: BeforeColon
54+
BreakInheritanceList: AfterColon
4655
BreakBeforeTernaryOperators: true
4756
BreakConstructorInitializersBeforeComma: false
48-
BreakConstructorInitializers: BeforeColon
57+
BreakConstructorInitializers: AfterColon
4958
BreakAfterJavaFieldAnnotations: false
5059
BreakStringLiterals: true
51-
ColumnLimit: 80
60+
ColumnLimit: 100
5261
CommentPragmas: '^ IWYU pragma:'
53-
CompactNamespaces: true
54-
ConstructorInitializerAllOnOneLineOrOnePerLine: true
62+
QualifierAlignment: Leave
63+
CompactNamespaces: false
5564
ConstructorInitializerIndentWidth: 4
5665
ContinuationIndentWidth: 4
5766
Cpp11BracedListStyle: true
5867
DeriveLineEnding: true
59-
DerivePointerAlignment: false
68+
DerivePointerAlignment: true
6069
DisableFormat: false
70+
EmptyLineAfterAccessModifier: Never
71+
EmptyLineBeforeAccessModifier: LogicalBlock
6172
ExperimentalAutoDetectBinPacking: false
73+
PackConstructorInitializers: NextLine
74+
BasedOnStyle: ''
75+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
76+
AllowAllConstructorInitializersOnNextLine: true
6277
FixNamespaceComments: true
6378
ForEachMacros:
6479
- foreach
6580
- Q_FOREACH
6681
- BOOST_FOREACH
82+
IfMacros:
83+
- KJ_IF_MAYBE
6784
IncludeBlocks: Regroup
6885
IncludeCategories:
6986
- Regex: '^<ext/.*\.h>'
7087
Priority: 2
7188
SortPriority: 0
89+
CaseSensitive: false
7290
- Regex: '^<.*\.h>'
7391
Priority: 1
7492
SortPriority: 0
93+
CaseSensitive: false
7594
- Regex: '^<.*'
7695
Priority: 2
7796
SortPriority: 0
97+
CaseSensitive: false
7898
- Regex: '.*'
7999
Priority: 3
80100
SortPriority: 0
101+
CaseSensitive: false
81102
IncludeIsMainRegex: '([-_](test|unittest))?$'
82103
IncludeIsMainSourceRegex: ''
104+
IndentAccessModifiers: false
83105
IndentCaseLabels: true
106+
IndentCaseBlocks: false
84107
IndentGotoLabels: true
85108
IndentPPDirectives: None
86-
IndentWidth: 4
87-
IndentWrappedFunctionNames: true
109+
IndentExternBlock: AfterExternBlock
110+
IndentRequires: false
111+
IndentWidth: 2
112+
IndentWrappedFunctionNames: false
113+
InsertTrailingCommas: None
88114
JavaScriptQuotes: Leave
89115
JavaScriptWrapImports: true
90116
KeepEmptyLinesAtTheStartOfBlocks: false
117+
LambdaBodyIndentation: Signature
91118
MacroBlockBegin: ''
92119
MacroBlockEnd: ''
93120
MaxEmptyLinesToKeep: 1
94121
NamespaceIndentation: None
95122
ObjCBinPackProtocolList: Never
96123
ObjCBlockIndentWidth: 2
124+
ObjCBreakBeforeNestedBlockParam: true
97125
ObjCSpaceAfterProperty: false
98126
ObjCSpaceBeforeProtocolList: true
99127
PenaltyBreakAssignment: 2
100128
PenaltyBreakBeforeFirstCallParameter: 1
101129
PenaltyBreakComment: 300
102130
PenaltyBreakFirstLessLess: 120
131+
PenaltyBreakOpenParenthesis: 0
103132
PenaltyBreakString: 1000
104133
PenaltyBreakTemplateDeclaration: 10
105134
PenaltyExcessCharacter: 1000000
106135
PenaltyReturnTypeOnItsOwnLine: 200
136+
PenaltyIndentedWhitespace: 0
107137
PointerAlignment: Left
138+
PPIndentWidth: -1
108139
RawStringFormats:
109140
- Language: Cpp
110141
Delimiters:
@@ -131,35 +162,65 @@ RawStringFormats:
131162
- PARSE_TEXT_PROTO
132163
- ParseTextOrDie
133164
- ParseTextProtoOrDie
134-
CanonicalDelimiter: ''
165+
- ParseTestProto
166+
- ParsePartialTestProto
167+
CanonicalDelimiter: pb
135168
BasedOnStyle: google
169+
ReferenceAlignment: Pointer
136170
ReflowComments: true
137-
SortIncludes: true
171+
RemoveBracesLLVM: false
172+
SeparateDefinitionBlocks: Leave
173+
ShortNamespaceLines: 1
174+
SortIncludes: CaseSensitive
175+
SortJavaStaticImport: Before
138176
SortUsingDeclarations: true
139177
SpaceAfterCStyleCast: false
140178
SpaceAfterLogicalNot: false
141179
SpaceAfterTemplateKeyword: true
142180
SpaceBeforeAssignmentOperators: true
181+
SpaceBeforeCaseColon: false
143182
SpaceBeforeCpp11BracedList: false
144183
SpaceBeforeCtorInitializerColon: true
145184
SpaceBeforeInheritanceColon: true
146185
SpaceBeforeParens: ControlStatements
186+
SpaceBeforeParensOptions:
187+
AfterControlStatements: true
188+
AfterForeachMacros: true
189+
AfterFunctionDefinitionName: false
190+
AfterFunctionDeclarationName: false
191+
AfterIfMacros: true
192+
AfterOverloadedOperator: false
193+
BeforeNonEmptyParentheses: false
194+
SpaceAroundPointerQualifiers: Default
147195
SpaceBeforeRangeBasedForLoopColon: true
148196
SpaceInEmptyBlock: false
149197
SpaceInEmptyParentheses: false
150198
SpacesBeforeTrailingComments: 2
151-
SpacesInAngles: false
199+
SpacesInAngles: Never
152200
SpacesInConditionalStatement: false
153-
SpacesInContainerLiterals: false
201+
SpacesInContainerLiterals: true
154202
SpacesInCStyleCastParentheses: false
203+
SpacesInLineCommentPrefix:
204+
Minimum: 1
205+
Maximum: -1
155206
SpacesInParentheses: false
156207
SpacesInSquareBrackets: false
157208
SpaceBeforeSquareBrackets: false
158-
Standard: Latest
209+
BitFieldColonSpacing: Both
210+
Standard: Auto
211+
StatementAttributeLikeMacros:
212+
- Q_EMIT
159213
StatementMacros:
160214
- Q_UNUSED
161215
- QT_REQUIRE_VERSION
162-
TabWidth: 4
216+
TabWidth: 2
163217
UseCRLF: false
164-
UseTab: Always
218+
UseTab: Never
219+
WhitespaceSensitiveMacros:
220+
- STRINGIZE
221+
- PP_STRINGIZE
222+
- BOOST_PP_STRINGIZE
223+
- NS_SWIFT_NAME
224+
- CF_SWIFT_NAME
165225
...
226+

.github/workflows/check-clang-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
- name: Install Dependencies
3333
run: |
34-
sudo apt install clang-format-11 -yq
34+
sudo apt install clang-format-14 -yq
3535
pip3 install --user -r .circleci/python_reqs.txt
3636
3737
- name: Check code style

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ endif()
270270
include(cmakemodules/script_assimp.cmake REQUIRED) # Check for system assimp lib (3D models)
271271
include(cmakemodules/script_bfd.cmake REQUIRED) # BFD library for debug symbols for stack backtraces
272272
include(cmakemodules/script_clang_tidy.cmake REQUIRED) # Clang tidy
273-
include(cmakemodules/script_duo3d.cmake REQUIRED) # Support for DUO3D Camera
274273
include(cmakemodules/script_eigen.cmake REQUIRED) # Eigen3
275274
include(cmakemodules/script_ffmpeg.cmake REQUIRED) # Check for ffmpeg C libraries: libavcodec, libavutil, libavformat, libswscale
276275
include(cmakemodules/script_flycapture2.cmake REQUIRED) # Check for PointGreyResearch (PGR) FlyCapture2 library

0 commit comments

Comments
 (0)