| 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 |