| Files | Last commit | Last update |
|---|---|---|
refactor(extensions): give file-scope globals the g_ camelBack names What: - The DDS communication trace source and its test, the bag command, the topic command stop flag (command_lifecycle.h and its users) and the managed exact candidate now name their mutable file-scope variables with the g_ prefix and camelBack, for example g_slots, g_binding, g_exactEnabled and g_stopRequested. - Two output statements in the DDS trace source are split so no line starts with "<<", and the exact-mode switch is computed from three named conditions before it is stored. The stored value is the same. Why: The code checker asks for one naming style for global variables. Only names and statement layout change; behaviour stays the same. command_lifecycle.h is not installed, so no public header changes. Verification: build-ci incremental build without errors, ctest 74/75: the bounded queue timing test BoundedBlockingQueueTest.StarvedSpinnerDoesNotStallSteadyPushes failed, and also failed in 2 of 3 runs alone. Its sources and test binary are not changed by this work; the cause was not investigated. Build and ctest were run on the final tree, not on each commit. Other checks: the trace source, its test and the candidate syntax-checked with communication trace on, clang-format clean, clang-tidy naming check finds no global variable names left (the candidate scan is partial: clang rejects a generated header). 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(style): drop blank lines at block edges and before result checks What: - Removed the blank line between a statement that stores a result and the "if" that checks it (232 places, comments in between are kept). - Removed blank lines right after an opening brace and right before a closing brace of a code block, including extern "C" blocks (56 places). Namespace blocks keep their blank lines. - Fixed the ibmw_gen templates that produced these blank lines (type support package entry point, publisher/subscriber registration checks, RPC client status checks) and regenerated the in-tree samples. Why: - The code checker wants a result check to follow the call directly and no empty lines at the edges of a block. The generator change keeps newly generated code in the same shape. Verification: - build-ci full rebuild: no errors; ctest 75/75 passed. - ibmw_gen tests: 346 passed, only the known failure that needs a build directory; scripts/regen_in_tree.sh 18/18 passed. - clang-format dry run, generated-code format check, function size check and license check: all clean; the blank-line scan finds no remaining place in tracked or generated code. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(core): split long statements so continuation indent is even What: - The engine builds its subsystem table with one push_back per subsystem instead of one long braced list; the entries, their order and their fields are unchanged. - The service and transport catalog key hashes combine one field per statement into a named result (same XOR, same hash value). - The generic DDS pub/sub type picks the CDR version into a named constant before it creates the Cdr object (both fastcdr branches). - The gRPC extension builds its server options in a named constant before passing it to Initialize. - The DDS native identity round-trip test and the managed exact candidate compute the run token from named parts (time and process id in the test, a RunToken helper in the candidate). Why: The code checker flags statement ends that sit at an indent that is not a multiple of four. clang-format put them there for long nested expressions, so the statements are split instead of changing the format config. Behaviour, hash values and initialization order stay the same. Verification: build-ci incremental build without errors, ctest 74/75: the bounded queue timing test BoundedBlockingQueueTest.StarvedSpinnerDoesNotStallSteadyPushes failed, and also failed in 2 of 3 runs alone. Its sources and test binary are not changed by this work; the cause was not investigated. Build and ctest were run on the final tree, not on each commit. Other checks: the round-trip test and the candidate syntax-checked with communication trace on, clang-format clean, function metrics clean. The fastcdr v1 branch of the generic type was not compiled. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
perf(transport): keep the iceoryx POD loan fast path in one function What: mark IceoryxTransportDriver::LoanPodSample, split out of LoanSample during the cleanup, as always inline, the same as the shm driver. Why: on the shm driver the same split left the POD loan helper out of line, so every loan paid a second prologue and stack check; on the OHOS board that made two-thread POD publishing 6 to 8 ns slower than master. The iceoryx driver has the identical split, so keep it consistent. Verification: the helper no longer exists as a separate symbol in the object file; host build passes; ctest 75/75 including the iceoryx extension test; clang-format clean; function size check 0. The board benchmark does not cover iceoryx. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 days ago | |
refactor(style): drop blank lines at block edges and before result checks What: - Removed the blank line between a statement that stores a result and the "if" that checks it (232 places, comments in between are kept). - Removed blank lines right after an opening brace and right before a closing brace of a code block, including extern "C" blocks (56 places). Namespace blocks keep their blank lines. - Fixed the ibmw_gen templates that produced these blank lines (type support package entry point, publisher/subscriber registration checks, RPC client status checks) and regenerated the in-tree samples. Why: - The code checker wants a result check to follow the call directly and no empty lines at the edges of a block. The generator change keeps newly generated code in the same shape. Verification: - build-ci full rebuild: no errors; ctest 75/75 passed. - ibmw_gen tests: 346 passed, only the known failure that needs a build directory; scripts/regen_in_tree.sh 18/18 passed. - clang-format dry run, generated-code format check, function size check and license check: all clean; the blank-line scan finds no remaining place in tracked or generated code. 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 |
| Files | Last commit | Last update |
|---|---|---|
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 4 days ago | ||
| 5 days ago | ||
| 5 days ago |