| Files | Last commit | Last update |
|---|---|---|
docs(wording): use neutral, impersonal wording in docs and comments Rewrite second-person and absolute or marketing words in Chinese docs (including the html roadmap twin and the shared-memory notes) into neutral wording: no direct addressing, 第一个/第一次 instead of 首个/首次, 推荐 instead of 首选, 完整 instead of 全面, 验收 instead of 认证, and so on. Technical terms, product names, file names and version identifiers are left as they are. The few English words reworded in comments and the user guide (denylist/allowlist, good faith, puts/keeps) are kept in step with the iceoryx generator template and its checked-in sample output. 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 | |
fix(selfdev/shm): apply the OHOS lambda capture workaround only to trees that need it What: - Move the registry subscription lambda capture change out of ohos/ibmw-core-workaround.diff into ohos/ibmw-core-capture-workaround.diff. - run_shm_ohos.sh applies the CMake part to every copied tree as before, and the capture part only when the tree's registry subscription source (.cpp, or .cc in trees before the suffix rename) still captures with a bare [&]; trees that already capture driver by name are left alone. Why: the current tree already captures driver explicitly, so the old single diff no longer applied and the OHOS build stages stopped at the patch step, while older baseline trees for the benchmark comparison still need the change. Verification: on exports of the current tree and of an older baseline, the patch step succeeds; the baseline gets the explicit capture and both get the CMake changes; bash -n is clean. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
perf(shm): keep the publish fast path in one function What: mark StampPublishLocked and DeliverToAllLocked, the two helpers split out of PublisherImpl::Publish, as always inline. Why: after the split the compiler kept both helpers out of line, so every publish made two extra calls. On the OHOS board pod_loan_publish was 4 to 6 ns slower than master in every round. Verification: disassembly shows Publish as one function again with no calls to the helpers; board run (11 interleaved rounds, all clean) pod_loan_publish 64B -2.9 ns, 4096B -1.1 ns against master; host build passes, ctest 75/75, clang-format clean, function size check 0. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(style): keep stream operators at the end of wrapped lines What: - Split long stream output chains into one statement per line, so no wrapped line starts with a "<<" operator. - In tests, move long conditions or lookups into named locals and build long failure messages as a string first, so each assertion fits on one line. - Applied the same change repo-wide (about 180 statements in 79 files): JSON and YAML builders, CLI output, diagnostics and tests. Why: - The code checker requires that a wrapped expression keeps its operator at the end of the line, not at the start of the next line. clang-format always breaks before "<<", so the only way to satisfy both tools is to keep each statement short enough to fit on one line. - The produced text is unchanged: every split statement writes the same pieces in the same order. Verification: - build-ci full rebuild: no errors; ctest 75/75 passed. - mw_perf_collect tests: 969 passed, 2 skipped; core metrics tests: 215 passed. - clang-format dry run, generated-code format check, function size check and license check: all clean; no code line starts with a binary operator. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(selfdev): split long functions in the shared-memory transport What: - Publisher, subscriber, listener, platform and runtime code: long functions are split into private helpers along their existing steps (socket setup, handshake handling, segment growth, delivery, event dispatch). - Tests, the test peer and the benchmark tool: repeated or long blocks move into small helper functions. - The two OHOS probe programs: main is split into one function per checked step. Why: The size check limits function length, nesting depth and branch count. Behaviour, messages, error codes and the order of checks are unchanged; no copies or allocations were added on the publish and take paths. Verification: - ibmw_selfdev_shm_test: 110 passed, 1 skipped (needs root, as before). - ctest -R shm: 3/3 passed. - The OHOS C programs pass gcc -fsyntax-only. - clang-format --dry-run -Werror on the changed files is clean. 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 |