| Files | Last commit | Last update |
|---|---|---|
refactor(naming): use the .cpp suffix for C++ source files What: rename every C++ source file in the repository from .cc to .cpp (824 files, with git history kept as renames) and update the build lists, scripts, tests, configs, docs and source comments that name them. The project generators (ibmw-gen and ibmw_cli) now write .cpp files for new projects; when a project being regenerated already holds .cc sources from an earlier run, the generators keep .cc for it so the user's files and CMake lists stay consistent. A small helper picks the suffix from the output directory, and new tests cover both the new and the legacy case. Generated CMake lists from ibmw_cli accept both suffixes. The in-tree generated samples and the template project are regenerated with the new names. Why: the code check requires C++ source files to use the .cpp suffix. Verification: full build with 0 errors; ctest 75/75 passed; ibmw-gen tests 341 passed with only the known environment-dependent failure; mw_perf_collect tests 968 passed, 2 skipped; core metrics tests 215 passed; shell tests show only the three known environment failures; clang-format, generated-code format, license header, docs governance and release hygiene checks pass. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(extensions): rename internal members, constants and functions What: - Internal members of the record/playback, bag, DDS, SHM, iceoryx and other extensions now use camelBack, keeping the trailing underscore of private members; designated initializers follow the new names. - Internal constants and enum values now use UPPER_CASE without the "k" prefix. Playback stream results are named RECEIVE_OK, RECEIVE_ERROR and CLOSED to avoid the OK and ERROR macros. - The DDS communication trace helpers are named Mode and Active, also in the test-hook build branch. - Comments that mention a renamed name were updated. - Names kept: yaml-cpp convert specializations, size() and what() required by templates and std::exception, the action wire contract and Fast DDS type support names reached from installed headers, and the test mirror of the C ABI structure fields. Why: - The code checker asks for one naming style; these names are internal. Verification: - build-ci and a second build with the optional transports and features turned on: no errors; ctest 75/75 passed. - Files that are not built in these configurations were compared with the previous commit by a syntax check: no new errors. - clang-format dry run over all tracked C/C++ files: clean; generated code format check, function size check and license check: clean. - A search for every old name finds only uses that belong to other scopes (public API names, message fields, other classes). Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(format): switch C and C++ sources to the OpenHarmony code style What: - Replace .clang-format with the OpenHarmony style required by the daily code check: 4-space indent, 120 columns, function left brace on its own line, braces on every if/for/while body, case labels indented. - Run clang-format 18 over all hand-written C and C++ files; the files generated by ibmw_gen (the kept *_gen samples and the template project) are left for the generator change that follows, except the headers the generator copies verbatim from the reformatted sources. - plain_dds_pubsub_type.h: the Fast DDS version #if now only switches the function signature, so both branches share one body brace; clang-format could not indent the old form. - Tests that search source text for a fixed indentation now use the new indentation or ignore it. Why: About 32 000 of the reported findings are layout rules (indentation, brace position, line width) that clang-format handles mechanically. This commit only changes whitespace, adds braces, splits long string literals and sorts using-declarations; a check of every file confirmed no other tokens changed and every #if branch keeps its brace balance. Verification: - Full build with -Werror: no errors; ctest: 75 of 75 passed - pytest src/tools/ibmw_gen/tests: 332 passed, 1 known failure (needs IBMW_BUILD_DIR) - scripts/tests: same results as before the change - scripts/check_clang_format.sh and its tests pass Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(extensions): rename internal members, constants and functions What: - Internal members of the record/playback, bag, DDS, SHM, iceoryx and other extensions now use camelBack, keeping the trailing underscore of private members; designated initializers follow the new names. - Internal constants and enum values now use UPPER_CASE without the "k" prefix. Playback stream results are named RECEIVE_OK, RECEIVE_ERROR and CLOSED to avoid the OK and ERROR macros. - The DDS communication trace helpers are named Mode and Active, also in the test-hook build branch. - Comments that mention a renamed name were updated. - Names kept: yaml-cpp convert specializations, size() and what() required by templates and std::exception, the action wire contract and Fast DDS type support names reached from installed headers, and the test mirror of the C ABI structure fields. Why: - The code checker asks for one naming style; these names are internal. Verification: - build-ci and a second build with the optional transports and features turned on: no errors; ctest 75/75 passed. - Files that are not built in these configurations were compared with the previous commit by a syntax check: no new errors. - clang-format dry run over all tracked C/C++ files: clean; generated code format check, function size check and license check: clean. - A search for every old name finds only uses that belong to other scopes (public API names, message fields, other classes). Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(format): switch C and C++ sources to the OpenHarmony code style What: - Replace .clang-format with the OpenHarmony style required by the daily code check: 4-space indent, 120 columns, function left brace on its own line, braces on every if/for/while body, case labels indented. - Run clang-format 18 over all hand-written C and C++ files; the files generated by ibmw_gen (the kept *_gen samples and the template project) are left for the generator change that follows, except the headers the generator copies verbatim from the reformatted sources. - plain_dds_pubsub_type.h: the Fast DDS version #if now only switches the function signature, so both branches share one body brace; clang-format could not indent the old form. - Tests that search source text for a fixed indentation now use the new indentation or ignore it. Why: About 32 000 of the reported findings are layout rules (indentation, brace position, line width) that clang-format handles mechanically. This commit only changes whitespace, adds braces, splits long string literals and sorts using-declarations; a check of every file confirmed no other tokens changed and every #if branch keeps its brace balance. Verification: - Full build with -Werror: no errors; ctest: 75 of 75 passed - pytest src/tools/ibmw_gen/tests: 332 passed, 1 known failure (needs IBMW_BUILD_DIR) - scripts/tests: same results as before the change - scripts/check_clang_format.sh and its tests pass Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(naming): use the .cpp suffix for C++ source files What: rename every C++ source file in the repository from .cc to .cpp (824 files, with git history kept as renames) and update the build lists, scripts, tests, configs, docs and source comments that name them. The project generators (ibmw-gen and ibmw_cli) now write .cpp files for new projects; when a project being regenerated already holds .cc sources from an earlier run, the generators keep .cc for it so the user's files and CMake lists stay consistent. A small helper picks the suffix from the output directory, and new tests cover both the new and the legacy case. Generated CMake lists from ibmw_cli accept both suffixes. The in-tree generated samples and the template project are regenerated with the new names. Why: the code check requires C++ source files to use the .cpp suffix. Verification: full build with 0 errors; ctest 75/75 passed; ibmw-gen tests 341 passed with only the known environment-dependent failure; mw_perf_collect tests 968 passed, 2 skipped; core metrics tests 215 passed; shell tests show only the three known environment failures; clang-format, generated-code format, license header, docs governance and release hygiene checks pass. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(style): put a space between a qualifier and a following pointer mark What: - .clang-format: added "SpaceAroundPointerQualifiers: After", so a "*" or "&" that follows "const" is written with a space, for example "const char* const * argv" and "() const &". - Reformatted the 33 files this touches (CLI argument lists, crash handler frame arrays, DDS loan buffer, schema entry list, ref-qualified members). - Wrote the two "T const&" parameters and two "auto const&" loop variables as "const T&" / "const auto&" instead. Why: - The code checker requires a space between "const" and a pointer mark that follows it, and accepts "const * name". Doing it through clang-format keeps the rule enforced for new code; no other layout changes. Verification: - clang-format dry run over all tracked C/C++ files: clean; generated-code format check: clean. - build-ci full rebuild: no errors, no warnings; ctest 75/75 passed. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(style): put a space between a qualifier and a following pointer mark What: - .clang-format: added "SpaceAroundPointerQualifiers: After", so a "*" or "&" that follows "const" is written with a space, for example "const char* const * argv" and "() const &". - Reformatted the 33 files this touches (CLI argument lists, crash handler frame arrays, DDS loan buffer, schema entry list, ref-qualified members). - Wrote the two "T const&" parameters and two "auto const&" loop variables as "const T&" / "const auto&" instead. Why: - The code checker requires a space between "const" and a pointer mark that follows it, and accepts "const * name". Doing it through clang-format keeps the rule enforced for new code; no other layout changes. Verification: - clang-format dry run over all tracked C/C++ files: clean; generated-code format check: clean. - build-ci full rebuild: no errors, no warnings; ctest 75/75 passed. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago |