AI review of 2026-11-10_15-17-11-eb7b004313ef-results.txt PR: #9013 https://github.com/cppcheck-opensource/cppcheck/pull/9013 Tested: eb7b004313efc7f6d08444b9762ad8cd3db145fc Merge base: 7b481f4b458d1b95d5f9201fd9895980064ecfb2 Reviewed: 2026-11-17 01:24:49 UTC Model: claude-opus-5-5 (effort high) Results: 4 reviewed of 4 in the report Verdicts: 4 improvement Tokens: 4741 input, 4874 cache read, 4874 cache write, 2022 output The verdicts are written by AI and can be wrong. ---- 1 / 4 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/l/log4cplus/log4cplus_2.1.2.orig.tar.xz Result: main log4cplus-2.1.2/catch/include/internal/catch_assertioninfo.h:22:34: warning: Member variable 'AssertionInfo::resultDisposition' has no initializer. [uninitMemberVarNoCtor] Explanation: `AssertionInfo` is an aggregate whose member `lineInfo` is a Catch `SourceLineInfo`. That type has `SourceLineInfo() = delete;` and only a two-argument constructor. So `AssertionInfo` cannot be default-constructed and must be created by aggregate (brace) initialization. In brace initialization, any member not listed is value-initialized, so `resultDisposition` is never left uninitialized. The comment in the struct says the authors even wanted to delete its default constructor. The PR now recognizes members whose type has no usable default constructor and stops reporting. This removes a false positive. ---- 2 / 4 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/l/log4cplus/log4cplus_2.1.2.orig.tar.xz Result: main log4cplus-2.1.2/catch/include/internal/catch_section_info.h:37:16: warning: Member variable 'SectionEndInfo::durationInSeconds' has no initializer. [uninitMemberVarNoCtor] Explanation: SectionEndInfo is an aggregate containing a SectionInfo member. SectionInfo only has constructors that take arguments, so SectionEndInfo cannot be default-constructed. Every instance must be aggregate-initialized, and any member left out (such as durationInSeconds) is value-initialized to zero. In Catch it is created as `SectionEndInfo{ sectionInfo, prevAssertions, durationInSeconds }`. The uninitMemberVarNoCtor warning was therefore a false positive, and the PR correctly removes it. ---- 3 / 4 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/t/tippecanoe/tippecanoe_2.79.0.orig.tar.gz Result: main tippecanoe-2.79.0/catch/catch.hpp:1401:34: warning: Member variable 'AssertionInfo::resultDisposition' has no initializer. [uninitMemberVarNoCtor] Explanation: AssertionInfo is an aggregate with a SourceLineInfo member. In Catch2, SourceLineInfo deletes its default constructor and only has a (file, line) constructor. So AssertionInfo cannot be default-constructed and can only be created by aggregate initialization. With aggregate initialization, resultDisposition is always either given explicitly or value-initialized, so it can never be left uninitialized. The removed uninitMemberVarNoCtor warning was a false positive, and the PR correctly treats members whose type has no default constructor as making the class non-default-constructible. ---- 4 / 4 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/t/tippecanoe/tippecanoe_2.79.0.orig.tar.gz Result: main tippecanoe-2.79.0/catch/catch.hpp:2879:16: warning: Member variable 'SectionEndInfo::durationInSeconds' has no initializer. [uninitMemberVarNoCtor] Explanation: SectionEndInfo contains a SectionInfo member. SectionInfo only has constructors that take arguments, so SectionEndInfo has no usable default constructor. It can only be created by aggregate initialization, and in Catch it is built as `SectionEndInfo{info, assertions, seconds}`. Any member omitted from an aggregate initializer is value-initialized (zero for a double), so durationInSeconds can never be left uninitialized. The removed uninitMemberVarNoCtor warning was a false positive.