Skip to content

Commit 14ef7b3

Browse files
doosuuMP91
authored andcommitted
Initial commit
0 parents  commit 14ef7b3

File tree

165 files changed

+172350
-0
lines changed

Some content is hidden

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

165 files changed

+172350
-0
lines changed

.clang-format

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveMacros: false
7+
AlignConsecutiveAssignments: true
8+
AlignConsecutiveBitFields: false
9+
AlignConsecutiveDeclarations: true
10+
AlignEscapedNewlines: Right
11+
AlignOperands: Align
12+
AlignTrailingComments: true
13+
AllowAllArgumentsOnNextLine: true
14+
AllowAllConstructorInitializersOnNextLine: true
15+
AllowAllParametersOfDeclarationOnNextLine: true
16+
AllowShortEnumsOnASingleLine: true
17+
AllowShortBlocksOnASingleLine: Never
18+
AllowShortCaseLabelsOnASingleLine: false
19+
AllowShortFunctionsOnASingleLine: All
20+
AllowShortLambdasOnASingleLine: All
21+
AllowShortIfStatementsOnASingleLine: Never
22+
AllowShortLoopsOnASingleLine: false
23+
AlwaysBreakAfterDefinitionReturnType: None
24+
AlwaysBreakAfterReturnType: None
25+
AlwaysBreakBeforeMultilineStrings: false
26+
AlwaysBreakTemplateDeclarations: MultiLine
27+
BinPackArguments: true
28+
BinPackParameters: true
29+
BraceWrapping:
30+
AfterCaseLabel: false
31+
AfterClass: false
32+
AfterControlStatement: Never
33+
AfterEnum: false
34+
AfterFunction: false
35+
AfterNamespace: false
36+
AfterObjCDeclaration: false
37+
AfterStruct: false
38+
AfterUnion: false
39+
AfterExternBlock: false
40+
BeforeCatch: false
41+
BeforeElse: false
42+
BeforeLambdaBody: false
43+
BeforeWhile: false
44+
IndentBraces: false
45+
SplitEmptyFunction: true
46+
SplitEmptyRecord: true
47+
SplitEmptyNamespace: true
48+
BreakBeforeBinaryOperators: None
49+
BreakBeforeBraces: Attach
50+
BreakBeforeInheritanceComma: false
51+
BreakInheritanceList: BeforeColon
52+
BreakBeforeTernaryOperators: true
53+
BreakConstructorInitializersBeforeComma: true
54+
BreakConstructorInitializers: BeforeColon
55+
BreakAfterJavaFieldAnnotations: false
56+
BreakStringLiterals: true
57+
ColumnLimit: 100
58+
CommentPragmas: "^ IWYU pragma:"
59+
CompactNamespaces: false
60+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
61+
ConstructorInitializerIndentWidth: 4
62+
ContinuationIndentWidth: 4
63+
Cpp11BracedListStyle: true
64+
DeriveLineEnding: true
65+
DerivePointerAlignment: false
66+
DisableFormat: false
67+
ExperimentalAutoDetectBinPacking: false
68+
FixNamespaceComments: true
69+
ForEachMacros:
70+
- foreach
71+
- Q_FOREACH
72+
- BOOST_FOREACH
73+
IncludeBlocks: Preserve
74+
IncludeCategories:
75+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
76+
Priority: 2
77+
SortPriority: 0
78+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
79+
Priority: 3
80+
SortPriority: 0
81+
- Regex: ".*"
82+
Priority: 1
83+
SortPriority: 0
84+
IncludeIsMainRegex: "(Test)?$"
85+
IncludeIsMainSourceRegex: ""
86+
IndentCaseLabels: false
87+
IndentCaseBlocks: false
88+
IndentGotoLabels: true
89+
IndentPPDirectives: None
90+
IndentExternBlock: AfterExternBlock
91+
IndentWidth: 4
92+
IndentWrappedFunctionNames: false
93+
InsertTrailingCommas: None
94+
JavaScriptQuotes: Leave
95+
JavaScriptWrapImports: true
96+
KeepEmptyLinesAtTheStartOfBlocks: true
97+
MacroBlockBegin: ""
98+
MacroBlockEnd: ""
99+
MaxEmptyLinesToKeep: 1
100+
NamespaceIndentation: None
101+
ObjCBinPackProtocolList: Auto
102+
ObjCBlockIndentWidth: 4
103+
ObjCBreakBeforeNestedBlockParam: true
104+
ObjCSpaceAfterProperty: false
105+
ObjCSpaceBeforeProtocolList: true
106+
PenaltyBreakAssignment: 2
107+
PenaltyBreakBeforeFirstCallParameter: 19
108+
PenaltyBreakComment: 300
109+
PenaltyBreakFirstLessLess: 120
110+
PenaltyBreakString: 1000
111+
PenaltyBreakTemplateDeclaration: 10
112+
PenaltyExcessCharacter: 1000000
113+
PenaltyReturnTypeOnItsOwnLine: 60
114+
PointerAlignment: Left
115+
ReflowComments: true
116+
SortIncludes: true
117+
SortUsingDeclarations: true
118+
SpaceAfterCStyleCast: false
119+
SpaceAfterLogicalNot: false
120+
SpaceAfterTemplateKeyword: true
121+
SpaceBeforeAssignmentOperators: true
122+
SpaceBeforeCpp11BracedList: false
123+
SpaceBeforeCtorInitializerColon: true
124+
SpaceBeforeInheritanceColon: true
125+
SpaceBeforeParens: ControlStatements
126+
SpaceBeforeRangeBasedForLoopColon: true
127+
SpaceInEmptyBlock: false
128+
SpaceInEmptyParentheses: false
129+
SpacesBeforeTrailingComments: 1
130+
SpacesInAngles: false
131+
SpacesInConditionalStatement: false
132+
SpacesInContainerLiterals: true
133+
SpacesInCStyleCastParentheses: false
134+
SpacesInParentheses: false
135+
SpacesInSquareBrackets: false
136+
SpaceBeforeSquareBrackets: false
137+
Standard: Latest
138+
StatementMacros:
139+
- Q_UNUSED
140+
- QT_REQUIRE_VERSION
141+
TabWidth: 8
142+
UseCRLF: false
143+
UseTab: Never
144+
WhitespaceSensitiveMacros:
145+
- STRINGIZE
146+
- PP_STRINGIZE
147+
- BOOST_PP_STRINGIZE
148+
---
149+

.clang-tidy

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
Checks: 'clang-analyzer-*,
3+
cppcoreguidelines-*,
4+
modernize-*,
5+
readability-*,
6+
-google-readability-todo,
7+
-readability-convert-member-functions-to-static,
8+
-bugprone-branch-clone,
9+
-cppcoreguidelines-avoid-non-const-global-variables,
10+
-modernize-use-equals-default,
11+
-modernize-use-trailing-return-type,
12+
-readability-make-member-function-const'
13+
HeaderFilterRegex: 'include'
14+
WarningsAsErrors: 'clang-analyzer-*,
15+
modernize-*,
16+
cppcoreguidelines-*,
17+
readability-*,
18+
-google-readability-todo,
19+
-readability-convert-member-functions-to-static,
20+
-bugprone-branch-clone,
21+
-cppcoreguidelines-avoid-non-const-global-variables,
22+
-modernize-use-equals-default,
23+
-modernize-use-trailing-return-type,
24+
-readability-make-member-function-const'
25+
AnalyzeTemporaryDtors: false
26+
FormatStyle: file
27+
CheckOptions:
28+
- key: cert-dcl16-c.NewSuffixes
29+
value: 'L;LL;LU;LLU'
30+
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
31+
value: '0'
32+
- key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors
33+
value: '1'
34+
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
35+
value: '1'
36+
- key: google-readability-braces-around-statements.ShortStatementLines
37+
value: '1'
38+
- key: google-readability-function-size.StatementThreshold
39+
value: '800'
40+
- key: google-readability-namespace-comments.ShortNamespaceLines
41+
value: '10'
42+
- key: google-readability-namespace-comments.SpacesBeforeComments
43+
value: '2'
44+
- key: modernize-loop-convert.MaxCopySize
45+
value: '16'
46+
- key: modernize-loop-convert.MinConfidence
47+
value: reasonable
48+
- key: modernize-loop-convert.NamingStyle
49+
value: CamelCase
50+
- key: modernize-pass-by-value.IncludeStyle
51+
value: llvm
52+
- key: modernize-replace-auto-ptr.IncludeStyle
53+
value: llvm
54+
- key: modernize-use-nullptr.NullMacros
55+
value: 'NULL'
56+
...
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[settings]
2+
os=Linux
3+
arch=armv8
4+
compiler=gcc
5+
compiler.version=11
6+
compiler.libcxx=libstdc++11
7+
build_type=Debug
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[settings]
2+
os=Linux
3+
arch=armv8
4+
compiler=gcc
5+
compiler.version=11
6+
compiler.libcxx=libstdc++11
7+
build_type=Release

.conan/profiles/linux_x86_64_debug

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[settings]
2+
os=Linux
3+
arch=x86_64
4+
compiler=gcc
5+
compiler.version=11
6+
compiler.libcxx=libstdc++11
7+
build_type=Debug
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[settings]
2+
os=Linux
3+
arch=x86_64
4+
compiler=gcc
5+
compiler.version=11
6+
compiler.libcxx=libstdc++11
7+
build_type=Release

.dapr/components/pubsub.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (c) 2022 Robert Bosch GmbH
2+
#
3+
# This program and the accompanying materials are made available under the
4+
# terms of the Apache License, Version 2.0 which is available at
5+
# https://www.apache.org/licenses/LICENSE-2.0.
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10+
# License for the specific language governing permissions and limitations
11+
# under the License.
12+
#
13+
# SPDX-License-Identifier: Apache-2.0
14+
15+
apiVersion: dapr.io/v1alpha1
16+
kind: Component
17+
metadata:
18+
name: mqtt-pubsub
19+
namespace: default
20+
spec:
21+
type: pubsub.mqtt
22+
version: v1
23+
metadata:
24+
- name: url
25+
value: "mqtt://localhost:1883"
26+
- name: qos
27+
value: 1
28+
- name: retain
29+
value: "false"
30+
- name: cleanSession
31+
value: "false"

.dapr/config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2022 Robert Bosch GmbH
2+
#
3+
# This program and the accompanying materials are made available under the
4+
# terms of the Apache License, Version 2.0 which is available at
5+
# https://www.apache.org/licenses/LICENSE-2.0.
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10+
# License for the specific language governing permissions and limitations
11+
# under the License.
12+
#
13+
# SPDX-License-Identifier: Apache-2.0
14+
15+
apiVersion: dapr.io/v1alpha1
16+
kind: Configuration
17+
metadata:
18+
name: config
19+
spec:
20+
tracing:
21+
samplingRate: "1"
22+
zipkin:
23+
endpointAddress: http://localhost:9411/api/v2/spans
24+
features:
25+
- name: proxy.grpc
26+
enabled: true

.devcontainer/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/cpp/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Debian / Ubuntu version (use Debian 11, Ubuntu 18.04/22.04 on local arm64/Apple Silicon): debian-11, debian-10, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04
4+
ARG VARIANT="bullseye"
5+
FROM mcr.microsoft.com/vscode/devcontainers/cpp:0-${VARIANT}
6+
7+
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE
8+
ENV REINSTALL_CMAKE_VERSION_FROM_SOURCE="${REINSTALL_CMAKE_VERSION_FROM_SOURCE:-none}"
9+
10+
# Force dapr to use localhost traffic
11+
ENV DAPR_HOST_IP="127.0.0.1"
12+
# Add daprd to the path for the VS Code Dapr extension.
13+
ENV PATH=$PATH:/home/vscode/.dapr/bin
14+
15+
16+
# Port of the local Proxy
17+
ARG PROXY
18+
ENV PROXY="${PROXY}"
19+
20+
ARG PROXY_HOST
21+
ENV PROXY_HOST="${PROXY_HOST:-http://host.docker.internal}"
22+
23+
ARG PROXY_PORT
24+
ENV PROXY_PORT="${PROXY_PORT:-3128}"
25+
26+
# Redirect conan home to avoid cache eviction on container rebuild
27+
ENV CONAN_USER_HOME=/workspaces/vehicle-app-cpp-sdk/.conan_home

.devcontainer/devcontainer.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/cpp
3+
{
4+
"name": "C++",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick an Debian / Ubuntu OS version: debian-11, debian-10, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04
8+
// Use Debian 11, Ubuntu 18.04 or Ubuntu 22.04 on local arm64/Apple Silicon
9+
"args": {
10+
"VARIANT": "ubuntu-22.04",
11+
"PROXY": "${localEnv:DEVCONTAINER_PROXY}",
12+
"PROXY_PORT": "${localEnv:DEVCONTAINER_PROXY_PORT}",
13+
"PROXY_HOST": "${localEnv:DEVCONTAINER_PROXY_HOST}",
14+
}
15+
},
16+
"runArgs": [
17+
"--cap-add=SYS_PTRACE",
18+
"--security-opt",
19+
"seccomp=unconfined"
20+
],
21+
"features": {
22+
"docker-in-docker": {
23+
"version": "latest",
24+
"moby": true
25+
}
26+
},
27+
// Set *default* container specific settings.json values on container create.
28+
"settings": {},
29+
// Add the IDs of extensions you want installed when the container is created.
30+
"extensions": [
31+
"ms-vscode.cpptools",
32+
"ms-vscode.cmake-tools",
33+
"ms-azuretools.vscode-dapr",
34+
"rpdswtk.vsmqtt",
35+
"ms-kubernetes-tools.vscode-kubernetes-tools",
36+
"bierner.markdown-mermaid",
37+
"cschlosser.doxdocgen",
38+
"xaver.clang-format",
39+
"notskm.clang-tidy",
40+
"matepek.vscode-catch2-test-adapter",
41+
"sanaajani.taskrunnercode"
42+
],
43+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
44+
// "forwardPorts": [],
45+
// Use 'onCreateCommand' to run commands when the container is created.
46+
"onCreateCommand": "bash .devcontainer/scripts/post-create.sh",
47+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
48+
"remoteUser": "vscode"
49+
}

0 commit comments

Comments
 (0)