| Files | Last commit | Last update |
|---|---|---|
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(api): keep the flat region helper out of the public API What: move FlatBufferRegion into ibmw::util::detail, name the members of the new allocator code in camelBack with a trailing underscore, and add tests for a null region, an exact fill with an empty buffer, a second array growing on the heap, and the capacity doubling overflow guard. Why: the region helper only serves the two flat allocators and its Take() relies on an earlier CanTake(), so it should not look like public API. New names follow the repository naming rule; FlatBufferArrayAllocator's public functions and layout are unchanged. Verification: host build passes; allocator tests 18/18; ctest 75/75; clang-format clean; function size check 0. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 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(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 | |
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 | ||
| 4 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago |