AI review of 2026-11-17_18-23-37-396bb75d6b32-results.txt PR: #9039 https://github.com/cppcheck-opensource/cppcheck/pull/9039 Tested: 396bb75d6b32cba2f8170953b0265b0ab08e762d Merge base: fdc1942e21674cf597694868c9cca80c48caa052 Reviewed: 2026-11-18 06:29:59 UTC Model: claude-opus-5-5 (effort high) Results: 7 reviewed of 7 in the report, the test is still running (300 analysed of 1000 requested packages) Verdicts: 4 improvement, 3 regression Tokens: 16789 input, 6835 cache read, 2734 cache write, 2445 output The verdicts are written by AI and can be wrong. ---- 1 / 7 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/ckermit/ckermit_416~beta12.orig.tar.gz Result: main ckuusr.c:13423:2: error: Non-local variable 'xargv' will use pointer to local variable 'list'. [danglingLifetime] ckuusr.c:13418:11: note: Array decayed to pointer here. ckuusr.c:13407:9: note: Variable created here. ckuusr.c:13423:2: note: Non-local variable 'xargv' will use pointer to local variable 'list'. Explanation: The danglingLifetime warning is still reported. Only the 'Array decayed to pointer here' note changed. Main pointed to line 13418 `list[i]`, which is a subscript, not a decay. The PR now points to line 13423 `xargv = list`, where the array really decays to a pointer. The warning itself is a true positive: the global xargv is left pointing to the local array list after the block ends. The message is now more accurate. ---- 2 / 7 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/ckermit/ckermit_416~beta12.orig.tar.gz Result: main ckuusr.c:13424:2: error: Non-local variable 'xargv' will use pointer to local variable 'list'. [danglingLifetime] ckuusr.c:13418:11: note: Array decayed to pointer here. ckuusr.c:13407:9: note: Variable created here. ckuusr.c:13424:2: note: Non-local variable 'xargv' will use pointer to local variable 'list'. Explanation: The warning itself stays: `xargv = list;` stores the address of the local array `list` in the global `xargv`. That pointer outlives the block, so the danglingLifetime report is a real issue. Only the note changed. Main said the array decayed at `list[i]` (line 13418), which is just a subscript and not a decay. The PR now points at line 13423:10, the `xargv = list` assignment where the decay actually happens. The diagnostic is more accurate. ---- 3 / 7 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/ckermit/ckermit_416~beta12.orig.tar.gz Result: your ckuusr.c:13423:2: error: Non-local variable 'xargv' will use pointer to local variable 'list'. [danglingLifetime] ckuusr.c:13423:10: note: Array decayed to pointer here. ckuusr.c:13407:9: note: Variable created here. ckuusr.c:13423:2: note: Non-local variable 'xargv' will use pointer to local variable 'list'. Explanation: The warning is a true positive. 'xargv = list;' stores the address of the local array 'list' in a global pointer, and the warning stays reported. Only the note changed. Main said the array decayed at line 13418 ('list[i]'), but that is a subscript, which accesses an element and does not use the array as a pointer. The note now points to 13423:10, the assignment 'xargv = list' where the decay actually happens. The message is more accurate. ---- 4 / 7 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/ckermit/ckermit_416~beta12.orig.tar.gz Result: your ckuusr.c:13424:2: error: Non-local variable 'xargv' will use pointer to local variable 'list'. [danglingLifetime] ckuusr.c:13423:10: note: Array decayed to pointer here. ckuusr.c:13407:9: note: Variable created here. ckuusr.c:13424:2: note: Non-local variable 'xargv' will use pointer to local variable 'list'. Explanation: The code does `xargv = list;` at line 13423, where `list` is a local array, and `xargv` is a global. The decay really happens there, so the danglingLifetime warning itself is a true positive. The PR only changes the 'Array decayed to pointer here' note. Main pointed to `list[i]` at line 13418, which is a subscript and not a decay. The new output points to the real decay at `xargv = list` (13423:10). The message is now more accurate. ---- 5 / 7 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/f/funtools/funtools_1.4.8.orig.tar.gz Result: your funtools-1.4.8/gnu/sort.c:1620:23: warning: Either the condition 'i