mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-12 09:47:20 +08:00
make lint-ci was red on this branch before any of the rebase work. cppcheck reported all four halves of two ULARGE_INTEGER values in cbm_path_info_utf8 as assigned-but-never-read. The code is correct -- it is a union, and .QuadPart reads exactly what .LowPart/.HighPart wrote -- but cppcheck does not model that aliasing, so it cannot see the read. Composing the two 64-bit values arithmetically says the same thing without the union, so the checker needs no exception. That is the repository's stated preference: refactor first, adjust the rule second, suppress only as a rare justified exception -- and a suppression here would have to be re-justified by every future reader. Also applies clang-format to the lines this rebase touched in pipeline.c and extract_usages.c, plus one pre-existing violation in pipeline_incremental.c. Formatting only; the file set is limited to what LINT_SRCS/LINT_HDRS actually covers, so no unrelated whole-file reflow rides along. make -f Makefile.cbm lint-ci: passes. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>