{ "tokens": { "input": 1671, "cache_read": 0, "cache_write": 1702, "output": 735 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/p/pmdk/pmdk_1.13.1.orig.tar.gz", "your pmdk-1.13.1/src/common/rand.c:57:16: style:inconclusive: Function 'rnd64_r' argument 1 names different: declaration 'rng' definition 'state'. [funcArgNamesDifferent]\n pmdk-1.13.1/src/common/rand.h:20:25: note: Function 'rnd64_r' argument 1 names different: declaration 'rng' definition 'state'.\n pmdk-1.13.1/src/common/rand.c:57:16: note: Function 'rnd64_r' argument 1 names different: declaration 'rng' definition 'state'." ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "In pmdk, `rng_t` is an array typedef (`uint64_t[4]`). After typedef simplification, the header prototype `uint64_t rnd64_r(rng_t *rng);` becomes `uint64_t rnd64_r(uint64_t (*rng)[4]);`. Before this PR, Cppcheck read that prototype as a variable declared with an initializer, so the parameter `rng` got no variable id and the name check was skipped. The PR now treats `( * name ) [` as a parameter declaration. The declaration uses `rng` and the definition in rand.c uses `state`, so the new funcArgNamesDifferent warning is a true positive." } } ], "started": "2026-11-17 16:26:07 UTC", "runner": "server" }