Skip to content

Commit 85d3dd8

Browse files
Apply 1.12.0 release update
1 parent 5cac701 commit 85d3dd8

File tree

488 files changed

+24439
-4147
lines changed

Some content is hidden

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

488 files changed

+24439
-4147
lines changed

.circleci/config.yml

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,81 @@ version: 2.1
33
orbs:
44
win: circleci/windows@5.0 # The Windows orb gives you everything you need to start using the
55

6+
commands:
7+
install_dependencies:
8+
parameters:
9+
compiler:
10+
default: ""
11+
type: string
12+
steps:
13+
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh <<parameters.compiler>>
14+
run_tests:
15+
parameters:
16+
compiler:
17+
default: ""
18+
type: string
19+
steps:
20+
- run: chmod u+x run_tests.sh && ./run_tests.sh <<parameters.compiler>>
21+
622
jobs:
723
build-linux-gcc:
824
machine:
925
image: ubuntu-2204:2022.04.2 #https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
1026
steps:
1127
- checkout
12-
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh
13-
- run: chmod u+x run_tests.sh && ./run_tests.sh
28+
- install_dependencies
29+
- run_tests
1430
- store_artifacts:
1531
path: ./Release/Linux/erpcgen/erpcgen
32+
1633
build-linux-clang:
1734
machine:
1835
image: ubuntu-2204:2022.04.2 #https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
1936
steps:
2037
- checkout
21-
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
22-
- run: chmod u+x run_tests.sh && ./run_tests.sh clang
38+
- install_dependencies:
39+
compiler: "clang"
40+
- run_tests:
41+
compiler: "clang"
2342
# - store_artifacts:
2443
# path: ./Release/Linux/erpcgen/erpcgen
44+
2545
build-mac-gcc:
2646
macos:
2747
xcode: 12.5.1 # https://circleci.com/docs/using-macos/#supported-xcode-versions https://en.wikipedia.org/wiki/MacOS_version_history#Releases
28-
resource_class: medium
48+
resource_class: macos.x86.medium.gen2
2949
steps:
3050
- checkout
31-
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh
32-
- run: chmod u+x run_tests.sh && ./run_tests.sh
51+
- install_dependencies
52+
- run_tests
3353
- store_artifacts:
3454
path: ./Release/Darwin/erpcgen/erpcgen
55+
3556
build-mac-clang:
3657
macos:
3758
xcode: 12.5.1 # https://circleci.com/docs/using-macos/#supported-xcode-versions https://en.wikipedia.org/wiki/MacOS_version_history#Releases
38-
resource_class: medium
59+
resource_class: macos.x86.medium.gen2
3960
steps:
4061
- checkout
41-
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
42-
- run: chmod u+x run_tests.sh && ./run_tests.sh clang
62+
- install_dependencies:
63+
compiler: "clang"
64+
- run_tests:
65+
compiler: "clang"
4366
# - store_artifacts:
4467
# path: ./Release/Darwin/erpcgen/erpcgen
68+
4569
build-windows-mingw:
4670
executor:
4771
name: win/default
4872
size: large
4973
steps:
5074
- checkout
5175
- run: powershell.exe .\install_dependencies.ps1
52-
- run: powershell.exe .\mingw64\bin\mingw32-make erpcgen
76+
- run: .\mingw64\bin\mingw32-make all
77+
- run: .\mingw64\opt\bin\python3.exe .\test\run_unit_tests.py -m"..\\..\\mingw64\\bin\\mingw32-make"
5378
# - store_artifacts:
5479
# path: ./Release/MINGW64/erpcgen/erpcgen.exe
80+
5581
build-windows-VS:
5682
executor:
5783
name: win/default
@@ -65,6 +91,7 @@ jobs:
6591
- run: powershell.exe "& 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe' .\erpcgen\VisualStudio_v14\erpcgen.sln /property:Configuration=Release"
6692
- store_artifacts:
6793
path: ./erpcgen/VisualStudio_v14/Release/erpcgen.exe
94+
6895
workflows:
6996
build-workflow:
7097
jobs:

.clang-format

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
#https://releases.llvm.org/5.0.2/tools/clang/docs/ClangFormatStyleOptions.html
2-
AlignTrailingComments: true
1+
#https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormatStyleOptions.html
2+
AlignTrailingComments:
3+
Kind: Always
4+
OverEmptyLines: 0
35
AllowAllParametersOfDeclarationOnNextLine: true
4-
AllowShortBlocksOnASingleLine: false
5-
AllowShortFunctionsOnASingleLine: "Inline"
6-
AllowShortIfStatementsOnASingleLine: false
6+
AllowShortBlocksOnASingleLine: Never
7+
AllowShortFunctionsOnASingleLine: Inline
8+
AllowShortIfStatementsOnASingleLine: Never
79
AllowShortLoopsOnASingleLine: false
810
AlwaysBreakBeforeMultilineStrings: true
9-
BasedOnStyle: "Google"
11+
BasedOnStyle: Google
1012
#BinPackParameters : false
11-
BreakBeforeBinaryOperators: false
12-
BreakBeforeBraces: "Custom"
13+
BreakBeforeBinaryOperators: None
14+
BreakBeforeBraces: Custom
1315
BreakBeforeTernaryOperators: false
1416
ColumnLimit: 120
1517
ContinuationIndentWidth: 4
@@ -18,54 +20,61 @@ DisableFormat: false
1820
IndentCaseLabels: true
1921
IndentWrappedFunctionNames: false
2022
IndentWidth: 4
21-
Language: "Cpp"
23+
Language: Cpp
2224
MaxEmptyLinesToKeep: 1
23-
PointerBindsToType: false
2425
SpaceBeforeAssignmentOperators: true
25-
SpaceBeforeParens: "ControlStatements"
26+
SpaceBeforeParens: ControlStatements
2627
SpacesBeforeTrailingComments: 1
2728
SpacesInCStyleCastParentheses: false
2829
SpacesInParentheses: false
29-
Standard: "Cpp03"
30+
Standard: c++11
3031
TabWidth: 1
31-
UseTab: "Never"
32+
UseTab: Never
3233
AccessModifierOffset: -4
33-
AlignAfterOpenBracket: "Align"
34-
AlignEscapedNewlines: "Left"
35-
AlignOperands: true
34+
AlignAfterOpenBracket: Align
35+
AlignEscapedNewlines: Left
36+
AlignOperands: Align
3637
AllowShortCaseLabelsOnASingleLine: false
37-
AlwaysBreakAfterReturnType: "None"
38-
AlwaysBreakTemplateDeclarations: true
39-
BreakBeforeInheritanceComma: false
40-
BreakConstructorInitializers: "BeforeComma"
38+
AlwaysBreakAfterReturnType: None
39+
AlwaysBreakTemplateDeclarations: Yes
40+
BreakInheritanceList: AfterColon
41+
BreakConstructorInitializers: AfterColon
4142
CompactNamespaces: false
4243
ConstructorInitializerAllOnOneLineOrOnePerLine: false
4344
ConstructorInitializerIndentWidth: 0
4445
Cpp11BracedListStyle: false
4546
FixNamespaceComments: true
46-
NamespaceIndentation: "None"
47-
PointerAlignment: "Right"
48-
SortIncludes: true
49-
SortUsingDeclarations: true
50-
SpacesInAngles: false
47+
NamespaceIndentation: None
48+
PointerAlignment: Right
49+
SortIncludes: Never
50+
SortUsingDeclarations: Lexicographic
51+
SpacesInAngles: Never
5152
SpaceAfterCStyleCast: false
5253
SpaceInEmptyParentheses: false
5354
SpacesInSquareBrackets: false
5455
KeepEmptyLinesAtTheStartOfBlocks: true
5556
BraceWrapping:
57+
AfterCaseLabel: true
5658
AfterClass: true
57-
AfterControlStatement: true
59+
AfterControlStatement: Always
5860
AfterEnum: true
5961
AfterFunction: true
6062
AfterNamespace: false
6163
AfterObjCDeclaration: true
6264
AfterStruct: true
6365
AfterUnion: true
66+
AfterExternBlock: false
6467
BeforeCatch: true
6568
BeforeElse: true
66-
#IncludeBlocks: "Preserve" # for future version of clang
69+
BeforeWhile: false
70+
SplitEmptyFunction: true
71+
SplitEmptyRecord: true
72+
SplitEmptyNamespace: true
73+
74+
IncludeBlocks: Preserve
6775
IncludeCategories:
6876
- Regex: "^<" # system includes
6977
Priority: 10
7078
- Regex: '^"erpc_' # erpc public includes
7179
Priority: 1
80+
CommentPragmas: "#"

.clang-format-ignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#list of ignored files to format
2+
./erpc_c/port/erpc_serial.cpp
3+
./erpcgen/src/cpptemplate/cpptempl.hpp
4+
./erpcgen/src/cpptemplate/cpptempl.cpp
5+
./erpcgen/src/cpptemplate/cpptempl_test.cpp
6+
./erpcgen/test/test_includes/test_includes_union.h
7+
./test/common/gtest/gtest.h
8+
./test/common/gtest/gtest.cpp
9+
./test/common/retarget_cpp_streamed_io.c

.github/workflows/clang-format.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: clang-format lint
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: DoozyX/clang-format-lint-action@v0.10
10+
- uses: actions/checkout@v4
11+
- uses: DoozyX/clang-format-lint-action@v0.16.2
1212
with:
13-
source: '.'
14-
exclude: 'test/common/gtest/gtest.h test/common/gtest/gtest.cpp erpcgen/src/cpptemplate/cpptempl.h erpcgen/src/cpptemplate/cpptempl.cpp erpcgen/src/cpptemplate/cpptempl_test.cpp'
15-
clangFormatVersion: 10
13+
source: '.'
14+
clangFormatVersion: 16

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright 2014-2016 Freescale Semiconductor, Inc.
2-
Copyright 2016-2023 NXP
2+
Copyright 2016-2024 NXP
33
All rights reserved.
44

55
The BSD 3 Clause License

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ To install the Python infrastructure for eRPC see instructions in the [erpc_pyth
246246

247247
## Code providing
248248

249-
Repository on Github contains two main branches. __Master__ and __develop__. Code is developed on __develop__ branch. Release version is created via merging __develop__ branch into __master__ branch.
249+
Repository on Github contains two main branches: __main__ and __develop__. Code is developed on __develop__ branch. Release version is created via merging __develop__ branch into __main__ branch.
250250

251251
---
252252
Copyright 2014-2016 Freescale Semiconductor, Inc.
253253

254-
Copyright 2016-2023 NXP
254+
Copyright 2016-2024 NXP

doxygen/Doxyfile.erpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "eRPC API Reference"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "Rev. 1.11.0"
41+
PROJECT_NUMBER = "Rev. 1.12.0"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

doxygen/Doxyfile.erpcgen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "eRPC Generator (erpcgen)"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "Rev. 1.11.0"
41+
PROJECT_NUMBER = "Rev. 1.12.0"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

erpc_c/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ SOURCES += $(ERPC_C_ROOT)/infra/erpc_arbitrated_client_manager.cpp \
6060
$(ERPC_C_ROOT)/infra/erpc_server.cpp \
6161
$(ERPC_C_ROOT)/infra/erpc_simple_server.cpp \
6262
$(ERPC_C_ROOT)/infra/erpc_transport_arbitrator.cpp \
63+
$(ERPC_C_ROOT)/infra/erpc_utils.cpp \
6364
$(ERPC_C_ROOT)/infra/erpc_pre_post_action.cpp \
6465
$(ERPC_C_ROOT)/port/erpc_port_stdlib.cpp \
6566
$(ERPC_C_ROOT)/port/erpc_threading_pthreads.cpp \
66-
$(ERPC_C_ROOT)/port/erpc_serial.cpp \
6767
$(ERPC_C_ROOT)/setup/erpc_arbitrated_client_setup.cpp \
6868
$(ERPC_C_ROOT)/setup/erpc_client_setup.cpp \
6969
$(ERPC_C_ROOT)/setup/erpc_setup_mbf_dynamic.cpp \
@@ -72,8 +72,11 @@ SOURCES += $(ERPC_C_ROOT)/infra/erpc_arbitrated_client_manager.cpp \
7272
$(ERPC_C_ROOT)/setup/erpc_setup_serial.cpp \
7373
$(ERPC_C_ROOT)/setup/erpc_setup_tcp.cpp \
7474
$(ERPC_C_ROOT)/transports/erpc_inter_thread_buffer_transport.cpp \
75-
$(ERPC_C_ROOT)/transports/erpc_serial_transport.cpp \
7675
$(ERPC_C_ROOT)/transports/erpc_tcp_transport.cpp
76+
ifeq "$(is_mingw)" ""
77+
SOURCES += $(ERPC_C_ROOT)/transports/erpc_serial_transport.cpp \
78+
$(ERPC_C_ROOT)/port/erpc_serial.cpp
79+
endif
7780

7881
HEADERS += $(ERPC_C_ROOT)/config/erpc_config.h \
7982
$(ERPC_C_ROOT)/infra/erpc_arbitrated_client_manager.hpp \
@@ -91,6 +94,7 @@ HEADERS += $(ERPC_C_ROOT)/config/erpc_config.h \
9194
$(ERPC_C_ROOT)/infra/erpc_static_queue.hpp \
9295
$(ERPC_C_ROOT)/infra/erpc_transport_arbitrator.hpp \
9396
$(ERPC_C_ROOT)/infra/erpc_transport.hpp \
97+
$(ERPC_C_ROOT)/infra/erpc_utils.hpp \
9498
$(ERPC_C_ROOT)/infra/erpc_client_server_common.hpp \
9599
$(ERPC_C_ROOT)/infra/erpc_pre_post_action.h \
96100
$(ERPC_C_ROOT)/port/erpc_setup_extensions.h \

erpc_c/infra/erpc_arbitrated_client_manager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
#include "erpc_arbitrated_client_manager.hpp"
12+
1213
#include "erpc_transport_arbitrator.hpp"
1314

1415
#if ERPC_THREADS_IS(NONE)
@@ -73,7 +74,7 @@ void ArbitratedClientManager::performClientRequest(RequestContext &request)
7374
// Send the request.
7475
if (request.getCodec()->isStatusOk() == true)
7576
{
76-
err = m_arbitrator->send(request.getCodec()->getBuffer());
77+
err = m_arbitrator->send(&request.getCodec()->getBufferRef());
7778
request.getCodec()->updateStatus(err);
7879
}
7980

0 commit comments

Comments
 (0)