AI review of 2026-10-23_16-11-07-eecfc81d00c7-results.txt PR: #8720 https://github.com/cppcheck-opensource/cppcheck/pull/8720 Tested: eecfc81d00c73b883497443a9637a9d42849594c Merge base: bb94cbb21fde39d93429750b28cd30c815baf50b Reviewed: 2026-10-27 13:19:46 UTC Model: claude-opus-5-5 (effort high) Results: 50 reviewed of 244 in the report (random sample) Verdicts: 16 improvement, 6 neutral, 26 regression, 2 unclear Tokens: 128223 input, 3798431 cache read, 77519 cache write, 44028 output The verdicts are written by AI and can be wrong. ---- 1 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/akonadi-calendar/akonadi-calendar_26.08.2.orig.tar.xz Result: your akonadi-calendar-26.08.2/src/incidencechanger_p.h:124:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR adds a new 'SymbolDatabase couldn't resolve all user defined types' debug message at the CreationChange class. The class body only has ordinary members such as Akonadi::Collection, QSharedPointer and constructors. Main did not report this, so the new template type-deduction rounds, with their incremental or full symbol database rebuild, left some type pointers unresolved. That means Cppcheck now understands this code worse than before. ---- 2 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/akonadi-contacts/akonadi-contacts_26.08.2.orig.tar.xz Result: your akonadi-contacts-26.08.2/src/akonadi-contacts-core/abstractcontactgroupformatter.cpp:16:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR moves createSymbolDatabaseNeedInitialization() out of the SymbolDatabase constructor into the new finalize() step, and it also changes how symbols and types are updated after template deduction. That is the phase that emits this debug message. The private class here has simple members (KContacts::ContactGroup, Akonadi::Item, QList), and main resolved them without complaint. The new 'couldn't resolve all user defined types' message only appears with the PR, so need-initialization type resolution for this class has gotten worse. A new debug message like this is a regression. ---- 3 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/apache-arrow/apache-arrow_25.0.0.orig.tar.gz Result: main apache-arrow-25.0.0/c_glib/arrow-glib/array-builder.cpp:281:44: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] Explanation: In this template, 'values' is passed to g_bytes_get_data(), whose GLib signature takes a non-const 'GBytes *'. Declaring the parameter as 'const GBytes *' would make that call fail to compile without a cast. So the constParameterPointer warning was a false positive. The PR changes how templates and the symbol database are built, and that change removed this warning, which helps users. ---- 4 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/a/apache-arrow/apache-arrow_25.0.0.orig.tar.gz Result: your apache-arrow-25.0.0/cpp/src/arrow/util/int_util.cc:543:18: style: Condition 'val>=0' is always true [knownConditionTrueFalse] Explanation: The lambda is inside `CheckIndexBoundsImpl`, a template instantiated for both signed and unsigned index types. - **Removed warning:** main's `unsignedPositive` ("Unsigned expression 'val' can't be negative") was template-dependent and is false for the int8/16/32/64 instantiations. The PR suppresses it for template-argument types, which is correct. - **New warning:** `knownConditionTrueFalse` for `val >= 0` holds in every instantiation. - For unsigned types, `val >= 0` is trivially true. - For signed types, `(IsSigned && val < 0) ||` short-circuits all negative values, so `val >= 0` is reached only when it is true. The new message is therefore technically accurate for the generic code, while the old one was wrong for half the instantiations. It is a low-value style finding: the redundancy is intentional for readability. Net effect is a slightly more accurate message. ---- 5 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/asio/asio_1.36.0.orig.tar.bz2 Result: main asio-1.36.0/src/examples/cpp11/executors/actor.cpp:65:16: style: The function 'handle_message' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] asio-1.36.0/src/examples/cpp11/executors/actor.cpp:44:16: note: Virtual function in base class asio-1.36.0/src/examples/cpp11/executors/actor.cpp:65:16: note: Function in derived class Explanation: `mf_message_handler::handle_message` (line 65) overrides the pure virtual `message_handler::handle_message` (line 44) and has no `override` specifier. The missingOverride warning was therefore a true positive. The PR changes template instantiation and symbol-database handling, and as a side effect Cppcheck apparently no longer links this override to the base class in the instantiated class. The sibling warnings (`message_id`, and the cpp14 copy of this file) disappeared too, which points to Cppcheck understanding the code worse, not to a false positive being fixed. ---- 6 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/asio/asio_1.36.0.orig.tar.bz2 Result: main asio-1.36.0/src/examples/cpp14/executors/actor.cpp:65:16: style: The function 'handle_message' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] asio-1.36.0/src/examples/cpp14/executors/actor.cpp:44:16: note: Virtual function in base class asio-1.36.0/src/examples/cpp14/executors/actor.cpp:65:16: note: Function in derived class Explanation: `mf_message_handler::handle_message` really does override the pure virtual `message_handler::handle_message` from its base class template. It is declared `virtual` without `override`, so the missingOverride style warning is a true positive. The PR removes it, along with the matching `message_id` warnings in both actor.cpp files. The likely cause is that the new type-deduction and incremental symbol database code changed how this class template is instantiated or linked to its base, so Cppcheck no longer sees the override relationship. Losing a valid warning is a regression. ---- 7 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/asmjit/asmjit_0.0~git20231115.1da9e4d.orig.tar.xz Result: main asmjit-0.0~git20231115.1da9e4d/src/asmjit/core/support.h:1306:5: style: Local variable 'bitMask' shadows outer function [shadowFunction] asmjit-0.0~git20231115.1da9e4d/src/asmjit/core/support.h:250:49: note: Shadowed function asmjit-0.0~git20231115.1da9e4d/src/asmjit/core/support.h:1306:5: note: Shadow local variable Explanation: In bitVectorSetBit, the local variable `T bitMask` has the same name as the function template `Support::bitMask` declared at line 250 in the same namespace. Inside the body that function is shadowed, so the shadowFunction style warning was a true positive. The PR's new type deduction probably instantiates the `bitMask` template from calls with variable arguments. The generic declaration is then removed or renamed to `bitMask<...>`, so the shadowing is no longer seen. The source still has the shadowing, so losing both warnings (lines 1306 and 1321) means two true positives are gone. ---- 8 / 50 ---- Verdict: UNCLEAR (low confidence) Package: https://ftp.debian.org/debian/pool/main/b/botan/botan_2.19.5+dfsg.orig.tar.xz Result: main botan-2.19.5+dfsg/src/lib/x509/certstor_system_windows/certstor_windows.cpp:97:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_context [valueFlowBailoutIncompleteVar] Explanation: The removed line is only a debug bailout (valueFlowBailoutIncompleteVar). It points at `if(m_context)` in the second member template `close()` of the class template `Handle_Guard`. `m_context` is a plain class member, so calling it an "incomplete variable" was an artifact of how the template copy was tokenized. The PR moves `createSymbolDatabaseIncompleteVars` into `finalize()` and changes when template declarations are kept or removed. It is not visible whether the message vanished because `m_context` is now resolved, or because this `close()` body is no longer analyzed (removed or left as an uninstantiated template). No real warnings changed, so the user impact cannot be determined. ---- 9 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/coot/coot_1.1.18+dfsg.orig.tar.xz Result: your coot-1.1.18+dfsg/coot-utils/tree.hh:634:60: warning:inconclusive: Member variable 'tree < coot :: linked_residue_t , std :: allocator < tree_node_ < coot :: linked_residue_t > > >::alloc_' is not assigned a value in 'tree < coot :: linked_residue_t , std :: allocator < tree_node_ < coot :: linked_residue_t > > >::operator='. [operatorEqVarError] Explanation: The new warning flags `alloc_` as not assigned in the move assignment operator of `tree`. `alloc_` is a `std::allocator>` member, and `std::allocator` is stateless. Leaving it unassigned in `operator=` is intentional and harmless; the move operator correctly moves the nodes by relinking `head` and `feet`. So this is a false positive (inconclusive at best). The same false warning also appears for the copy assignment at line 626. Each one is reported twice under two spellings of the same instantiation (`coot::linked_residue_t` and `linked_residue_t`), which suggests the PR's template and symbol-database changes created duplicated or altered class instantiations. Together with the new valueFlow bailout in the same package, this points to worse code understanding. ---- 10 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/cpp-httplib/cpp-httplib_0.41.0+ds.orig.tar.xz Result: your cpp-httplib-0.41.0+ds/httplib.h:13141:25: style:inconclusive: Technically the member function 'httplib::ClientImpl::setup_redirect_client < httplib :: ClientImpl >' can be const. [functionConst] cpp-httplib-0.41.0+ds/httplib.h:2356:39: note: Technically the member function 'httplib::ClientImpl::setup_redirect_client < httplib :: ClientImpl >' can be const. cpp-httplib-0.41.0+ds/httplib.h:13141:25: note: Technically the member function 'httplib::ClientImpl::setup_redirect_client < httplib :: ClientImpl >' can be const. Explanation: With the PR, the call `setup_redirect_client(redirect_client)` is deduced as `setup_redirect_client` and instantiated, so the member function body is now checked. In the visible code, the body only reads members of `this` (timeouts, `keep_alive_`, `compress_`, proxy settings and so on) and passes them to setters on the separate `client` parameter. It does not modify `*this` or call non-const members on it. The rest of the body is truncated but appears to follow the same copy pattern. So the member template could technically be declared const, and this inconclusive style warning is a new true positive. The instantiated name in the message is slightly awkward, but it still points to the correct function. ---- 11 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/critterding/critterding_1.0-beta14+dfsg.orig.tar.xz Result: main critterding-beta14/src/cl/clcontext.cpp:108:17: style: The member function 'CLContext::enqueueReadBuffer' can be static. [functionStatic] critterding-beta14/src/cl/clcontext.h:36:8: note: The member function 'CLContext::enqueueReadBuffer' can be static. critterding-beta14/src/cl/clcontext.cpp:108:17: note: The member function 'CLContext::enqueueReadBuffer' can be static. Explanation: enqueueReadBuffer calls checkVal(status, CL_SUCCESS, ...). The same warning disappeared for setKernelArg and enqueueNDRangeKernel, which also call checkVal with a cl_int variable as argument. This strongly suggests checkVal is a member function template of CLContext. Main could not deduce T from a variable argument, so the call stayed unresolved and Cppcheck wrongly concluded the method uses no members. With the PR, T is deduced from the variable, checkVal is instantiated, and the call is linked to a non-static member function. Calling a non-static member means the method cannot simply be made static, so the warning was a false positive and its removal is correct. Confidence is medium because clcontext.h is not shown. ---- 12 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/c/critterding/critterding_1.0-beta14+dfsg.orig.tar.xz Result: main critterding-beta14/src/cl/clcontext.cpp:83:17: style: The member function 'CLContext::enqueueNDRangeKernel' can be static. [functionStatic] critterding-beta14/src/cl/clcontext.h:32:8: note: The member function 'CLContext::enqueueNDRangeKernel' can be static. critterding-beta14/src/cl/clcontext.cpp:83:17: note: The member function 'CLContext::enqueueNDRangeKernel' can be static. Explanation: `enqueueNDRangeKernel`, `setKernelArg` and `enqueueReadBuffer` use no data members directly. Their only possible link to the object is the call to `checkVal(status, CL_SUCCESS, "...")`. The header is not shown, but this helper probably comes from the AMD SDK, where `checkVal` is a non-static template member function. Main likely flagged these functions because it could not link that call to the uninstantiated member template. The PR adds type deduction from argument types, so `checkVal(...)` can now be instantiated and linked to the member. A function that calls a non-static member cannot be made static, so removing these three warnings together is most likely a removed false positive. Confidence is low because the declaration of `checkVal` is not visible. ---- 13 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/darkradiant/darkradiant_3.9.0.orig.tar.gz Result: your codereader-DarkRadiant-f84caab/libs/pugixml/pugixml.cpp:4440:144: style: Parameter 'alloc' can be declared as pointer to const [constParameterPointer] Explanation: With the PR, Cppcheck deduces the template arguments of the `node_copy_string(...)` calls and instantiates the function template, so its body is now checked. Inside, `alloc` is only tested for null (`if (alloc && ...)`); it is never dereferenced, passed on as non-const or modified. Declaring it `const xml_allocator*` would compile and keep the same behaviour. The new constParameterPointer warning is therefore a true positive that only became visible because Cppcheck now understands the template call. ---- 14 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/doxygen/doxygen_1.17.0+ds.orig.tar.xz Result: main doxygen-Release_1_17_0/src/growvector.h:65:9: style: Class 'Iterator < const GrowVector < std :: variant < DocWord , DocLinkedWord , DocURL , DocLineBreak , DocHorRuler , DocAnchor , DocCite , DocStyleChange , DocSymbol , DocEmoji , DocWhiteSpace , DocSeparator , DocVerbatim , DocInclude , DocIncOperator , DocFormula , DocIndexEntry , DocAutoList , DocAutoListItem , DocTitle , DocXRefItem , DocImage , DocDotFile , DocMscFile , DocDiaFile , DocVhdlFlow , DocLink , DocRef , DocInternalRef , DocHRef , DocHtmlHeader , DocHtmlDescTitle , DocHtmlDescList , DocSection , DocSecRefItem , DocSecRefList , DocInternal , DocParBlock , DocSimpleList , DocHtmlList , DocSimpleSect , DocSimpleSectSep , DocParamSect , DocPara , DocParamList , DocSimpleListItem , DocHtmlListItem , DocHtmlDescData , DocHtmlCell , DocHtmlCaption , DocHtmlRow , DocHtmlTable , DocHtmlBlockQuote , DocText , DocRoot , DocHtmlDetails , DocHtmlSummary , DocPlantUmlFile , DocMermaidFile > > , const std :: variant < DocWord , DocLinkedWord , DocURL , DocLineBreak , DocHorRuler , DocAnchor , DocCite , DocStyleChange , DocSymbol , DocEmoji , DocWhiteSpace , DocSeparator , DocVerbatim , DocInclude , DocIncOperator , DocFormula , DocIndexEntry , DocAutoList , DocAutoListItem , DocTitle , DocXRefItem , DocImage , DocDotFile , DocMscFile , DocDiaFile , DocVhdlFlow , DocLink , DocRef , DocInternalRef , DocHRef , DocHtmlHeader , DocHtmlDescTitle , DocHtmlDescList , DocSection , DocSecRefItem , DocSecRefList , DocInternal , DocParBlock , DocSimpleList , DocHtmlList , DocSimpleSect , DocSimpleSectSep , DocParamSect , DocPara , DocParamList , DocSimpleListItem , DocHtmlListItem , DocHtmlDescData , DocHtmlCell , DocHtmlCaption , DocHtmlRow , DocHtmlTable , DocHtmlBlockQuote , DocText , DocRoot , DocHtmlDetails , DocHtmlSummary , DocPlantUmlFile , DocMermaidFile > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Explanation: Line 65 is `DEFAULT_COPYABLE(Iterator)`, which expands to defaulted copy/move members. The only one-argument constructor there is the copy constructor `Iterator(const Iterator&)`. A copy constructor should never be flagged by noExplicitConstructor. The warning only appeared because, in the instantiated nested class template, Cppcheck did not recognise the constructor as a copy constructor. The companion uninitMemberVar warnings on the same defaulted members were removed too, and they are also false positives. Removing this false positive is an improvement. ---- 15 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/e/extremetuxracer/extremetuxracer_0.8.4.orig.tar.xz Result: your extremetuxracer-0.8.4/src/matrices.h:23:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: Only the PR build reports this new debug message, on the class template TMatrix. Main resolves the types in this file. The PR changes how template instantiations and deferred template declarations update the symbol database, through incremental add and remove and the split-off finalize(). Some type references around TMatrix are now left unresolved, so Cppcheck understands this code less well than before. The code itself is ordinary and contains nothing that should stop types from being resolved. ---- 16 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/f/fastml/fastml_3.11.orig.tar.gz Result: your FastML.v3.11/libs/phylogeny/likeDist.cpp:182:69: performance: Function parameter 'f' should be passed by const reference. [passedByValue] Explanation: `myNRmethod` is a generic Newton-Raphson helper that takes its function objects `f` and `df` by value through template parameters (`regF f`, `dF df`). Passing callables by value is the normal C++ convention, the same one the standard algorithms use. The new warning shows up only because the PR now deduces `regF` from a call with a functor such as `C_evalLikeDist`. The check is then applied to that instantiation, even though the parameter's type in the source is the template parameter `regF`. Suggesting `const regF&` for a generic callable is not a useful fix, since it applies to every possible functor. It could even break compilation if the functor's `operator()` is not const, which is common in this codebase's style; I could not confirm this from the code shown. The PR itself adds an `isTemplateArg()` guard for another check because of this kind of problem. This new `passedByValue` is likely noise, not a real issue. ---- 17 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/g/geos/geos_3.15.0.orig.tar.bz2 Result: your geos-3.15.0/util/geosop/cxxopts.hpp:1710:39: style: Argument 'value' shadows outer function [shadowFunction] geos-3.15.0/util/geosop/cxxopts.hpp:1000:3: note: Shadowed function geos-3.15.0/util/geosop/cxxopts.hpp:1710:39: note: Shadow argument Explanation: Line 1000 is cxxopts' free function template `template std::shared_ptr value()`. It is only called with explicit template arguments (`cxxopts::value()`). Main removed the generic template after instantiating it, so nothing named `value` was left to shadow. The PR now keeps the generic declaration. The likely cause is the new `hasRemainingCalls`/`isPlainCall` heuristic, which only matches by name: member calls such as `x->value()` / `details.value()` look like remaining calls of the template. Because the template stays in the symbol database, every parameter or local called `value` (here the `OptionAdder::operator()` argument) is now reported as shadowing it. Nothing changed in the code. The warnings come from a template kept by mistake, and a parameter shadowing a function template that is always called qualified with explicit arguments is harmless. This is new noise, not a useful finding. ---- 18 / 50 ---- Verdict: REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/g/glslang/glslang_16.6.0.orig.tar.gz Result: your glslang-16.6.0/gtests/HexFloat.cpp:1030:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] Explanation: The PR adds a new debug bailout in the generic body of the function template `BadFloatParseCase` (and `GoodFloatParseCase`), where `T` is treated as an incomplete variable. Neither the old literal deduction nor the new type deduction can handle these calls, because the first parameter is `std::string literal` (an unsupported parameter form). So no new instantiation explains the change. The template is still not instantiated. Instead, the generic body is now kept or analysed differently, likely because of the new deferred removal / `hasRemainingCalls` logic or the reordered symbol database phases. ValueFlow then bails out on `T`. A new bailout with no gain in understanding is a small regression, although the exact cause is not certain. ---- 19 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/g/gnss-sdr/gnss-sdr_0.0.21.orig.tar.gz Result: your gnss-sdr-gnss-sdr-0d41426/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/qa_utils.cc:414:31: style: C-style pointer casting [cstyleCast] Explanation: Line 414 casts `in2`, which already has type `t*`, to `(t *)` with a C-style cast inside the function template `fcompare`. On main the template was not instantiated, so the cast target was an unresolved template type. Cppcheck therefore reported the warning-level `dangerousTypeCast` ("potentially invalid type conversion"). With the PR, the call sites deduce `t` (e.g. float), so the template is instantiated and the cast is a concrete float*→float* conversion. That conversion is harmless but is still a C-style pointer cast in C++ code. The style-level `cstyleCast` describes the code accurately, while the warning overstated the risk of an identity cast. The message became more accurate because Cppcheck now knows the type. ---- 20 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/g/googletest/googletest_1.18.0.orig.tar.gz Result: your googletest-1.18.0/googletest/src/gtest-printers.cc:267:34: style: Condition '1<=c' is always true [knownConditionTrueFalse] googletest-1.18.0/googletest/src/gtest-printers.cc:261:9: note: Assuming that condition 'c==0' is not redundant googletest-1.18.0/googletest/src/gtest-printers.cc:267:34: note: Condition '1<=c' is always true Explanation: `PrintCharAndCodeTo` is a function template. It is now instantiated through the new deduction from the calls `PrintTo(unsigned char)`, `PrintTo(signed char)` and `PrintTo(wchar_t)`. Only in the `unsigned char` instantiation does `c != 0` imply `1 <= c`. For `signed char` and `wchar_t` (signed on Linux), `c` can be negative, so the check is needed. The warning comes from one instantiation and flags a condition that depends on the template type. The generic source code is correct and the user cannot remove the condition, so this is a new false positive. ---- 21 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/h/hmat-oss/hmat-oss_1.11.1.orig.tar.gz Result: your hmat-oss-1.11.1/src/compression.cpp:713:33: style:inconclusive: Function 'compress' argument 1 names different: declaration 'compression' definition 'method'. [funcArgNamesDifferent] hmat-oss-1.11.1/src/compression.hpp:176:38: note: Function 'compress' argument 1 names different: declaration 'compression' definition 'method'. hmat-oss-1.11.1/src/compression.cpp:713:33: note: Function 'compress' argument 1 names different: declaration 'compression' definition 'method'. Explanation: The template `compress` is declared in compression.hpp:176 with first parameter `compression` and defined at compression.cpp:713 with first parameter `method`. The parameter names really differ, so this style warning is accurate, and the note points at both locations. The PR's new type deduction instantiates calls like `compress(method, f, rows, cols, epsilon)`, which now links the instantiated declaration to its definition and makes the check fire. This is a new true positive, not a false positive. ---- 22 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/h/hmat-oss/hmat-oss_1.11.1.orig.tar.gz Result: your hmat-oss-1.11.1/src/compression.cpp:715:48: style:inconclusive: Function 'compress' argument 6 names different: declaration '' definition 'ao'. [funcArgNamesDifferentUnnamed] Explanation: The definition at line 712-715 names its 6th parameter 'ao'. Its paired finding shows the header declaration (compression.hpp:176) uses different names: 'compression' vs 'method' for argument 1. A header declaration that leaves the trailing 'const AllocationObserver &' parameter unnamed (for example with a default argument) is plausible, so the funcArgNamesDifferentUnnamed report matches the code. Main already has this check; the PR's template handling now lets Cppcheck pair the template declaration with its definition, so it reports the mismatches it missed before. The header itself is not shown, so the unnamed 6th parameter cannot be confirmed. ---- 23 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/h/htmlcxx/htmlcxx_0.87.orig.tar.gz Result: your htmlcxx-0.87/html/tree.h:436:36: warning:inconclusive: Member variable 'tree < HTML :: Node , std :: allocator < tree_node_ < HTML :: Node > > >::alloc_' is not assigned a value in 'tree < HTML :: Node , std :: allocator < tree_node_ < HTML :: Node > > >::operator='. [operatorEqVarError] Explanation: In `tree::operator=`, `alloc_` is a `std::allocator>` member. `std::allocator` is stateless, and its `propagate_on_container_copy_assignment` is false, so copy assignment is not supposed to copy the allocator. `copy_()` correctly copies only the tree contents and reuses the existing head and feet nodes. Not assigning `alloc_` is intended, not a bug. This new inconclusive `operatorEqVarError` warning only appears because of the PR's changes to template and symbol database handling, and the code itself is fine, so it is a new false positive. ---- 24 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/h/htmlcxx/htmlcxx_0.87.orig.tar.gz Result: your htmlcxx-0.87/html/tree.h:436:36: warning:inconclusive: Member variable 'tree < Node , std :: allocator < tree_node_ < Node > > >::alloc_' is not assigned a value in 'tree < Node , std :: allocator < tree_node_ < Node > > >::operator='. [operatorEqVarError] Explanation: `operator=` delegates to `copy_()`, which rebuilds the node structure through `clear`, `insert` and `replace`. The only member not touched is `alloc_`, a `std::allocator` whose type depends on the template parameter. `std::allocator` is stateless, and standard containers deliberately do not propagate it on copy assignment, so not assigning it is correct. The new inconclusive operatorEqVarError is therefore noise, not a real bug. Main did not report it. It most likely appears because the PR's template deduction now resolves the member-template calls inside `copy_`, so the checker analyzes the operator differently. The result is a new false positive. ---- 25 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/i/irrlicht/irrlicht_1.8.5+ds2.orig.tar.xz Result: your irrlicht-1.8.5/source/Irrlicht/CXMLReaderImpl.h:662:16: style: C-style pointer casting [cstyleCast] Explanation: Line 662 really is a C-style pointer cast: `TextBegin = (char_type*)source;`. It sits in the member function template `convertTextData`, which is only called with deduced arguments such as `convertTextData(data16+1, ...)` and `convertTextData(data8+3, ...)`. Before the PR, Cppcheck could not deduce `src_char_type` from these variable arguments, so the template was never instantiated and its body was never checked. With the new type deduction it is instantiated with concrete types. In those instantiations `source` is a pointer such as a 16-bit char type, and it is converted to an unrelated `char_type*`. That is exactly the kind of C-style pointer cast the cstyleCast check is meant to flag (a reinterpret_cast would be the C++ form). The new warning is therefore a true positive and comes from better template coverage. ---- 26 / 50 ---- Verdict: REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/k/kwave/kwave_26.04.0.orig.tar.xz Result: your kwave-26.04.0/plugins/fileinfo/FileInfoDialog.h:33:5: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', on the class FileInfoDialog. Its base classes, QDialog and Ui::FileInfoDlg, come from headers that are not available, so they were unresolved in main too. Main did not emit this message, which suggests it comes from the PR's new code path: the symbol database being rebuilt or incrementally updated after template type deduction. The code itself has no new construct that Cppcheck now understands worse; it is the same code yielding an extra debug diagnostic. A new debug message like this counts as a minor regression. ---- 27 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libd/libdivide/libdivide_5.2.0.orig.tar.gz Result: your libdivide-5.2.0/test/DivideTest.h:129:10: style: Unused private function: 'DivideTest < uint64_t >::test_vec' [unusedPrivateFunction] Explanation: `test_vec` is a private member function template of the class template `DivideTest`. In libdivide's test harness it is called from other members such as the numerator-testing routines, often with explicit template arguments like `test_vec<__m128i>(...)`. The warning appears only for the `uint64_t` instantiation, and `test_all_numerators` is newly flagged too. That pattern points to the PR's new deduction, instantiation and deferred-removal logic breaking the link between the instantiated class's member templates and their call sites. The function is really used, so this new unusedPrivateFunction warning is a false positive. ---- 28 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libd/libdivide/libdivide_5.2.0.orig.tar.gz Result: your libdivide-5.2.0/test/DivideTest.h:305:10: style: Unused private function: 'DivideTest < uint64_t >::test_all_numerators' [unusedPrivateFunction] Explanation: `test_all_numerators` is a member function template of the class template `DivideTest`. Cppcheck normally does not report uninstantiated member templates as unused private functions, because their use depends on instantiation. The new warning appears only for the `DivideTest` instantiation, not for the other `T` types, together with a similar new warning for `test_vec`. `test_vec` is clearly called in `test_vectordivide_numerators`. This pattern points to the PR's new deduction and incremental symbol-database handling losing the template status of member templates in one class instantiation, not to newly detected dead code. The warning is most likely a new false positive. ---- 29 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libt/libtorrent-rasterbar/libtorrent-rasterbar_2.1.2.orig.tar.xz Result: your libtorrent-2.1.2/bindings/python/src/gil.hpp:57:2: style: Struct 'visitor < bool * >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Explanation: `allow_threads(F fn)` is called in the Python bindings with member function pointers such as `&torrent_handle::is_valid`. F should therefore be a pointer-to-member type like `bool (C::*)() const`. The new type deduction instead gives F = `bool *`, apparently taking the ValueType of `&C::f` as a pointer to the return type. That creates a bogus instantiation, `visitor`, which does not exist in the real program. The underlying observation is true: `visitor`'s constructor is not explicit. But the warning only appears because of this wrong deduction and names a nonexistent type. A wrong instantiation like this can also produce wrong analysis of the template body (calling `.*fn` on a `bool*`). Overall this shows Cppcheck now misunderstands the code. ---- 30 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libw/libwildmagic/libwildmagic_5.17+cleaned1.orig.tar.gz Result: your libwildmagic-5.17+cleaned1/LibMathematics/Intersection/Wm5IntrUtility3.cpp:1580:10: style:inconclusive: Function 'ClipConvexPolygonAgainstPlane' argument 2 names different: declaration 'bonstant' definition 'constant'. [funcArgNamesDifferent] libwildmagic-5.17+cleaned1/LibMathematics/Intersection/Wm5IntrUtility3.h:212:10: note: Function 'ClipConvexPolygonAgainstPlane' argument 2 names different: declaration 'bonstant' definition 'constant'. libwildmagic-5.17+cleaned1/LibMathematics/Intersection/Wm5IntrUtility3.cpp:1580:10: note: Function 'ClipConvexPolygonAgainstPlane' argument 2 names different: declaration 'bonstant' definition 'constant'. Explanation: The header (Wm5IntrUtility3.h:212) declares ClipConvexPolygonAgainstPlane with its second parameter named 'bonstant', an upstream typo. The definition at line 1580 names it 'constant'. Cppcheck takes both names straight from the tokens, so the mismatch is real and is exactly what funcArgNamesDifferent is meant to report. Main skipped it because the function template was never instantiated. With the PR, the calls from the FindContactSet members are now handled. It is not clear from the shown diff exactly how, since parameters like 'const Vector3&' are not a deducible shape. As a result the declaration and definition are matched and the inconsistency is reported. This is a new true positive. ---- 31 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libz/libzypp/libzypp_17.38.16.orig.tar.gz Result: your libzypp-17.38.16/zypp/zypp/ng/workflows/keyringwf.cc:128:5: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR adds a new 'SymbolDatabase couldn't resolve all user defined types' debug message at the start of struct VerifyFileSignatureLogic. The code did not change between the runs. Only the PR's new template type deduction rounds and the incremental symbol database update (or the full rebuild) are new. These evidently leave some types in this class unresolved, for example FoundKeyData, Ring or the KeyTrust aliases inside an anonymous namespace. The same new debug message also shows up in three other files of the same directory, which points to a systematic loss of type information. Cppcheck now understands this code worse. ---- 32 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/magics++/magics++_4.17.1.orig.tar.gz Result: your magics-4.17.1/src/common/BasePointsHandler.h:87:22: style: Parameter 'object' can be declared as reference to const [constParameterReference] Explanation: `for_each(O& object)` is a generic visitor that calls `object(current())` on each point. With the new deduction, `for_each(*this)` in `size()` is instantiated with O = AbstractPoints. That class's `operator()` updates its own state (for example `points_`), and other functors such as MinMaxHelper also keep mutable state. So the parameter cannot be a reference to const. Suggesting `const O&` for a template functor parameter is wrong and would break compilation, so this new warning is a false positive caused by the instantiation. ---- 33 / 50 ---- Verdict: REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/m/mandelbulber2/mandelbulber2_2.20.orig.tar.xz Result: main mandelbulber2-2.20/mandelbulber2/src/parameters.cpp:192:87: performance: Function parameter 'maxVal' should be passed by const reference. [passedByValue] Explanation: Line 192 is a member function template `addParam(QString, int, T defaultVal, T minVal, T maxVal, ...)`. It is explicitly instantiated a few lines below with large class types such as CVector3, CVector4 and sRGB. For those instantiations, passing `maxVal` (and `defaultVal`/`minVal`) by value copies a non-trivial object. Passing by `const T&` is a valid suggestion that also works for the int/double instantiations, so main's passedByValue warning looks like a true positive. The PR is about deducing template arguments in calls. Nothing changes the semantics of these explicit instantiations, and all three warnings on this line vanished together. That points to a side effect of the template/symbol database rework (lost or altered instantiation information) rather than a deliberate fix. The exact cause cannot be confirmed from the diff, hence low confidence. ---- 34 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/mitlm/mitlm_0.4.1.orig.tar.gz Result: your mitlm-0.4.1/src/Lattice.cpp:612:23: style:inconclusive: Function '_Sort < mitlm :: ArcCompare >' argument 1 names different: declaration 'numTrans' definition 'numArcs'. [funcArgNamesDifferent] mitlm-0.4.1/src/Lattice.h:143:24: note: Function '_Sort < mitlm :: ArcCompare >' argument 1 names different: declaration 'numTrans' definition 'numArcs'. mitlm-0.4.1/src/Lattice.cpp:612:23: note: Function '_Sort < mitlm :: ArcCompare >' argument 1 names different: declaration 'numTrans' definition 'numArcs'. Explanation: Both versions report the same true positive at the same locations. The declaration in Lattice.h names the parameter 'numTrans', while the definition of the member template `_Sort` uses 'numArcs'. The only difference is the function name in the text. The PR now deduces the template argument from the non-literal call argument and instantiates `_Sort`, so the warning comes from the instantiation and is named '_Sort < mitlm :: ArcCompare >' instead of '_Sort'. That is slightly less tidy, since the naming mismatch belongs to the template itself, but it matches how Cppcheck already names instantiated templates in other messages. It does not change what the user needs to fix. ---- 35 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/n/ncbi-igblast/ncbi-igblast_1.20.0.orig.tar.gz Result: your ncbi-igblast-1.20.0-src/c++/src/util/checksum/farmhash/farmhash.cc:393:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c1 [valueFlowBailoutIncompleteVar] Explanation: With the PR, calls like `DebugTweak(Uint128Low64(x))` now get their template arguments deduced from non-literal arguments, so `DebugTweak` is instantiated. The instantiated body is appended at the end of the token list as a qualified out-of-namespace definition (`NAMESPACE_FOR_HASH_FUNCTIONS :: DebugTweak<...>`). Inside it, the namespace-level constant `c1` is no longer resolved to its declaration: it gets no variable id or symbol, so ValueFlow treats it as an incomplete variable. As a result ValueFlow skips the whole function. The new instantiation is meant to improve analysis, but this new bailout shows Cppcheck does not understand the generated code. The function is not analysed, so this is a new debug/bailout regression rather than a gain. ---- 36 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/o/opencpn/opencpn_5.14.2+dfsg.orig.tar.xz Result: your opencpn-5.14.2/libs/pugixml/pugixml.cpp:8930:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] Explanation: The template `new_xpath_variable` is only called with explicit template arguments, so it is fully instantiated. Before the PR the generic definition was removed after instantiation. The PR's new `hasRemainingCalls()` check sees plain calls named `new_xpath_variable(...)`. These are most likely calls to the non-template overload `new_xpath_variable(xpath_value_type, const char_t*)` and its callers, not undeduced template calls, but they keep the generic template body in the token list. ValueFlow then analyses the uninstantiated body, where `T` is unknown, and emits a new valueFlowBailoutIncompleteVar debug message. A new bailout caused by leaving uninstantiated template code behind means Cppcheck handles this code worse. ---- 37 / 50 ---- Verdict: NEUTRAL (low confidence) Package: https://ftp.debian.org/debian/pool/main/p/primecount/primecount_8.8+ds.orig.tar.xz Result: your primecount-8.8+ds/src/S1.cpp:82:11: debug: Failed to instantiate template "S1_thread". The checking continues anyway. [templateInstantiation] Explanation: The PR now deduces the template arguments of `S1_OpenMP(x, (uint32_t) y, c, threads)` from the argument types, so `S1_OpenMP` is instantiated and its body gets analyzed. That body calls `S1_thread<1>(...)` with only the first template argument given explicitly; the rest must be deduced. The template simplifier cannot handle partially explicit template arguments, so it emits this debug message. That limitation already existed. It was simply hidden before because the enclosing template was never instantiated. The PR itself adds a selfcheck suppression for the same pattern (`calculate(...)`). So the message reflects more coverage plus an old limitation, not worse understanding. It is a debug-only message with no effect on user-visible findings. ---- 38 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/p/primecount/primecount_8.8+ds.orig.tar.xz Result: your primecount-8.8+ds/src/gourdon/Phi0.cpp:89:13: debug: Failed to instantiate template "Phi0_thread". The checking continues anyway. [templateInstantiation] Explanation: Main never instantiated `Phi0_OpenMP` because its call `Phi0_OpenMP(x, (uint32_t) y, z, k, threads)` has variable arguments. With the PR, the new type deduction instantiates it, so its body is now real code. That body calls `Phi0_thread<1>(x, z, b, k, (X) primes[b], primes)`, which gives only the first template argument and leaves the rest to be deduced. The template simplifier could not handle that case before either. Before, the call sat inside an uninstantiated template and was never reported; now it sits in instantiated code, so the existing limitation becomes visible as a debug message. Cppcheck understands this code no worse than before (and analyses more of it). The new message is only a debug note that users normally do not see. The PR itself adds a similar templateInstantiation suppression for lib/calculate.h for the same reason. ---- 39 / 50 ---- Verdict: UNCLEAR (low confidence) Package: https://ftp.debian.org/debian/pool/main/p/python-memray/python-memray_1.20.0+dfsg.orig.tar.xz Result: main bloomberg-memray-bbfeb96/src/memray/_memray/tracking_api.cpp:650:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s_native_tracking_enabled [valueFlowBailoutIncompleteVar] Explanation: Only a debug bailout about the incomplete variable `s_native_tracking_enabled` disappeared from this constructor. Nothing in the shown code changes how Cppcheck should see that variable. It is likely a static member declared in a header, and it involves no templates. The PR moves `createSymbolDatabaseIncompleteVars` into `finalize()` and may rebuild or incrementally update the symbol database and variable ids. So the message could have vanished because the variable is now resolved correctly, or because the incomplete-variable marking was lost as a side effect. The source shown is not enough to tell which. ---- 40 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/q/qt6-quick3d/qt6-quick3d_6.11.2.orig.tar.xz Result: your qtquick3d-everywhere-src-6.11.2/src/3rdparty/assimp/src/contrib/googletest/googletest/src/gtest-printers.cc:268:34: style: Condition '1<=c' is always true [knownConditionTrueFalse] qtquick3d-everywhere-src-6.11.2/src/3rdparty/assimp/src/contrib/googletest/googletest/src/gtest-printers.cc:262:9: note: Assuming that condition 'c==0' is not redundant qtquick3d-everywhere-src-6.11.2/src/3rdparty/assimp/src/contrib/googletest/googletest/src/gtest-printers.cc:268:34: note: Condition '1<=c' is always true Explanation: PrintCharAndCodeTo is a template that is instantiated for unsigned char, signed char and wchar_t. After the 'c == 0' early return, '1 <= c' is always true only when Char is unsigned. For signed char (and for a signed wchar_t) c can be negative, so the condition is needed. The new type deduction now instantiates the template from variable arguments, so Cppcheck analyses the unsigned char instance and reports a 'known' condition in shared generic code. The developer cannot remove that condition. This is a new false positive. ---- 41 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/rocblas/rocblas_7.2.4.orig.tar.gz Result: your rocblas/library/src/src64/blas2/rocblas_gemv_kernels_64.cpp:39:57: style:inconclusive: Function 'rocblas_internal_gemv_launcher_64 < const double * , double , double * const >' argument 8 names different: declaration 'offseta' definition 'offsetA'. [funcArgNamesDifferent] rocblas/library/src/src64/blas2/rocblas_gemv_64.hpp:52:68: note: Function 'rocblas_internal_gemv_launcher_64 < const double * , double , double * const >' argument 8 names different: declaration 'offseta' definition 'offsetA'. rocblas/library/src/src64/blas2/rocblas_gemv_kernels_64.cpp:39:57: note: Function 'rocblas_internal_gemv_launcher_64 < const double * , double , double * const >' argument 8 names different: declaration 'offseta' definition 'offsetA'. Explanation: The template declaration in rocblas_gemv_64.hpp names argument 8 'offseta', while the definition in rocblas_gemv_kernels_64.cpp names it 'offsetA'. The names really differ, so this funcArgNamesDifferent warning is a true positive that main missed. Main reported nothing for this function; the PR's changed template handling now matches declaration and definition. The drawback is that the same finding is reported three times (generic, float and double instantiations), which is redundant noise. The reported mismatch itself is correct. ---- 42 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/r/rocblas/rocblas_7.2.4.orig.tar.gz Result: your rocblas/library/src/src64/blas2/rocblas_gemv_kernels_64.cpp:52:57: style:inconclusive: Function 'rocblas_internal_gemv_launcher_64 < const double * , double , double * const >' argument 21 names different: declaration 'batch_count' definition 'batch_count_64'. [funcArgNamesDifferent] rocblas/library/src/src64/blas2/rocblas_gemv_64.hpp:65:68: note: Function 'rocblas_internal_gemv_launcher_64 < const double * , double , double * const >' argument 21 names different: declaration 'batch_count' definition 'batch_count_64'. rocblas/library/src/src64/blas2/rocblas_gemv_kernels_64.cpp:52:57: note: Function 'rocblas_internal_gemv_launcher_64 < const double * , double , double * const >' argument 21 names different: declaration 'batch_count' definition 'batch_count_64'. Explanation: The header declares `rocblas_internal_gemv_launcher_64` with parameter 21 named `batch_count`, and the definition at line 52 names it `batch_count_64`. The names really differ, so funcArgNamesDifferent is a true positive here. Main reported nothing, probably because the template declarations were removed after instantiation. The PR now keeps the generic template and instantiates ``, which matches a valid batched instantiation, so the declaration/definition pair is checked. The downside is noise: the same mismatch is reported three times (generic, float and double instantiations). The reviewed line is one of those duplicates, which lowers confidence, but its content is correct. ---- 43 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/rocm-compilersupport/rocm-compilersupport_6.0+git20231212.4510c28+dfsg.orig.tar.xz Result: your rocm-compilersupport-6.0+git20231212.4510c28+dfsg/lib/comgr/src/comgr.h:65:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', at the plain struct TargetIdentifier. The struct only has llvm::StringRef and SmallVector members, and main did not report this. The likely cause is the PR's new template type-deduction rounds: either the incremental symbol database update (addSymbolsForNewTokenRanges / removeSymbolsForTokens) or the full rebuild leaves some type pointers unresolved. A new debug message of this kind means Cppcheck now models this code less well. ---- 44 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/rtags/rtags_2.44.orig.tar.gz Result: main rtags-2.44/src/rct/rct/Log.h:291:9: style:inconclusive: Technically the member function 'Log::operator<<' can be const. [functionConst] Explanation: This overload just returns `addStringStream(number)`. `addStringStream` is a member function template, and in main the call without template arguments was never instantiated or resolved, so checkConst saw no non-const member call and flagged the operator. Cppcheck's other results support this: the `uint8_t` overload calls `addStringStream` with an explicit argument and is not flagged, and neither are the `char`/`bool` overloads that call `write()` directly. So the resolved helper is treated as non-const. With the PR's type deduction the call becomes `addStringStream` and resolves to that non-const helper, so the inconsistent functionConst false positive disappears. ---- 45 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/rubberband/rubberband_4.0.0+dfsg.orig.tar.xz Result: your rubberband-4.0.0/src/faster/R2Stretcher.h:138:41: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] Explanation: With the PR, `cutShiftAndFold` is instantiated through type deduction from variable arguments, so its body is analyzed with real types. The function only calls `window->cut(src)` and `window->getSize()`. In rubberband's `Window` class both of these are const member functions, since `cut` modifies the passed buffer and not the window. The parameter type `Window*` does not depend on the template parameters, so declaring it `const Window*` is valid for every instantiation. The new warning is a true positive. ---- 46 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/s/soundscaperenderer/soundscaperenderer_0.6.1+dfsg.orig.tar.xz Result: your ssr-0.6.1/src/legacy_scene.h:531:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] Explanation: The PR adds type deduction for calls like `_get_source_member(id, &LegacySource::x, arg)`, where the arguments are plain variables. So this member template is probably now instantiated, and its body is analyzed by ValueFlow. Before, the body was only a template that was never analyzed. In that body, the `SSR_VERBOSE` macro expands to code that uses `cout`. `cout` is unknown here (the system headers are not included), so ValueFlow reports an incomplete-variable bailout. The new debug message comes from analyzing more code, not from Cppcheck understanding the code worse. No user-visible warning was added or removed, and the bailout reason (unknown `cout`) is the same one main already hits for non-template code. The effect on users is neutral. ---- 47 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/t/tandem-mass/tandem-mass_201702011.orig.tar.gz Result: main tandem-mass-20170201/src/mprocess.cpp:2761:106: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_fHyper [valueFlowBailoutIncompleteVar] Explanation: In main, the function was skipped by valueFlowConditionExpressions because `m_fHyper` (line 2761) was an incomplete variable. With the PR, `m_fHyper` is resolved, likely because the new type deduction lets the member access chain be typed. However, the same function now bails out at line 2773 because `npos` (`m_strDescription.npos`, a std::string static member) is incomplete. The function is still skipped and only the variable named in the debug message changed, so users see no difference in analysis results. ---- 48 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/w/webcamoid/webcamoid_9.4.0.orig.tar.xz Result: your webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:620:21: style: The member function 'AkVideoConverterPrivate::readDL1A < unsigned char >' can be static. [functionStatic] webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:620:21: note: The member function 'AkVideoConverterPrivate::readDL1A < unsigned char >' can be static. webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:620:21: note: The member function 'AkVideoConverterPrivate::readDL1A < unsigned char >' can be static. Explanation: readDL1A only uses its parameters (fc, src_line_*, kdl, x) and never touches `this`, so 'can be static' is correct. Main already reported this for the generic template 'AkVideoConverterPrivate::readDL1A' at the same line. Because the PR now deduces the template arguments, that one warning is replaced by three warnings for the , and instantiations, all at the same location. This one is a true positive, but it is the same finding as before, just repeated per instantiation. Users gain nothing; at most they get some duplicate noise. ---- 49 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/w/workrave/workrave_1.11.5.orig.tar.gz Result: your workrave-1_11_5/ui/app/toolkits/gtkmm/StatisticsDialog.hh:36:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR adds a debug message, 'SymbolDatabase couldn't resolve all user defined types', at the declaration of `StatisticsDialog : public HigDialog`. The source did not change, and main resolved these types without this message. That points to the PR's new template-deduction rounds (incremental update or full rebuild of the symbol database) leaving type information less complete than before. A new debug message of this kind means Cppcheck understands the code worse, so this is a regression. ---- 50 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/w/workrave/workrave_1.11.5.orig.tar.gz Result: your workrave-1_11_5/ui/app/toolkits/gtkmm/preferences/TimerBoxPreferencePanel.hh:36:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', at the class TimerBoxPreferencePanel. Nothing in the source changed. The bases Gtk::HBox and workrave::utils::Trackable come from headers that are not available, so they are just as unresolvable on main, yet main never reported this. The likely cause is the PR's new template type-deduction rounds, which rebuild or update the symbol database after the first build. That machinery produces extra or different symbol-database diagnostics without any better understanding of the code. A new debug message that comes from changed internal processing, not from improved analysis, counts as a regression.