{ "tokens": { "input": 4741, "cache_read": 4874, "cache_write": 4874, "output": 2022 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/l/log4cplus/log4cplus_2.1.2.orig.tar.xz", "main log4cplus-2.1.2/catch/include/internal/catch_assertioninfo.h:22:34: warning: Member variable 'AssertionInfo::resultDisposition' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "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." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/l/log4cplus/log4cplus_2.1.2.orig.tar.xz", "main log4cplus-2.1.2/catch/include/internal/catch_section_info.h:37:16: warning: Member variable 'SectionEndInfo::durationInSeconds' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "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." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tippecanoe/tippecanoe_2.79.0.orig.tar.gz", "main tippecanoe-2.79.0/catch/catch.hpp:1401:34: warning: Member variable 'AssertionInfo::resultDisposition' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "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." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tippecanoe/tippecanoe_2.79.0.orig.tar.gz", "main tippecanoe-2.79.0/catch/catch.hpp:2879:16: warning: Member variable 'SectionEndInfo::durationInSeconds' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "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." } } ], "started": "2026-11-13 15:01:10 UTC", "runner": "server" }