{ "tokens": { "input": 165010, "cache_read": 145774, "cache_write": 12676, "output": 19987 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/a/aoflagger/aoflagger_3.5.1.orig.tar.gz", "main aoflagger-v3.5.1/external/npy.hpp:104:17: warning: Member variable 'header_t::dtype' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "header_t has only const members: dtype_t (a struct with const char/const unsigned members), const bool, and a const vector. The const bool fortran_order has no default initializer, so header_t's implicit default constructor is deleted. dtype_t's own const scalar members also make it non-default-constructible. Every header_t object must therefore be aggregate-initialized with all members set. The warning that 'dtype' has no initializer was a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/aoflagger/aoflagger_3.5.1.orig.tar.gz", "main aoflagger-v3.5.1/external/npy.hpp:105:14: warning: Member variable 'header_t::fortran_order' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "header_t has only const members: 'const bool fortran_order', 'const dtype_t dtype' and 'const std::vector shape', with no default initializers. The const scalar member 'fortran_order' deletes the implicit default constructor. So header_t can only be created by aggregate initialization, which must supply a value for fortran_order. Warning that it 'has no initializer' is therefore a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/blenkernel/intern/curve_to_mesh_convert.cc:232:25: warning: Member variable 'CurvesInfo::main' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "CurvesInfo::main is a reference member (`const CurvesGeometry &main;`). A reference member cannot be left uninitialized: it makes the implicit default constructor deleted, so every instance must initialize it. Here the only construction is aggregate initialization `{main, profile, ...}`. Warning that a reference member 'has no initializer' is therefore a false positive, and removing it is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/blenkernel/intern/lib_remap.cc:61:9: warning: Member variable 'IDRemap::bmain' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "IDRemap has the reference member `IDRemapper &id_remapper` with no default initializer, so its implicit default constructor is deleted. Every instance must be created by aggregate initialization. In that case any members not explicitly listed (bmain, id_owner, flag) are value-initialized. A 'no initializer' warning for bmain is therefore a false positive, and removing it is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc:144:30: warning: Member variable 'DotExportContext::digraph' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`DotExportContext` has a reference member `digraph` with no default member initializer. That makes its implicit default constructor deleted, so every instance must be created by aggregate initialization. In aggregate initialization the reference is always bound, and any omitted members are value-initialized. The 'digraph has no initializer' warning was therefore a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/draw/intern/draw_cache_impl_mesh.cc:1329:17: warning: Member variable 'BatchCreateData::batch' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "BatchCreateData has a reference member 'gpu::Batch &batch'. A reference must be bound when the object is created, so the default constructor is implicitly deleted and every instance is made through aggregate initialization. The code does exactly that: each instance lists all members (batch, prim_type, list, ibo, vbos). An 'uninitialized member' warning on the reference itself is meaningless. The PR now skips classes that are not default constructible, so removing this false positive is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/editors/sculpt_paint/grease_pencil_draw_ops.cc:654:8: warning: Member variable 'GreasePencilFillOpData::extension_cut' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "GreasePencilFillOpData has a reference member 'layer'. A reference member with no default initializer deletes the implicit default constructor. Every instance therefore has to be created with aggregate initialization, as from_context does with return {layer, ...}. Members that are not listed there are value-initialized, so 'extension_cut' cannot be left uninitialized by a default constructor. The uninitMemberVarNoCtor warning was a false positive, and removing it is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/editors/space_outliner/tree/tree_element_overrides.hh:25:30: warning: Member variable 'TreeElementOverridesData::override_property' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "TreeElementOverridesData has no user-declared constructor. It contains reference members (`ID &id`, `IDOverrideLibraryProperty &override_property`, and others), so its implicit default constructor is deleted. Every instance must therefore be created by aggregate initialization, which has to bind the references. Warning that the reference member 'override_property' has no initializer is meaningless: a reference cannot be left uninitialized. Removing this false positive is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/editors/space_outliner/tree/tree_element_overrides.hh:26:15: warning: Member variable 'TreeElementOverridesData::override_rna_ptr' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The removed warning claims the reference member 'override_rna_ptr' has no initializer. TreeElementOverridesData has several reference members (id, override_property, override_rna_ptr, override_rna_prop) with no default initializers. A reference member that is not default-initialized makes the implicit default constructor deleted, so every instance must be created by aggregate initialization that binds the references. A reference also cannot be left uninitialized, so 'has no initializer' is meaningless for it. The PR skips the check for such non-default-constructible structs, which removes this false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/geometry/intern/realize_instances.cc:312:22: warning: Member variable 'GatherTasksInfo::depths' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "GatherTasksInfo has reference members (pointclouds, meshes, depths, r_temporary_arrays, ...). That deletes its implicit default constructor, so every instance has to be aggregate-initialized with all references bound. A reference member also cannot be 'uninitialized' the way the warning suggests. The warning about 'depths' (a const VArray& reference) was a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/geometry/intern/realize_instances.cc:320:38: warning: Member variable 'GatherTasksInfo::r_temporary_arrays' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "GatherTasksInfo has reference members (pointclouds, meshes, depths, r_temporary_arrays, ...) and no user-declared constructor, so its implicit default constructor is deleted. Every instance must be aggregate-initialized, and a reference member cannot be left without an initializer. The uninitMemberVarNoCtor warning on the reference member r_temporary_arrays was a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/imbuf/intern/oiio/openimageio_support.hh:30:13: warning: Member variable 'ReadContext::flags' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "ReadContext has const non-class members with no default initializer: mem_size (const size_t), file_type (const enum) and flags (const int). Because of them the implicit default constructor is deleted, so every instance must be aggregate-initialized with values for these members. A const int member cannot be left uninitialized anyway. The uninitMemberVarNoCtor warning on 'flags' was therefore a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/blender/blender_5.0.1+dfsg.orig.tar.xz", "main blender-5.0.1/source/blender/nodes/shader/materialx/node_parser.h:96:18: warning: Member variable 'NodeParserData::to_type' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "NodeParserData has a reference member `NodeGraph &graph` with no default initializer. Because of that, the implicit default constructor is deleted, and the struct can only be created by aggregate initialization. Members such as `to_type` are then value-initialized, or given explicitly. So the uninitMemberVarNoCtor warning about missing initializers is a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/filezilla/filezilla_3.71.0.orig.tar.xz", "main filezilla-3.71.0/src/engine/server.cpp:10:23: warning: Member variable 't_protocolInfo::protocol' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "t_protocolInfo has const non-class members ('ServerProtocol const protocol', 'bool const translateable', 'char const* const name'). Their presence deletes the implicit default constructor, so every instance must be aggregate-initialized, as protocolInfos does. In main the warning on 'protocol' was a false positive. It is also odd to tell users to add an initializer to a const member that is always set by aggregate init. Removing it is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/filezilla/filezilla_3.71.0.orig.tar.xz", "main filezilla-3.71.0/src/engine/server.cpp:12:7: warning: Member variable 't_protocolInfo::alwaysShowPrefix' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "t_protocolInfo has const non-class members (ServerProtocol const protocol, bool const translateable, char const* const name). Because of them its implicit default constructor is deleted, so the struct can only be created by aggregate initialization, as in protocolInfos, which sets every member. The warning that 'alwaysShowPrefix' has no initializer was therefore a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/filezilla/filezilla_3.71.0.orig.tar.xz", "main filezilla-3.71.0/src/engine/server.cpp:13:7: warning: Member variable 't_protocolInfo::parse_from_prefix' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "t_protocolInfo has const non-class members (`ServerProtocol const protocol`, `bool const translateable`, `char const* const name`), so its implicit default constructor is deleted. Every instance must be aggregate-initialized, as protocolInfos does with full initializer lists. A non-const `bool parse_from_prefix` therefore can never be left uninitialized by a default constructor, and the uninitMemberVarNoCtor warning was a false positive. The PR removes it correctly." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/filezilla/filezilla_3.71.0.orig.tar.xz", "main filezilla-3.71.0/src/engine/server.cpp:14:15: warning: Member variable 't_protocolInfo::defaultPort' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "t_protocolInfo has const non-class members (ServerProtocol const protocol, bool const translateable, char const* const name). Because of them its implicit default constructor is deleted, so every object has to be aggregate-initialized, as protocolInfos does with every field. 'defaultPort' therefore can never be left uninitialized, and the removed uninitMemberVarNoCtor warning was a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/filezilla/filezilla_3.71.0.orig.tar.xz", "main filezilla-3.71.0/src/engine/server.cpp:15:13: warning: Member variable 't_protocolInfo::translateable' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "t_protocolInfo has const non-class members such as `bool const translateable` and `char const* const name`, and none of them has a default initializer. That makes the implicit default constructor deleted, so every instance must be aggregate-initialized with all members, as the protocolInfos array does. The 'no initializer' warning for translateable was therefore a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/filezilla/filezilla_3.71.0.orig.tar.xz", "main filezilla-3.71.0/src/engine/server.cpp:16:20: warning: Member variable 't_protocolInfo::name' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "t_protocolInfo has const non-class members (`bool const translateable`, `char const* const name`, and possibly the enum `protocol`) with no default initializers. That makes its implicit default constructor deleted, so every instance has to be aggregate-initialized with all members, as protocolInfos does. The uninitMemberVarNoCtor warning on 'name' was a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:107:14: warning: Member variable 'ElevationProfileFloatItem::m_configDialog' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a member `GeoDataPlacemark *const m_markerPlacemark;` with no default initializer, so its implicit default constructor is deleted. Any instance must therefore be created by a constructor (in real Marble code, a user-declared one defined in the .cpp) or by full initialization. Warning that `m_configDialog` 'has no initializer' in a class without a constructor is therefore a false positive. The PR's const-member check suppresses it correctly." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:108:39: warning: Member variable 'ElevationProfileFloatItem::ui_configWidget' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`ElevationProfileFloatItem` is a Marble plugin class with a user-declared constructor, implemented in the .cpp file, that initializes its members. So 'no constructor' warnings for it are false positives. It also has a const pointer member, `GeoDataPlacemark *const m_markerPlacemark`, with no default initializer. That alone deletes the implicit default constructor, so every instance must go through a constructor that initializes the members. The PR recognizes this and stops reporting `uninitMemberVarNoCtor` for `ui_configWidget`, so a false positive is gone." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:110:9: warning: Member variable 'ElevationProfileFloatItem::m_leftGraphMargin' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a member `GeoDataPlacemark *const m_markerPlacemark` with no default member initializer. If the class really had no user-declared constructor, its implicit default constructor would be deleted. Every object would then need aggregate or explicit initialization, so the uninitMemberVarNoCtor warning on `m_leftGraphMargin` would be meaningless. In practice this Qt plugin class has a user-defined constructor in its .cpp file, which Cppcheck evidently did not attribute to this scope, so 'no constructor' was already wrong. Removing the warning removes a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:111:9: warning: Member variable 'ElevationProfileFloatItem::m_eleGraphWidth' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a member `GeoDataPlacemark *const m_markerPlacemark` with no default member initializer. That const pointer makes the implicit default constructor deleted, so every instance must come from a constructor or initializer that sets members explicitly. The real Marble class also declares its own constructor, which initializes these members. Reporting uninitMemberVarNoCtor for `m_eleGraphWidth` was therefore a false positive, and the PR correctly suppresses it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:112:11: warning: Member variable 'ElevationProfileFloatItem::m_viewportWidth' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a non-static member without a default initializer, `GeoDataPlacemark *const m_markerPlacemark`. Without a user constructor, that const member makes the implicit default constructor deleted. Because the class has virtual functions, it is also not an aggregate. So it cannot be built without a user-written constructor, which would initialize the members. In practice this Marble plugin declares a constructor in its .cpp/earlier header lines that sets these members. Either way, the 'no initializer' warning for m_viewportWidth was a false positive, and the PR correctly suppresses it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:113:11: warning: Member variable 'ElevationProfileFloatItem::m_eleGraphHeight' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a `GeoDataPlacemark *const m_markerPlacemark` member with no default initializer. A const non-class member without an initializer deletes the implicit default constructor, so the class cannot be default-constructed and the 'no constructor' warning does not apply. In marble this class also has a user-declared constructor, defined in the .cpp file, that initializes these members. The uninitMemberVarNoCtor warning for m_eleGraphHeight was a false positive, and removing it is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:114:11: warning: Member variable 'ElevationProfileFloatItem::m_shrinkFactorY' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a non-static const pointer member without a default initializer (`GeoDataPlacemark *const m_markerPlacemark;`). Its implicit default constructor would therefore be deleted, so any usable instance must come from a real constructor. In fact the class declares one; it is defined in the .cpp file and initializes members such as m_shrinkFactorY. The 'no constructor / has no initializer' warning for m_shrinkFactorY was a false positive. The PR now recognizes const members as making the class not default-constructible, so it no longer reports this." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:116:9: warning: Member variable 'ElevationProfileFloatItem::m_fontHeight' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a non-static const pointer member without a default initializer (`GeoDataPlacemark *const m_markerPlacemark`). That deletes the implicit default constructor, so `uninitMemberVarNoCtor` does not apply. In marble the class also has a real constructor in the .cpp that initializes `m_fontHeight` and the other members. The removed warning was a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:122:29: warning: Member variable 'ElevationProfileFloatItem::m_markerPlacemark' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`m_markerPlacemark` is declared `GeoDataPlacemark *const` with no default member initializer. A const non-class member without an initializer deletes the implicit default constructor. So any instance must come from a user constructor (which marble actually has) that initializes it. The 'has no initializer' warning on this const pointer was a false positive, and the PR correctly suppresses uninitMemberVarNoCtor for such classes." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:123:9: warning: Member variable 'ElevationProfileFloatItem::m_documentIndex' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The class has a member `GeoDataPlacemark *const m_markerPlacemark;` with no default initializer. A const non-class member makes the implicit default constructor deleted, so any real instance must come from a user-provided constructor that initializes the members. The real plugin class is constructed through its constructor in the .cpp file, which initializes `m_documentIndex`. The uninitMemberVarNoCtor warning on `m_documentIndex` was therefore a false positive, and removing it is correct per the PR's intent." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:125:11: warning: Member variable 'ElevationProfileFloatItem::m_cursorPositionX' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a member `GeoDataPlacemark *const m_markerPlacemark;` with no default initializer. Because of that const pointer member, an implicit default constructor would be deleted, so every instance must be built by a constructor that initializes its members. In the real Marble code, ElevationProfileFloatItem has a user-defined constructor that initializes these members. The uninitMemberVarNoCtor warning about m_cursorPositionX having no initializer was therefore a false positive, and the PR's new not-default-constructible check correctly suppresses it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:127:10: warning: Member variable 'ElevationProfileFloatItem::m_isInitialized' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`ElevationProfileFloatItem` has a member `GeoDataPlacemark *const m_markerPlacemark` with no default initializer. A class with such a const member cannot use an implicit default constructor, so every object must come from a user-written constructor that initializes its members. In the real code, that constructor in the .cpp file initializes `m_isInitialized`. The uninitMemberVarNoCtor warning ('no initializer') was therefore a false positive. The PR removes it by treating classes with const or reference members as not default-constructible." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:132:19: warning: Member variable 'ElevationProfileFloatItem::m_marbleWidget' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "ElevationProfileFloatItem has a member `GeoDataPlacemark *const m_markerPlacemark;` with no default initializer. A class like that has no usable implicit default constructor, so any instance must initialize its members explicitly. Under the PR's logic, uninitMemberVarNoCtor no longer fires for such classes, which removes the warning on m_marbleWidget. In the real code this Marble plugin class has a user-defined constructor that initializes its members, including m_marbleWidget. A 'no constructor / no initializer' warning on m_marbleWidget was therefore a false positive, and removing it is an improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:134:9: warning: Member variable 'ElevationProfileFloatItem::m_firstVisiblePoint' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Main warned that `m_firstVisiblePoint` has no initializer because it thought the class had no constructor. The class also has `GeoDataPlacemark *const m_markerPlacemark;` with no default initializer. If the class really had no user-declared constructor, that const pointer would make the implicit default constructor deleted. Every instance would then need all members initialized explicitly, so the uninitMemberVarNoCtor warning would be a false positive. The real Marble class likely declares a constructor in parts of the header not shown, which would make the 'no ctor' warning wrong anyway. Either way, removing it removes a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:135:9: warning: Member variable 'ElevationProfileFloatItem::m_lastVisiblePoint' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The class has a const pointer member `GeoDataPlacemark *const m_markerPlacemark` with no default initializer. An implicit default constructor for such a class would be deleted, so a no-constructor instance with uninitialized members cannot exist. In the real code the class does declare a user constructor that initializes these members; main's 'NoCtor' warnings likely came from a parsing gap. Either way, the removed uninitMemberVarNoCtor warning for m_lastVisiblePoint was a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:136:10: warning: Member variable 'ElevationProfileFloatItem::m_zoomToViewport' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The class has a member `GeoDataPlacemark *const m_markerPlacemark;` with no default initializer. Because of it, the implicit default constructor is deleted, so any object of this class has to be built by a user-written constructor that initializes its members. Marble's plugin constructor in the .cpp file does this. So the uninitMemberVarNoCtor warning on `m_zoomToViewport`, which assumes there is no constructor, was a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:139:11: warning: Member variable 'ElevationProfileFloatItem::m_minElevation' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The class has the member `GeoDataPlacemark *const m_markerPlacemark;`, a const non-class member with no default initializer. Such a member deletes the implicit default constructor, so every instance must be built by a constructor that initializes members explicitly. The 'has no initializer' (uninitMemberVarNoCtor) warning assumes default construction, which cannot happen here. In marble this class also declares its own constructor in the .cpp file, so the NoCtor diagnosis was spurious anyway. Removing this warning on m_minElevation, and its siblings, drops a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:140:11: warning: Member variable 'ElevationProfileFloatItem::m_maxElevation' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The class has a `GeoDataPlacemark *const m_markerPlacemark` member with no default initializer. That const pointer makes the implicit default constructor deleted, so an instance can only exist through a user-written constructor. Marble's ElevationProfileFloatItem does have one, defined in the .cpp file with an initializer list. The 'no constructor' warning about m_maxElevation having no initializer was therefore a false positive, and the PR correctly suppresses it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:141:11: warning: Member variable 'ElevationProfileFloatItem::m_gain' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The class has a const pointer member, `GeoDataPlacemark *const m_markerPlacemark`, with no default initializer. Such a class cannot be default constructed without a user-written constructor, so any real instance initializes members explicitly. The PR now skips the uninitMemberVarNoCtor check in this case, which removes the m_gain warning. The warning was also inappropriate because ElevationProfileFloatItem is a Marble plugin class that declares a constructor; Cppcheck likely missed it because of the Qt macros. Removing this false positive is an improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/marble/marble_26.04.0.orig.tar.xz", "main marble-26.04.0/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.h:142:11: warning: Member variable 'ElevationProfileFloatItem::m_loss' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The class has a member `GeoDataPlacemark *const m_markerPlacemark;`, a const pointer with no default initializer. Because of it, an implicit default constructor would be deleted. So the only way to create the object is a user constructor that initializes members; the real class has one in its .cpp file. That means the uninitMemberVarNoCtor warning on `m_loss`, which assumes default construction, was a false positive. The PR intentionally skips classes that are not default constructible, so removing this warning is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/qtpim-opensource-src/qtpim-opensource-src_5.0~git20201102.f9a8f0fc+dfsg1.orig.tar.xz", "main qtpim-opensource-src-5.0~git20201102.f9a8f0fc/src/versit/qversitdefs_p.h:70:17: warning: Member variable 'VersitSubTypeMapping::versitString' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "VersitSubTypeMapping has const non-class members (`const QContactDetail::DetailType detailType`, `const int contactSubType`) with no default initializers. That makes its implicit default constructor deleted, so the struct can only be built through aggregate initialization, which initializes every member. Instances can never be default-constructed, so claiming that 'versitString' has no initializer is a false positive. The PR correctly skips such non-default-constructible structs." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/qtpim-opensource-src/qtpim-opensource-src_5.0~git20201102.f9a8f0fc+dfsg1.orig.tar.xz", "main qtpim-opensource-src-5.0~git20201102.f9a8f0fc/src/versit/qversitdefs_p.h:72:15: warning: Member variable 'VersitSubTypeMapping::contactSubType' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "VersitSubTypeMapping is an aggregate whose members include `const int contactSubType` and `const QContactDetail::DetailType detailType`, neither with an initializer. Const scalar members without initializers make the implicit default constructor deleted. The struct can therefore only be created with aggregate/brace initialization, which must supply these members. An 'uninitMemberVarNoCtor' warning on such a member is a false positive, and the PR correctly suppresses it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/qtpim-opensource-src/qtpim-opensource-src_5.0~git20201102.f9a8f0fc+dfsg1.orig.tar.xz", "main qtpim-opensource-src-5.0~git20201102.f9a8f0fc/src/versit/qversitdefs_p.h:82:17: warning: Member variable 'VersitContactDetailMapping::versitPropertyName' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "VersitContactDetailMapping has the members 'const int detailField' and 'const QContactDetail::DetailType detailType', and neither has an initializer. A const non-class member without an initializer deletes the implicit default constructor. That means the struct can only be created by aggregate initialization, which sets every member, including versitPropertyName. The struct is used that way in the mapping tables. The uninitMemberVarNoCtor warning was therefore a false positive, and removing it is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/qtpim-opensource-src/qtpim-opensource-src_5.0~git20201102.f9a8f0fc+dfsg1.orig.tar.xz", "main qtpim-opensource-src-5.0~git20201102.f9a8f0fc/src/versit/qversitdefs_p.h:84:15: warning: Member variable 'VersitContactDetailMapping::detailField' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "VersitContactDetailMapping is a plain aggregate. Its members `const QContactDetail::DetailType detailType` and `const int detailField` have no default initializers. A const scalar member without an initializer deletes the implicit default constructor. So every instance must be aggregate-initialized with all values supplied, as the mapping tables in this file do. The warning that 'detailField' has no initializer was therefore a false positive, and the PR correctly removes it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/qtpim-opensource-src/qtpim-opensource-src_5.0~git20201102.f9a8f0fc+dfsg1.orig.tar.xz", "main qtpim-opensource-src-5.0~git20201102.f9a8f0fc/src/versitorganizer/qversitorganizerdefs_p.h:64:17: warning: Member variable 'VersitOrganizerDetailMapping::versitPropertyName' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "VersitOrganizerDetailMapping has const non-class members (detailType, detailField) with no initializers, so its implicit default constructor is deleted. It can only be created by aggregate initialization, which leaves no member uninitialized, and the only use here initializes every field. The warning on versitPropertyName was a false positive, and the PR correctly drops it." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/qtpim-opensource-src/qtpim-opensource-src_5.0~git20201102.f9a8f0fc+dfsg1.orig.tar.xz", "main qtpim-opensource-src-5.0~git20201102.f9a8f0fc/src/versitorganizer/qversitorganizerdefs_p.h:66:15: warning: Member variable 'VersitOrganizerDetailMapping::detailField' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The struct has const members (`const int detailField`, a const enum `detailType`) and no default member initializers. Because of the const members, the implicit default constructor is deleted. Every instance must therefore be aggregate-initialized, as the table below does, and a 'no initializer' warning for detailField is a false positive. Main also warned about a non-default-initialized struct, which this check normally only does when some member has a default initializer. Either way, flagging a const int member that cannot be left uninitialized is wrong, so removing it is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/r/renderdoc/renderdoc_1.24+dfsg.orig.tar.xz", "main renderdoc-1.24/util/test/demos/3rdparty/fmt/format.h:1524:11: warning: Member variable 'hex_writer::num_digits' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "hex_writer has a reference member 'int_writer& self', so it has no usable default constructor. It can only be created by aggregate initialization, and the code does that with hex_writer{*this, num_digits}, which sets num_digits. The old warning that num_digits has no initializer was a false positive. The PR skips classes that cannot be default constructed, so removing this warning is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/r/renderdoc/renderdoc_1.24+dfsg.orig.tar.xz", "main renderdoc-1.24/util/test/demos/3rdparty/fmt/format.h:1576:11: warning: Member variable 'num_writer::size' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`num_writer` has a reference member `const std::string& groups` and no default member initializer, so its implicit default constructor is deleted. Every instance must be aggregate-initialized with all members, as `on_num` does with `num_writer{abs_value, size, groups, sep}`. A default-constructed object that leaves `size` uninitialized cannot exist, so the warning on `size` was a false positive. Removing it is correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/r/renderdoc/renderdoc_1.24+dfsg.orig.tar.xz", "main renderdoc-1.24/util/test/demos/3rdparty/fmt/format.h:1577:26: warning: Member variable 'num_writer::groups' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "num_writer has a reference member 'groups' (const std::string&), so it has no usable default constructor and every instance must be aggregate-initialized with all members, as on_num does. A warning that the reference 'groups' has no initializer is therefore a false positive. A reference cannot even take a default member initializer in a way that fixes this pattern. The PR detects the reference member, skips the class, and removes the warning." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/seastar/seastar_25.05.0.orig.tar.gz", "main seastar-25.05.0/src/core/program_options.hh:42:28: warning: Member variable 'group_metadata::name' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "group_metadata has a reference member 'const std::string& name' and no default member initializer for it, so its implicit default constructor is deleted. Any instance must therefore be aggregate-initialized, which also requires binding the reference. The warning about 'name' having no initializer is a false positive: a reference cannot be left uninitialized. The PR suppresses it correctly." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/seastar/seastar_25.05.0.orig.tar.gz", "main seastar-25.05.0/src/core/program_options.hh:44:14: warning: Member variable 'group_metadata::used' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "group_metadata has a reference member 'const std::string& name' with no default initializer. Because of it, the implicit default constructor is deleted, so every instance has to be created through aggregate initialization, which supplies the members. The warning that 'used' has no initializer was therefore a false positive. Removing it is correct." } } ], "started": "2026-10-10 02:51:42 UTC", "runner": "pc" }