| 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 | |
chore(license): put the Apache-2.0 header on every source file, add OAT.xml What: Every source, script, build and configuration file now starts with the full Apache-2.0 license header and the copyright line "Copyright (c) 2025-2026 IB-Robot Group & openEuler Embedded SIG & openharmony-robot sig_RoboFrame." (no comma after the years). The "All rights reserved." line and the Mulan PSL v2 line of the loaned message demo are removed; the repository LICENSE is Apache-2.0. A shebang, coding line or XML declaration stays first. Jinja2 templates carry the header in a template comment, so it is not copied into rendered files. The new OAT.xml registers the copyright holders and the license, and filters files that cannot carry a header (JSON, golden generator output, patches, the recorded rosbag test data, documentation), each with its reason. Why: The OpenHarmony CI open-source audit reported 3527 fatal issues: files without a license header, copyright lines it does not accept, and binary files not registered. Only file headers and OAT.xml change; no code changes. Verification: Release hygiene and docs governance pass. The header script is idempotent (a second run changes nothing) and its diff only removes old header lines and the comment separators after them. ibmw_gen tests and scripts/tests give the same results as before the change; the installed-consumer test builds and installs the whole tree. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
chore(license): put the Apache-2.0 header on every source file, add OAT.xml What: Every source, script, build and configuration file now starts with the full Apache-2.0 license header and the copyright line "Copyright (c) 2025-2026 IB-Robot Group & openEuler Embedded SIG & openharmony-robot sig_RoboFrame." (no comma after the years). The "All rights reserved." line and the Mulan PSL v2 line of the loaned message demo are removed; the repository LICENSE is Apache-2.0. A shebang, coding line or XML declaration stays first. Jinja2 templates carry the header in a template comment, so it is not copied into rendered files. The new OAT.xml registers the copyright holders and the license, and filters files that cannot carry a header (JSON, golden generator output, patches, the recorded rosbag test data, documentation), each with its reason. Why: The OpenHarmony CI open-source audit reported 3527 fatal issues: files without a license header, copyright lines it does not accept, and binary files not registered. Only file headers and OAT.xml change; no code changes. Verification: Release hygiene and docs governance pass. The header script is idempotent (a second run changes nothing) and its diff only removes old header lines and the comment separators after them. ibmw_gen tests and scripts/tests give the same results as before the change; the installed-consumer test builds and installs the whole tree. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(cxx): tidy comments, placeholders and empty catch blocks What: - Comment lines that hold only "//" are removed from C/C++ sources and from the ibmw_gen templates; paragraphs in a comment block now follow each other directly. The C API headers drop the empty "Parameter definition:" heading above the Input/Output lists. - Argument labels written inside a call (/*name=*/value) move to a trailing comment of the same line; unnamed parameters lose their inline /*name*/ comment. - Every empty catch block states why the exception is ignored (destructor or noexcept path, C ABI boundary, best-effort cleanup, expected failure in a test). - ibmw_gen writes plain placeholder comments ("Fill in the msg fields here.", "Write the handler logic here, ...") instead of TODO notes. The user_code merge still recognises the older TODO wording of direct_* templates, so sources produced by older versions keep merging; a test covers this. The gRPC driver states its http-only limit without TODO. - In-tree generated samples and the ibmw-template project are regenerated. Why: the code check asks for no empty formatted header comments, for comments above or to the right of code, for a reason in every empty catch block and for no TODO/FIXME notes in delivered code. Verification: build-ci full build without errors; ctest passes (one DDS service test flaked under load and passes on rerun); ibmw_gen pytest 342 passed (only the known installed-build test fails); scripts/regen_in_tree.sh 18/18; clang-format clean. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(cxx): tidy comments, placeholders and empty catch blocks What: - Comment lines that hold only "//" are removed from C/C++ sources and from the ibmw_gen templates; paragraphs in a comment block now follow each other directly. The C API headers drop the empty "Parameter definition:" heading above the Input/Output lists. - Argument labels written inside a call (/*name=*/value) move to a trailing comment of the same line; unnamed parameters lose their inline /*name*/ comment. - Every empty catch block states why the exception is ignored (destructor or noexcept path, C ABI boundary, best-effort cleanup, expected failure in a test). - ibmw_gen writes plain placeholder comments ("Fill in the msg fields here.", "Write the handler logic here, ...") instead of TODO notes. The user_code merge still recognises the older TODO wording of direct_* templates, so sources produced by older versions keep merging; a test covers this. The gRPC driver states its http-only limit without TODO. - In-tree generated samples and the ibmw-template project are regenerated. Why: the code check asks for no empty formatted header comments, for comments above or to the right of code, for a reason in every empty catch block and for no TODO/FIXME notes in delivered code. Verification: build-ci full build without errors; ctest passes (one DDS service test flaked under load and passes on rerun); ibmw_gen pytest 342 passed (only the known installed-build test fails); scripts/regen_in_tree.sh 18/18; clang-format clean. 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 |