{ "tokens": { "input": 189660, "cache_read": 200190, "cache_write": 6673, "output": 21813 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/g/gfarm/gfarm_2.8.11+dfsg.orig.tar.xz", "main gfarm-2.8.11/lib/libgfarm/gfarm/gfs_dircache.c:464:7: warning: Uninitialized variable: nattrsp [uninitvar]\n gfarm-2.8.11/lib/libgfarm/gfarm/gfs_dircache.c:570:11: note: Calling function 'gfs_getattrplus_caching0', 6th argument '&nattrs' value is \n gfarm-2.8.11/lib/libgfarm/gfarm/gfs_dircache.c:464:7: note: Uninitialized variable: nattrsp" ], "verdict": { "verdict": "improvement", "confidence": "low", "explanation": "The removed warning is a false positive. `nattrsp` is a valid pointer to the caller's `nattrs`, and it is passed to `gfs_getattrplus` and `gfs_lgetattrplus` as an output parameter. Reading through it only happens after a successful call has filled it. So there is no uninitialized use. However, the PR only changes the C++ template simplifier, which should not run on this .c file. The disappearance is therefore probably incidental (e.g. timing or nondeterminism) rather than caused by better analysis. Still, losing this false positive is good for users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:462:5: warning: The class 'BackpressureConcurrentQueue < std :: shared_ptr < RecordBatch > >' defines member function with name 'Pop' also defined in its parent class 'ConcurrentQueue < std :: shared_ptr < RecordBatch > >'. [duplInheritedMember]\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:136:5: note: Parent function 'ConcurrentQueue < std :: shared_ptr < RecordBatch > >::Pop'\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:462:5: note: Derived function 'BackpressureConcurrentQueue < std :: shared_ptr < RecordBatch > >::Pop'" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`BackpressureConcurrentQueue` derives from `ConcurrentQueue`, which is defined earlier in the same file (line 136). The derived `Pop()` has the same signature as the parent's `Pop()`, so it hides it. The parent's queue methods are plain non-virtual members, which is exactly the case duplInheritedMember reports. The hiding is deliberate here, but by the checker's definition the warning is correct. It appears now because the PR's improved template-name lookup lets the instantiation `BackpressureConcurrentQueue>` and its base be resolved correctly. The base class named in the warning matches the real code, so this is a valid new finding rather than a misresolution." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:468:8: warning: The class 'BackpressureConcurrentQueue < std :: shared_ptr < RecordBatch > >' defines member function with name 'Push' also defined in its parent class 'ConcurrentQueue < std :: shared_ptr < RecordBatch > >'. [duplInheritedMember]\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:148:8: note: Parent function 'ConcurrentQueue < std :: shared_ptr < RecordBatch > >::Push'\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:468:8: note: Derived function 'BackpressureConcurrentQueue < std :: shared_ptr < RecordBatch > >::Push'" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "BackpressureConcurrentQueue derives from ConcurrentQueue and defines its own non-virtual Push(const T&) (line 468) with the same name as the parent's Push (line 148). The derived Push hides the base one. That is exactly what duplInheritedMember reports, so the warning is factually correct. It appears now because the PR's improved template-name lookup lets Cppcheck instantiate the base class template and link the two classes. The hiding looks intentional (the derived version adds backpressure handling), but the checker's report is accurate. This is a newly found true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:474:8: warning: The class 'BackpressureConcurrentQueue < std :: shared_ptr < RecordBatch > >' defines member function with name 'Clear' also defined in its parent class 'ConcurrentQueue < std :: shared_ptr < RecordBatch > >'. [duplInheritedMember]\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:158:8: note: Parent function 'ConcurrentQueue < std :: shared_ptr < RecordBatch > >::Clear'\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:474:8: note: Derived function 'BackpressureConcurrentQueue < std :: shared_ptr < RecordBatch > >::Clear'" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`BackpressureConcurrentQueue` publicly derives from `ConcurrentQueue`. It defines a non-virtual `Clear()` with the same signature as the base class's `Clear()` at line 158, so it hides the base function. That is exactly what duplInheritedMember reports. A call through a `ConcurrentQueue&` would bypass the backpressure handling, so the warning is accurate. It now appears because the PR's improved template-name lookup instantiates `BackpressureConcurrentQueue>`, which main apparently did not. This is a newly found true positive, even if the hiding is intentional in Arrow's design." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:480:20: warning: The class 'BackpressureConcurrentQueue < std :: shared_ptr < RecordBatch > >' defines member function with name 'TryPop' also defined in its parent class 'ConcurrentQueue < std :: shared_ptr < RecordBatch > >'. [duplInheritedMember]\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:165:20: note: Parent function 'ConcurrentQueue < std :: shared_ptr < RecordBatch > >::TryPop'\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/acero/asof_join_node.cc:480:20: note: Derived function 'BackpressureConcurrentQueue < std :: shared_ptr < RecordBatch > >::TryPop'" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "BackpressureConcurrentQueue derives from ConcurrentQueue and defines a non-virtual TryPop() (line 480) with the same name as the parent's TryPop() (line 165). The derived function hides the base one, which is exactly what duplInheritedMember reports. The warning appears now because the PR's improved template lookup lets Cppcheck instantiate the class template for std::shared_ptr. The hiding looks intentional, but by the checker's definition this is a correct new finding that comes from better template understanding." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/compute/kernels/aggregate_mode.cc:158:14: debug: Failed to instantiate template \"PrepareOutput\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "Line 158 calls the function template `PrepareOutput(0, ctx, *out->type(), out)` inside the class template `CountModer`. `PrepareOutput` is an ordinary template declared earlier in the same namespace, so this is valid code that Cppcheck should be able to handle. The pull request changes how template names are looked up while class templates are expanded (`findTemplateDeclaration` and `findMemberTemplateScope`). After the change, Cppcheck reports a new debug message that it failed to instantiate `PrepareOutput`. That is a new failure in the template simplifier. It may be a side effect of more templates being reached now, but it still shows a template it could not handle, so it counts as a regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc:126:14: debug: Failed to instantiate template \"CheckFloatTruncation\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "CheckFloatTruncation is an ordinary call to a function template defined earlier in the same file, made from inside the function template CheckFloatToIntTruncationImpl. Main instantiated it without complaint. With the PR, Cppcheck now emits a new 'Failed to instantiate template' debug message here. The PR changes how the scope of nested instantiations is resolved inside expandTemplate (findTemplateDeclaration and findMemberTemplateScope). It probably now records a scope that does not match the declaration. The same new debug message appears for several other files in this package, which points to a systematic loss of template understanding." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/compute/kernels/scalar_if_else.cc:1159:14: debug: Failed to instantiate template \"IfElseFunctor\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new templateInstantiation debug message for IfElseFunctor inside ResolveIfElseExec. IfElseFunctor is a valid template in the same namespace and main instantiated it without complaint. The PR changed how the scope of nested instantiations is resolved: it now uses findTemplateDeclaration and member-template lookup. That apparently produces a scope the simplifier cannot match, so the instantiation now fails. This means Cppcheck understands the code worse. Several similar new templateInstantiation failures appear in other files of the same package, which supports this." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/compute/kernels/scalar_if_else_benchmark.cc:398:27: debug: Failed to instantiate template \"GetBytesProcessed\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new debug message: cppcheck now fails to instantiate GetBytesProcessed at line 398. GetBytesProcessed is an ordinary class template in arrow's benchmark code, and ChooseBench uses it in a plain way. Main handled this without the bailout. The PR changes how instantiation scopes are resolved, so the new 'Failed to instantiate template' message means cppcheck now understands this code worse. The same package also gains several other templateInstantiation debug messages and template-related warnings." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/compute/kernels/vector_replace.cc:432:13: debug: Failed to instantiate template \"ReplaceMaskImpl\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new templateInstantiation debug message for ReplaceMaskImpl::ExecScalarMask. The usage sits inside a class template, and ReplaceMaskImpl is a normal template declared in the enclosing namespace. Main handled this case without reporting anything. The PR changed how the scope of nested instantiations is resolved, through findTemplateDeclaration and member-template lookup. Now Cppcheck fails to instantiate this template, so it understands the code worse. Many similar new templateInstantiation failures appear across arrow in this package, which points to a systematic lookup regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/compute/kernels/vector_replace.cc:737:14: debug: Failed to instantiate template \"FillNullImpl\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "low", "explanation": "Line 737 is an ordinary call `FillNullImpl::Exec(...)` inside the class template `FillNullBackward`. FillNullImpl is a template in the same namespace, likely with enable_if-based specializations. With the PR, Cppcheck now reports a new debug message saying it failed to instantiate `FillNullImpl`; main did not report it. The PR changes how the scope of new instantiations found inside expanded templates is resolved, via findTemplateDeclaration and member-template lookup. That change probably produced a scope or name that no longer matches the declaration. It is also possible the message appears only because the PR saves passes and the simplifier now reaches this instantiation. Either way, a new templateInstantiation failure on valid code means Cppcheck understands this code worse, so this is treated as a regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/compute/key_hash_test.cc:125:9: debug: Failed to instantiate template \"GenerateUniqueRandomBinary\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "`GenerateUniqueRandomBinary` is called inside the member template `RunSingle`. In Arrow it is a static member template of the same test class. Once `RunSingle` is instantiated, the call becomes a concrete instantiation that should resolve to that member template. With the PR, Cppcheck now emits a new templateInstantiation bailout for this call. The new scope computation in `expandTemplate` most likely attaches a scope that does not match the declaration, so the instantiation fails. That is a new debug/bailout message on valid code, which means Cppcheck understands this code worse than before." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/compute/key_hash_test.cc:127:26: debug: Failed to instantiate template \"SampleUniqueBinary\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "Line 127 calls the function template `SampleUniqueBinary(...)` inside the member template `RunSingle`. This is ordinary code that main handled without complaint. With the PR, a new `templateInstantiation` debug message says Cppcheck failed to instantiate it. The likely cause is the PR's new scope lookup for instantiations created while expanding a template. The source code does not change, so the new bailout means Cppcheck now understands this code worse. The same diff also adds several other new `Failed to instantiate` messages." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/util/decimal_test.cc:1067:8: style: Either there is a missing 'override', or the member function 'arrow::TestDecimalToReal < std :: pair < Decimal128 , float > >::TestPrecision' can be static. [functionStatic]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "With the PR, the class template TestDecimalToReal is now instantiated for std::pair. Main failed to instantiate it, presumably because of the scope lookup this PR fixes. TestPrecision only calls the free function template CheckDecimalToReal with literal arguments. It uses only class typedefs and never touches `this` or any member, and it is not a virtual override of a gtest base method. So the claim that it could be static is technically correct. This is a new true-positive style finding that comes from better template understanding." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/util/decimal_test.cc:1067:8: style: Either there is a missing 'override', or the member function 'arrow::TestDecimalToReal < std :: pair < Decimal256 , float > >::TestPrecision' can be static. [functionStatic]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`TestPrecision()` only calls the free function template `CheckDecimalToReal` with literal arguments. It uses no members and is not virtual, so it could indeed be static. The PR improves template name lookup, so the `TestDecimalToReal>` instantiation is now analysed and this correct style finding appears. It is a new true positive, though a low-value style one." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/arrow/util/int_util.cc:676:10: debug: Failed to instantiate template \"IntegersInRange\". The checking continues anyway. [templateInstantiation]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new debug message saying Cppcheck failed to instantiate IntegersInRange, called from CheckIntegersInRangeImpl. Both functions are in the same anonymous namespace inside arrow::internal. Main did not emit this message, so the change to the scope lookup in getTemplateInstantiations/expandTemplate probably gives the new instantiation the wrong scope. This is one of several new templateInstantiation failures in this package. A new debug message like this means Cppcheck understands the code worse." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:1141:24: warning: The class 'TestByteStreamSplitEncoding < DoubleType >' defines member variable with name 'TYPE' also defined in its parent class 'TestEncodingBase < DoubleType >'. [duplInheritedMember]\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:221:24: note: Parent variable 'TestEncodingBase < DoubleType >::TYPE'\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:1141:24: note: Derived variable 'TestByteStreamSplitEncoding < DoubleType >::TYPE'" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "In Arrow's encoding_test.cc, `TestEncodingBase` declares `static constexpr int TYPE = Type::type_num;` at line 221. The derived `TestByteStreamSplitEncoding` declares the same `TYPE` again at line 1141, which hides the base member. That is exactly what duplInheritedMember is meant to report, so the new warning is a true positive. It even points at the correct parent location. The PR's improved template lookup now resolves the parent template instantiation `TestEncodingBase`, which main apparently did not, so this warning appears now. The duplicate is redundant (same value) rather than harmful, but the report is accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:1141:24: warning: The class 'TestByteStreamSplitEncoding < FloatType >' defines member variable with name 'TYPE' also defined in its parent class 'TestEncodingBase < FloatType >'. [duplInheritedMember]\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:221:24: note: Parent variable 'TestEncodingBase < FloatType >::TYPE'\n kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:1141:24: note: Derived variable 'TestByteStreamSplitEncoding < FloatType >::TYPE'" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestByteStreamSplitEncoding derives from TestEncodingBase. It declares `static constexpr int TYPE = Type::type_num;` at line 1141. The base declares a member TYPE at line 221, which in Arrow's test is the same declaration. So the derived class really does hide an inherited member with the same name, which is exactly what duplInheritedMember reports. The warning now appears because the PR improves template lookup in namespace and class scope, so the base template TestEncodingBase is resolved and instantiated where it was not before. The hiding is harmless here because both members have the same value, but the finding itself is accurate: a new true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:229:8: style: Either there is a missing 'override', or the member function 'parquet::test::TestEncodingBase < DoubleType >::TearDown' can be static. [functionStatic]" ], "verdict": { "verdict": "improvement", "confidence": "low", "explanation": "`TestEncodingBase` derives from `::testing::Test`, whose `TearDown()` is virtual. `void TearDown() {}` therefore overrides it but is not marked `override`. Cppcheck cannot see gtest's base class, so it uses the 'Either there is a missing override, or ... can be static' wording, and the 'missing override' part is accurate for this code. The warning shows up now because the PR lets the class template be instantiated (`TestEncodingBase`), apparently via the derived `TestByteStreamSplitEncoding` at line 1141. That points to better template understanding, though the warning is repeated for each instantiation. Confidence is low because the same PR also adds several new templateInstantiation debug messages elsewhere in this package, so its overall template handling here is mixed." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:229:8: style: Either there is a missing 'override', or the member function 'parquet::test::TestEncodingBase < FloatType >::TearDown' can be static. [functionStatic]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`TestEncodingBase` derives from `::testing::Test`. Its `TearDown()` is an empty function that does not use `this`, and it overrides gtest's virtual `TearDown` without the `override` keyword. The message \"Either there is a missing 'override', or ... can be static\" is therefore accurate: `override` really is missing. The warning appears now because the PR's improved template lookup instantiates `TestEncodingBase`, which is really used through `TestByteStreamSplitEncoding`. This is a valid new style finding on code that is actually instantiated, not a misparse." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:271:15: warning: Member variable 'TestEncodingBase < DoubleType >::allocator_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestEncodingBase is a gtest fixture with no user-declared constructor. Its raw members (`MemoryPool* allocator_`, the ints and the `c_type*` pointers) have no default member initializers. They are only assigned later, in SetUp()/InitData(), so after construction `allocator_` really is uninitialized. That is exactly what uninitMemberVarNoCtor reports, so the warning is technically correct. It appears now because the PR's improved template-name lookup lets Cppcheck instantiate TestEncodingBase through TestByteStreamSplitEncoding. This is a newly found true positive from better template understanding. It is somewhat noisy for gtest fixtures, which initialize members in SetUp() by design, but it is not wrong." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:271:15: warning: Member variable 'TestEncodingBase < FloatType >::allocator_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestEncodingBase is a gtest fixture with no constructor. `allocator_` (a raw `MemoryPool*`) has no in-class initializer and is only assigned later in SetUp(). So right after construction the member really is uninitialized, which is exactly what uninitMemberVarNoCtor reports. The warning appears now because the PR's improved template name lookup lets cppcheck instantiate TestEncodingBase, reached through TestByteStreamSplitEncoding. The finding is factually correct, though some users may see it as low value for gtest fixtures, and it may duplicate the same warning for other instantiations at the same line." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:273:7: warning: Member variable 'TestEncodingBase < DoubleType >::num_values_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestEncodingBase has no constructor, and `int num_values_` is only assigned later in InitData(). After default construction the member really is uninitialized, which is exactly what uninitMemberVarNoCtor reports, so this is a true positive. Main missed it because it never instantiated TestEncodingBase. The PR's better template-declaration lookup now instantiates the base class, so its members get checked." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:273:7: warning: Member variable 'TestEncodingBase < FloatType >::num_values_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestEncodingBase is a gtest fixture with no constructor. `num_values_` is a plain `int` with no default member initializer, and it is only assigned later in InitData(). So the class really does leave this member uninitialized at construction, which is exactly what uninitMemberVarNoCtor reports. The warning appears now because the PR's improved template lookup lets Cppcheck instantiate TestEncodingBase, which is a real instantiation through TestByteStreamSplitEncoding. That makes this a newly found true positive in the checker's sense, although in practice the fixture always calls InitData before reading the member." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:274:7: warning: Member variable 'TestEncodingBase < DoubleType >::type_length_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`TestEncodingBase` is a gtest fixture class with no constructor. Its `int type_length_` member has no default member initializer and is only assigned later (e.g. in `SetUp`/`InitData`). That is exactly what uninitMemberVarNoCtor reports, so the message is technically correct. It now appears for the `DoubleType` instantiation because the PR resolves template names in namespaces better, so this instantiation (reached via `TestByteStreamSplitEncoding`) is now expanded. The new warning is a true positive consistent with the checker's semantics." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:274:7: warning: Member variable 'TestEncodingBase < FloatType >::type_length_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestEncodingBase has no constructor, and `int type_length_;` has no default member initializer, so it really is uninitialized when the object is constructed. Any later assignment in a SetUp-style method does not change that, and this is exactly what uninitMemberVarNoCtor reports. The new line appears because the PR's improved template-name lookup now instantiates TestEncodingBase, the real base of TestByteStreamSplitEncoding. The warning is a true positive for that real instantiation, matching the matching DoubleType report and the warnings on the other members." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:275:11: warning: Member variable 'TestEncodingBase < DoubleType >::draws_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`TestEncodingBase` has no user-declared constructor, and its raw pointer member `draws_` has no default member initializer. It is only assigned later in `InitData()`, so after construction the pointer really is uninitialized. That is exactly what uninitMemberVarNoCtor reports. The warning appears now because the PR's improved template-name lookup lets Cppcheck instantiate `TestEncodingBase` through `TestByteStreamSplitEncoding`. That instantiation is also why the new duplInheritedMember findings on line 1141 show up. Cppcheck now analyzes code it previously skipped and reports a valid finding. It partly duplicates the same finding for the other type arguments, but it is still a correct warning." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:275:11: warning: Member variable 'TestEncodingBase < FloatType >::draws_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestEncodingBase has no constructor, and its raw pointer member `c_type* draws_` has no default member initializer. It is only assigned later in InitData(), so after construction it is indeterminate. That is exactly what uninitMemberVarNoCtor reports, so the warning is technically correct for this code. The PR changes how template names are resolved to their declarations. That now lets Cppcheck instantiate TestEncodingBase through TestByteStreamSplitEncoding, so the existing check runs on this instantiation too. This is a true positive gained from better template handling. The debug messages added elsewhere in the package are separate results." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:276:11: warning: Member variable 'TestEncodingBase < DoubleType >::decode_buf_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestEncodingBase has no constructor, and the raw pointer member `decode_buf_` has no default member initializer. It is only assigned later in InitData(), so the uninitMemberVarNoCtor statement is factually correct. The new report appears because the PR now resolves `TestEncodingBase` inside `TestByteStreamSplitEncoding` and instantiates the base class. That instantiation looks right: the matching duplInheritedMember warning on TYPE at line 221 vs 1141 also shows the real base. So this is a true positive (by the checker's definition) found through better template instantiation, although for a gtest fixture it is of limited practical value." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kylin-ai-vector-engine/kylin-ai-vector-engine_1.2.0.1.orig.tar.gz", "your kylin-ai-vector-engine-1.2.0.1/thirdparty/arrow/cpp/src/parquet/encoding_test.cc:276:11: warning: Member variable 'TestEncodingBase < FloatType >::decode_buf_' has no initializer. [uninitMemberVarNoCtor]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "TestEncodingBase is a class template with no constructor. Its raw pointer member decode_buf_ has no default member initializer and stays uninitialized until InitData() runs. That is exactly the case uninitMemberVarNoCtor reports, so the warning is technically correct. It appears now because the PR resolves the template name lookup so that TestEncodingBase gets instantiated (via TestByteStreamSplitEncoding), letting Cppcheck check code it previously skipped. In practice the fixture assigns the pointer before use, so the finding is low-impact, but it is not a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/o/openfoam/openfoam_1912.200626.orig.tar.bz2", "main openfoam-OpenFOAM-v1912.200626/src/OpenFOAM/global/argList/argListI.H:259:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args_ [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "low", "explanation": "`argList::get(label)` is an out-of-class member template definition, and `args_` is a data member of `Foam::argList`. Main reported `args_` as an incomplete variable, meaning it was not linked to that member. This typically happens when an instantiated copy of the template ends up outside the class scope. The PR makes the template simplifier resolve the declaration's real scope through `findTemplateDeclaration`, so the instantiation is probably now placed in `Foam::argList` and `args_` resolves. Losing a debug bailout that way is an improvement. Confidence is low because the bailout would also vanish if this instantiation were no longer generated at all, and the output shown cannot tell the two cases apart." } } ], "started": "2026-11-28 15:00:14 UTC", "runner": "aws-testrunner-3" }