AI review of 2026-11-29_23-11-59-b845dd3e17cd-results.txt PR: #8720 https://github.com/cppcheck-opensource/cppcheck/pull/8720 Tested: b845dd3e17cd2ce5a7332f9ea96089a13cc17aad Merge base: 4ccfcc6ff3df225b62a02318b2f34a722b1beecc Reviewed: 2026-11-30 14:33:44 UTC Model: claude-opus-5-5 (effort high) Results: 50 reviewed of 259 in the report (random sample) Verdicts: 2 acceptable regression, 17 improvement, 8 neutral, 22 regression, 1 unclear Tokens: 161936 input, 3158920 cache read, 789730 cache write, 43028 output The verdicts are written by AI and can be wrong. ---- 1 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/android-platform-frameworks-native/android-platform-frameworks-native_10.0.0+r36.orig.tar.gz Result: main libs/binder/tests/binderThroughputTest.cpp:83:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] Explanation: Line 83 is inside the member function template `Pipe::send(const T& v)`, which uses `sizeof(T)`. In main the template was never instantiated, because its calls (`p.send(x)`) have no explicit template arguments. ValueFlow therefore met the unresolved template parameter `T` and bailed out. With the PR, deduction for member calls instantiates `send` with the concrete argument type, so `T` is replaced and this bailout goes away. The new bailout at 84:9 is about `cerr` from the ASSERT_TRUE macro, which is an unrelated unknown identifier in the now-analyzed instantiation. Losing the `T` bailout reflects better understanding of the code. ---- 2 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/android-platform-frameworks-native/android-platform-frameworks-native_10.0.0+r36.orig.tar.gz Result: main vulkan/libvulkan/layers_extensions.cpp:324:21: style: The member function 'vulkan::api::::LayerLibrary::GetGPA' can be static. [functionStatic] vulkan/libvulkan/layers_extensions.cpp:104:11: note: The member function 'vulkan::api::::LayerLibrary::GetGPA' can be static. vulkan/libvulkan/layers_extensions.cpp:324:21: note: The member function 'vulkan::api::::LayerLibrary::GetGPA' can be static. Explanation: `GetGPA` calls `GetTrampoline(name)`. In this source, `GetTrampoline` is a const member function template of `LayerLibrary` (`template Func GetTrampoline(const char*) const`); from memory of the Android sources, it reads the member `dlhandle_` via `dlsym`. That member function template is not shown in the snippet. A function that calls a non-static member function that uses member data cannot be static, so the functionStatic warning on `GetGPA` was a false positive. With the PR, the generic template definition is kept while undeduced calls remain, so the call is linked to the member function and the warning goes away. ---- 3 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/android-platform-frameworks-native/android-platform-frameworks-native_10.0.0+r36.orig.tar.gz Result: your libs/binder/tests/binderThroughputTest.cpp:88:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] Explanation: `recv(T& v)` is a member function template that uses `sizeof(T)`. The PR now deduces `T` at the call sites and instantiates `recv`. Main's bailout at line 87, caused by the incomplete variable `T` in the generic template, goes away. The instantiated body is still skipped, now because of the unknown `cerr` from the `ASSERT_TRUE` macro expansion at line 88. Either way ValueFlow skips this function: the debug bailout only changed its reason and location. Users see no practical difference. ---- 4 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/android-platform-frameworks-native/android-platform-frameworks-native_10.0.0+r36.orig.tar.gz Result: your libs/binder/tests/schd-dbg.cpp:184:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] Explanation: This new line pairs with the removed main line at 183:45, which bailed out on the incomplete variable 'T'. With the PR, the member template 'Pipe::send' is instantiated from its call sites by type deduction, so 'T' is replaced by a concrete type. ValueFlow still skips the instantiated body, now because 'cerr' (used inside the ASSERT macro) is unknown, most likely because the std headers are not available. The template is understood better, but the function is still skipped, just for a different reason. Users see no change in actual analysis results. ---- 5 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/aoflagger/aoflagger_3.5.1.orig.tar.gz Result: your aoflagger-v3.5.1/algorithms/siroperator.cpp:6:19: style: Unused private function: 'SIROperator::operateHorizontallyMissing' [unusedPrivateFunction] aoflagger-v3.5.1/algorithms/siroperator.h:264:15: note: Unused private function: 'SIROperator::operateHorizontallyMissing' aoflagger-v3.5.1/algorithms/siroperator.cpp:6:19: note: Unused private function: 'SIROperator::operateHorizontallyMissing' Explanation: `operateHorizontallyMissing` is a private static member function template, declared in the header (line 264) and defined in siroperator.cpp. In aoflagger such private helpers are called from public wrappers, e.g. `OperateHorizontallyMissing(mask, missing, eta)`, which rely on template argument deduction. The new warning appears only with the PR, which now deduces those calls and rewrites them to instantiations like `operateHorizontallyMissing`. After that rewrite, the unusedPrivateFunction check apparently no longer links the remaining generic declaration/definition to its uses. A well-maintained project is unlikely to keep a large unused private template, so this is most likely a new false positive caused by the deduction change. Confidence is medium because the call sites are not shown. ---- 6 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/g/gadap/gadap_2.0.orig.tar.gz Result: your gadap-2.0/src/Connections.cc:99:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _conns [valueFlowBailoutIncompleteVar] Explanation: The PR adds a new valueFlowBailoutIncompleteVar debug message for `_conns` in the out-of-line destructor of the class template `Connections`. `_conns` is a data member of that class (declared in Connections.h), so it is not truly an incomplete variable. Main did not report this bailout. The PR moves `createSymbolDatabaseIncompleteVars` into `finalize()` and changes how template declarations are kept or removed. The new bailout suggests Cppcheck now resolves this member worse, and ValueFlow skips the function. A new bailout caused by worse understanding of the code counts as a regression. ---- 7 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/g/gambas3/gambas3_3.22.0.orig.tar.gz Result: your gambas3-3.22.0/gb.form.htmlview/src-cpp11/litehtml/html_tag.cpp:356:12: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] Explanation: Line 356 is in `get_property_impl`, instantiated here with Type=float. The code takes `&_parent->css()`, casts it to `byte*`, adds a member offset, then casts to `float*`. This is the usual offsetof-style pattern for reaching a struct member by its offset: the `byte*` is only used for the pointer arithmetic, and the address really points at a float member of the css properties struct. The bytes are never reinterpreted as an incompatible representation, so the claim of an "incompatible binary data representation" is wrong for this code. The warning appears only because the PR now instantiates the template with float, and it adds a false positive. ---- 8 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/g/gambas3/gambas3_3.22.0.orig.tar.gz Result: your gambas3-3.22.0/gb.form.htmlview/src-cpp11/litehtml/html_tag.cpp:356:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Explanation: The PR now instantiates `get_property_impl<...>`, so the type of `&_parent->css()` is known at this cast. `(byte*)&_parent->css()` turns a `const css_properties*` into an `unsigned char*`. That is a reinterpret-style cast that also drops const, which is exactly what dangerousTypeCast is meant to flag. Main only gave the generic style-level cstyleCast for the same expression, and that line is removed. The diagnostic is therefore more precise and correct for the actual code, not a new false positive. ---- 9 / 50 ---- Verdict: REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/h/hipfft/hipfft_7.2.4.orig.tar.gz Result: your hipfft/library/src/amd_detail/hipfftw.cpp:974:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] Explanation: The new line is a debug bailout (valueFlowBailoutIncompleteVar) inside the generic body of the function template `hipfftw_alloc_host_accessible`. Its `element_type` parameter cannot be deduced from the `size_t` argument, so the PR's deduction cannot instantiate calls that rely on the default template arguments. The likely cause is the PR's new 'remaining calls' rule: it keeps the generic template definition in the token list instead of removing it after the explicit instantiations. ValueFlow now analyzes that uninstantiated body and bails out on `hipMemoryType` enumerators from HIP headers it cannot see. No real warning is gained and a new bailout appears, which suggests worse handling of this code. The exact cause cannot be confirmed from the given context. ---- 10 / 50 ---- Verdict: REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/i/iannix/iannix_0.9.20~dfsg1.orig.tar.xz Result: main IanniX-0.9.20/geometry/qmuparser/muParserBase.cpp:1110:50: style: C-style pointer casting [cstyleCast] Explanation: Line 1110 casts muParser's generic function pointer `pTok->Fun.ptr` back to its real type `fun_type10` with a C-style cast. This is a deliberate, correct round-trip: the function was stored under the generic type and is cast back according to `argc`. Main reported this as a style-level `cstyleCast`. With the PR it becomes a warning-level `dangerousTypeCast` ('Potentially invalid type conversion'). The cause appears to be the PR's new `FUNCTION` ValueType, which now applies to function pointers; the PR has no tests for how this interacts with `dangerousTypeCast`. The same change appears on every function-pointer cast in this file. One could argue that a cast between function pointer types needs a `reinterpret_cast` and so deserves the stronger message. Still, for this correct, idiomatic code the change mostly raises noise from style to warning, and it may come from imprecise cast/operand typing rather than intentional detection. Likely a regression, but uncertain. ---- 11 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/i/iannix/iannix_0.9.20~dfsg1.orig.tar.xz Result: main IanniX-0.9.20/geometry/qmuparser/muParserBase.cpp:1151:52: style: C-style pointer casting [cstyleCast] Explanation: Line 1151 casts the generic function pointer `pTok->Fun.ptr` to the specific function pointer type `bulkfun_type4` with a C-style cast. Converting between unrelated function pointer types (or from void* to a function pointer) can only be done with reinterpret_cast in C++. Main reported the generic `cstyleCast` style message. With the PR, the cast target gets the new FUNCTION value type, so Cppcheck classifies the cast as reinterpret-like and reports `dangerousTypeCast` instead. The same cast is still flagged, now with a message that describes it more accurately. The code calls through the correct type by design, so the warning severity is debatable, but the conversion really is a reinterpret_cast. ---- 12 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/i/iannix/iannix_0.9.20~dfsg1.orig.tar.xz Result: your IanniX-0.9.20/geometry/qmuparser/muParserBase.cpp:1132:39: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Explanation: Line 1132 casts `pTok->Fun.ptr` to the function pointer type `strfun_type1` and calls it. The PR gives function pointer types a ValueType (FUNCTION). Before, the cast's target type was unknown, so cppcheck could only emit the generic style cstyleCast. Now it knows the target is a function pointer. A cast between two function pointer types would count as same primitive kind and not be flagged as dangerous. So the new dangerousTypeCast implies the source `Fun.ptr` is not a function pointer, most likely a `void*` as in older muParser versions. Converting an object pointer to a function pointer is only conditionally supported and needs reinterpret_cast, so the more specific warning is justified. The one uncertainty is that the declaration of `Fun.ptr` is not shown, so this cannot be fully confirmed. ---- 13 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/i/ifcopenshell/ifcopenshell_0.9.0+dfsg2.orig.tar.xz Result: your ifcopenshell-0.9.0/src/bonsaiviewer/components/Dialog.h:26:1: debug: TemplateSimplifier: pass count limit hit before simplifications were finished. [debug] Explanation: This is a new debug message saying the template simplifier hit its pass count limit before it was finished. The location is the first token of the file, not a template. Dialog.h has no templates, so the message is caused by templates elsewhere in the translation unit, most likely the PR's deferred template removal or new deduction instantiations. The same message now appears in many files of this package, which points to a systematic change. It means the simplifier now fails to converge where it did before, so this is a regression. ---- 14 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/i/ifcopenshell/ifcopenshell_0.9.0+dfsg2.orig.tar.xz Result: your ifcopenshell-0.9.0/src/ifcviewer/FederationMath.h:40:1: debug: TemplateSimplifier: pass count limit hit before simplifications were finished. [debug] Explanation: The PR adds a new 'TemplateSimplifier: pass count limit hit before simplifications were finished' debug message. It is reported at the first token of this header, a plain struct with no templates. It appears in many files of the package. The new type-deduction rounds or deferred removals keep setting mChanged, so the simplifier runs out of passes. That means Cppcheck now understands the code worse, or at least does needless work and leaves the simplification unfinished. ---- 15 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/i/intel-compute-runtime-legacy/intel-compute-runtime-legacy_24.35.30872.45.orig.tar.gz Result: your intel-compute-runtime-6c940d1/level_zero/tools/source/metrics/metric_oa_export_data.cpp:65:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] Explanation: Line 65 is the body of the generic function template `assignUnaligned`, where `T` is a template type parameter, not a variable. The new debug bailout says ValueFlow skipped the function because of an "incomplete variable T". So with the PR the generic template body is now analyzed as ordinary code, and Cppcheck treats the type parameter as an unknown variable. The likely cause is the PR's new logic that keeps the template definition while some calls stay undeduced, for example calls taking the address of a structured-binding variable. Main did not emit this. A new bailout caused by misreading a template parameter shows Cppcheck understands this code worse, not better. ---- 16 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/i/intel-compute-runtime-legacy/intel-compute-runtime-legacy_24.35.30872.45.orig.tar.gz Result: your intel-compute-runtime-6c940d1/shared/offline_compiler/source/decoder/binary_encoder.cpp:360:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] Explanation: Line 360 is inside the generic body of the member function template `BinaryEncoder::write`. That template is already instantiated through the explicit instantiations and the `write` specialization. Before the PR, the generic definition was removed after instantiation. With the PR it stays in the token list, so ValueFlow now meets the unresolved template parameter `T` and emits this new incomplete-variable bailout. A related new `functionStatic` warning on the same template appears at line 357. The likely cause is the PR's new `hasRemainingCalls` heuristic: `isPlainCall` treats `deviceBinary.write(...)`, a call to `std::ostream::write`, as a remaining call of this template, which keeps the generic definition. The new debug message therefore shows Cppcheck handling the code worse. ---- 17 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/i/intel-compute-runtime-legacy/intel-compute-runtime-legacy_24.35.30872.45.orig.tar.gz Result: your intel-compute-runtime-6c940d1/shared/source/os_interface/windows/wddm_memory_manager.cpp:1552:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is32Bit [valueFlowBailoutIncompleteVar] Explanation: `adjustGpuPtrToHostAddressSpace` is an out-of-line member function template with a non-type `bool is32Bit` parameter. Type deduction in this PR does not handle non-type template parameters, so nothing here was newly deduced. The new bailout says `is32Bit` is an incomplete variable. That means the generic, uninstantiated template body is now left in the token list and analysed, most likely because of the new deferred removal or remaining-calls logic. Before the PR it was not analysed this way. A new valueFlow bailout on leftover template code shows Cppcheck handles this code worse, and it adds no useful finding. ---- 18 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/i/intel-compute-runtime-legacy/intel-compute-runtime-legacy_24.35.30872.45.orig.tar.gz Result: your intel-compute-runtime-6c940d1/shared/source/program/print_formatter.h:71:27: portability: Casting between const unsigned char * and const double * which have an incompatible binary data representation. [invalidPointerCast] Explanation: `typedPrintToken` calls `read(&value)` with a `double` value. The PR now correctly deduces `T = double` and instantiates `read`, so the template body is analysed with concrete types. The body does `reinterpret_cast(printfOutputBuffer + currentOffset)` with a `const uint8_t*` buffer and then dereferences the result directly when it is aligned. This is the same cast Cppcheck already reports in non-template code: a byte buffer reinterpreted as `double*`, which is a strict-aliasing and representation concern. So the warning is consistent with the existing check and the deduced type is right. It is debatable, though, because reading typed values out of a raw byte buffer is a common, intentional deserialization pattern, and many users would see it as noise. ---- 19 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/i/intel-compute-runtime-legacy/intel-compute-runtime-legacy_24.35.30872.45.orig.tar.gz Result: your intel-compute-runtime-6c940d1/shared/source/program/print_formatter.h:71:27: portability: Casting between const unsigned char * and const float * which have an incompatible binary data representation. [invalidPointerCast] Explanation: The PR now deduces template arguments from non-literal call arguments. `typedPrintToken` calls `read(&value)` with a `float` value, so `read` is instantiated correctly. In that instantiation, line 71 casts the `uint8_t` byte buffer pointer to `const float *`, and when the pointer is aligned it is dereferenced directly (`*value = *srcPtr`). That is exactly the pattern invalidPointerCast reports: reading a float through a pointer to unsigned char storage, which is also a strict-aliasing problem. The same code written without a template would get the same warning, so this is a correct new true positive. It is a portability-style finding that some users may consider intentional. ---- 20 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/k/kmail/kmail_26.08.2.orig.tar.xz Result: your kmail-26.08.2/src/kmcommands.h:444: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 KMPrintCommand. The code is an ordinary Qt class deriving from KMCommand with an export macro, and main reports nothing here. The PR changed how the symbol database is built: phases are split into finalize(), and the database is rebuilt or updated incrementally after template deduction rounds. The new message means the rebuilt or updated database now resolves fewer user types for this code, so Cppcheck understands it worse. That is a new debug noise regression, not a gain in accuracy. ---- 21 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/k/kmail/kmail_26.08.2.orig.tar.xz Result: your kmail-26.08.2/src/kmcommands.h:685: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", for class KMFetchMessageCommand, which derives from KMCommand. Main resolved these types without the message. KMCommand is declared in the same header, so nothing about the code itself explains the change. The likely cause is the PR's new template type-deduction rounds, which rebuild or incrementally update the symbol database and seem to leave some base or user types unresolved. A new debug message of this kind means Cppcheck now understands the code worse. ---- 22 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/k/kwayland/kwayland_6.7.4.orig.tar.xz Result: your kwayland-6.7.4/src/compat/wayland-xdg-shell-v5-client-protocol.h:993:64: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Explanation: Line 993 casts `const struct zxdg_popup_v5_listener *` to `void (**)(void)` with a C-style cast. With the PR, `void (**)(void)` gets a real ValueType: FUNCTION with pointer level 2. Before, the parsed type was presumably incomplete, which is likely why the cast was not reported. The cast turns a struct pointer into a pointer to a function pointer and also drops const. In C++ that would need `reinterpret_cast` plus `const_cast`. This is exactly the kind of conversion dangerousTypeCast is meant to flag, so the new warning describes the code correctly. It is the usual wayland-scanner idiom in a generated header and works in practice, so users may see it as noise. That is why confidence is low. ---- 23 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libx/libxsmm/libxsmm_1.17.orig.tar.gz Result: main libxsmm-1.17/samples/cp2k/mdarray.hpp:312:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pu [valueFlowBailoutIncompleteVar] Explanation: `pu` is a non-type template parameter of the member template `at_idx`. Main analyzed the uninstantiated generic body, where `pu` is an unknown name, so valueFlow bailed out with the incompleteVar debug message. With the PR, deduced function template calls cause more template code to be instantiated. The same package diff shows a related change: the bailout for `dims_` at line 692 went away and a real `useStlAlgorithm` style warning appeared at that line. That indicates the code is now analyzed as concrete instantiations with known types. So this bailout most likely disappeared because Cppcheck understands the code better, not because analysis was lost. ---- 24 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/m/mplapack/mplapack_3.0.1+ds.orig.tar.xz Result: your mplapack-3.0.1/examples/mplapack/02_LeastSquares/Cgelss_example_double.cpp:17:7: style: The scope of the variable 'tmp' can be reduced. [variableScope] Explanation: `printvec` is a function template called without explicit template arguments. With the PR, its arguments are deduced from the call argument types (e.g. `double*`), so the template is now instantiated and checked. In the body, `tmp` is declared at function scope but is only used inside the for loop, where it is assigned (`tmp = a[i]`) before each use. It can be declared inside the loop, so the variableScope style warning is a genuine new true positive. ---- 25 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/mplapack/mplapack_3.0.1+ds.orig.tar.xz Result: your mplapack-3.0.1/examples/mplapack/05_SingularValueDecomposition/Cgesvd_test_double.cpp:17:7: style: The scope of the variable 'tmp' can be reduced. [variableScope] Explanation: With the PR, Cppcheck deduces the template arguments of calls such as `printvec(s, ...)` (s is `double*`) and instantiates `printvec`, so the body is now checked. Inside it, `X tmp;` is declared at function scope but is only used inside the for loop. It is assigned from `a[i]` before every read, so its value never carries across iterations. Declaring it inside the loop is therefore valid, and the variableScope style warning is a true positive. Before the PR this code was not checked. ---- 26 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/mplapack/mplapack_3.0.1+ds.orig.tar.xz Result: your mplapack-3.0.1/examples/mplapack/07_GeneralizedSymmetricDefiniteEigenproblems/Chegv_example_double.cpp:17:7: style: The scope of the variable 'tmp' can be reduced. [variableScope] Explanation: With the PR, calls such as printvec(w, n) on a double array now have their template argument deduced, so printvec is instantiated and checked. In that function, 'tmp' is declared at function scope but used only inside the for loop. It is assigned a[i] on every iteration before it is read, so it could be declared inside the loop body with no change in behaviour. The variableScope warning is therefore a correct new style finding (a true positive) in code Cppcheck previously did not analyze. ---- 27 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/n/ncbi-blast+/ncbi-blast+_2.17.0+ds.orig.tar.xz Result: your ncbi-blast-2.17.0+-src/c++/src/util/checksum/farmhash/farmhash.cc:393:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c1 [valueFlowBailoutIncompleteVar] Explanation: The PR now deduces the template argument of `DebugTweak(Uint128Low64(x))` and instantiates `DebugTweak`. As usual, the instantiated definition is appended at the end of the token list, outside `namespace NAMESPACE_FOR_HASH_FUNCTIONS`. Inside that copied body, `c1` (a `static const uint32_t` declared in the namespace) is not linked to its declaration, so it is treated as an incomplete variable. ValueFlow then skips the whole function. `c1` is a well-defined, known variable, so this new bailout shows Cppcheck mishandling the instantiated code rather than understanding it better. ---- 28 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/n/neko/neko_2.4.1.orig.tar.gz Result: main neko-2-4-1/vm/load.c:261:3: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] Explanation: `ptr` is a `PRIM0` function pointer. The code `((PRIM0)ptr())()` shows that calling it returns a pointer, so `return ptr();` in a pointer-returning function does not return an integer. The old warning came from main misjudging the type of a call through a function pointer. The PR adds a FUNCTION value type and takes a call's type from the declared return type, so the false positive goes away. ---- 29 / 50 ---- Verdict: UNCLEAR (low confidence) Package: https://ftp.debian.org/debian/pool/main/p/par2cmdline/par2cmdline_2.0.0.orig.tar.bz2 Result: your par2cmdline-2.0.0/src/galois.h:313:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] Explanation: The new line is a valueFlowBailoutIncompleteVar debug message in Galois<...>::ALog(), which reads the static member 'table' of the class template. The near-identical Log() at line 307 does not show up in the diff. That suggests either ALog is now instantiated or analyzed because of the new function-template deduction (more code covered, so the bailout is incidental), or the restructured symbol-database phases (incomplete-vars moved into finalize(), rebuild after deduction rounds) left 'table' unresolved here. From the shown code and diff it is not possible to tell whether Cppcheck understands this code better or worse. ---- 30 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/p/pdf2djvu/pdf2djvu_0.9.19.orig.tar.xz Result: main pdf2djvu-0.9.19/rle.hh:78:28: style:inconclusive: Function 'output_run' argument 1 names different: declaration '' definition 'length_'. [funcArgNamesDifferentUnnamed] Explanation: The class declares `output_run` with an unnamed parameter, while the out-of-class template definition at line 78 names it `length_`. The removed main warning reported this on the generic template `output_run`. With the PR the template is instantiated through type deduction, and the same finding is reported at the same location for `output_run < int >` and `output_run < unsigned int >`. The issue is still reported; only the function name in the text changed, and it now appears twice. Nothing was lost, so removing this line does not matter to users. ---- 31 / 50 ---- Verdict: REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/p/pdf2djvu/pdf2djvu_0.9.19.orig.tar.xz Result: your pdf2djvu-0.9.19/rle.hh:78:28: style:inconclusive: Function 'output_run < int >' argument 1 names different: declaration '' definition 'length_'. [funcArgNamesDifferentUnnamed] Explanation: The underlying finding is unchanged: `output_run` is presumably declared in the class with an unnamed parameter, and the definition at line 78 names it `length_`. Main reported this once, for the template 'output_run'. With the PR the template is instantiated through type deduction, and the same location is now reported twice, as 'output_run < int >' and 'output_run < unsigned int >'. The user wrote a single template, so naming an internal instantiation is less accurate, and the duplicate is noise for one source-level issue. Both calls shown pass `this->run_length`, so it is also unclear why two different instantiations appeared, unless another call outside the shown lines exists. ---- 32 / 50 ---- Verdict: REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/p/pdf2djvu/pdf2djvu_0.9.19.orig.tar.xz Result: your pdf2djvu-0.9.19/rle.hh:78:28: style:inconclusive: Function 'output_run < unsigned int >' argument 1 names different: declaration '' definition 'length_'. [funcArgNamesDifferentUnnamed] Explanation: The style issue (the in-class declaration of `output_run` leaves the parameter unnamed, the out-of-class definition names it `length_`) was reported once by main, against the template. With the PR, deduced instantiations are generated, so the same warning appears twice, once for `output_run < int >` and once for `output_run < unsigned int >`. The duplicates point at the same source line. The naming difference is in the template source, not in a particular instantiation, so naming the message after an instantiation is less accurate and noisier. Whether `unsigned int` is a correctly deduced instantiation cannot be checked from the code shown. ---- 33 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/p/pytorch/pytorch_2.15.0+dfsg.orig.tar.xz Result: your pytorch-v2.15.0/aten/src/ATen/cuda/CUDABlas.cpp:254:80: debug: Function::addArguments found argument 'Dtype' with varid 0. [varid0] Explanation: Line 254 declares a function template whose parameter list comes from a macro, CUDABLAS_BGEMM_ARGTYPES_AND_C_DTYPE(Dtype, C_Dtype). That macro is not defined in this configuration, so the token 'Dtype' looks like an argument. Main did not emit this debug message here. The PR adds deferred template removal, keeping generic definitions when calls remain, and incremental or full symbol database rebuilds. With these changes Function::addArguments now sees the template parameter name 'Dtype' as an argument with varid 0. This new debug/varid0 message means Cppcheck's internal state got worse for this code, likely because the generic template declaration is kept or re-processed after this PR. The new duplicateCondition FP at line 288 points the same way: an `if constexpr` on the template parameter is now analysed in the uninstantiated or retained template. ---- 34 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/q/qgpgme/qgpgme_2.2.0.orig.tar.xz Result: your qgpgme-2.2.0/src/threadedjobmixin.h:125: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 ThreadedJobMixin class template. This template has a dependent base class T_base and uses externally declared GpgME types. The source code did not change, so this is a side effect of the new deduction and symbol database rebuild logic. Either the template simplifier now changes this code differently (deferred declarations, re-instantiation), or the incremental or full symbol database update leaves some types unresolved. A new debug or bailout message means Cppcheck understands the code worse than before. ---- 35 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/q/qgpgme/qgpgme_2.2.0.orig.tar.xz Result: your qgpgme-2.2.0/src/wkdlookupresult.cpp:45: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", for the out-of-line class `WKDLookupResult::Private`. That class is an ordinary struct holding a `std::string`, a `GpgME::Data` and another `std::string`. Main resolved it without complaint. The PR moved `createSymbolDatabaseNeedInitialization` into `finalize()`, which now runs after the template type-deduction rounds. Those rounds also rebuild or incrementally change the symbol database. After this change Cppcheck no longer settles the initialization/type information for this class. A new debug message on simple code means Cppcheck understands the code worse. ---- 36 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-cran-openmx/r-cran-openmx_2.22.11+dfsg.orig.tar.xz Result: main OpenMx/src/omxRAMExpectation.cpp:1927:14: style:inconclusive: Technically the member function 'RelationalRAMExpectation::state::applyRotationPlan' can be const. [functionConst] OpenMx/src/RAMInternal.h:254:30: note: Technically the member function 'RelationalRAMExpectation::state::applyRotationPlan' can be const. OpenMx/src/omxRAMExpectation.cpp:1927:14: note: Technically the member function 'RelationalRAMExpectation::state::applyRotationPlan' can be const. Explanation: applyRotationPlan only reads the members rotationPlan and layout; all writes go through the by-value accessor parameter, so the 'can be const' finding is technically right. The PR now deduces the template arguments at the call sites and instantiates the template. The single warning on the generic template is therefore replaced by two warnings at the same location (1927:14), one per instantiation, UnitAccessor and UnitAccessor. The finding is the same; only the name in the message changed and it is reported once per instantiation. This removal is not a lost true positive, because the same diagnosis is still reported. ---- 37 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-cran-openmx/r-cran-openmx_2.22.11+dfsg.orig.tar.xz Result: your OpenMx/src/Compute.h:306:28: style:inconclusive: Technically the member function 'FitContext::copyEstToOptimizer < double * >' can be const. [functionConst] OpenMx/src/Compute.h:306:28: note: Technically the member function 'FitContext::copyEstToOptimizer < double * >' can be const. OpenMx/src/Compute.h:306:28: note: Technically the member function 'FitContext::copyEstToOptimizer < double * >' can be const. Explanation: `copyEstToOptimizer` only reads members: it calls `getNumFree()` and reads `est` and `freeToParamMap`. The only thing it writes is through the parameter `out`. With `T` deduced as `double*` (from a call with a `double*` argument), the write `out[vx] = ...` goes to the caller's buffer, not to any member. So the function could indeed be const. Main never instantiated this template because it could not deduce `T` from a non-literal argument. The PR now deduces `T` and checks the instantiation, which yields a valid new functionConst finding (a true positive). The checker only reports this when the called member `getNumFree()` is itself const, which supports the finding. ---- 38 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-cran-openmx/r-cran-openmx_2.22.11+dfsg.orig.tar.xz Result: your OpenMx/src/omxRAMExpectation.cpp:1927:14: style:inconclusive: Technically the member function 'RelationalRAMExpectation::state::applyRotationPlan < RelationalRAMExpectation :: UnitAccessor < false > >' can be const. [functionConst] OpenMx/src/RAMInternal.h:254:30: note: Technically the member function 'RelationalRAMExpectation::state::applyRotationPlan < RelationalRAMExpectation :: UnitAccessor < false > >' can be const. OpenMx/src/omxRAMExpectation.cpp:1927:14: note: Technically the member function 'RelationalRAMExpectation::state::applyRotationPlan < RelationalRAMExpectation :: UnitAccessor < false > >' can be const. Explanation: Main already reported functionConst for the uninstantiated template `state::applyRotationPlan` at the same location. Now that the call's template arguments are deduced, the function is instantiated for `UnitAccessor` and `UnitAccessor`, so the same finding is reported once per instantiation, with the template argument in the name. The body only reads members (`rotationPlan`, `layout`) and writes through the by-value `accessor` parameter, so the 'technically can be const' finding is unchanged. This is a relabeled, split copy of an existing warning. The extra duplicate is minor noise and gives users no new information. ---- 39 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-cran-openmx/r-cran-openmx_2.22.11+dfsg.orig.tar.xz Result: your OpenMx/src/omxWLSFitFunction.cpp:291:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] Explanation: This is a debug bailout that moved, not one that appeared or disappeared. Main skipped valueFlowConditionExpressions for this function because of the incomplete variable 'numThresholds' (line 265, the member access 'eThresh[i].numThresholds'). With the PR that member is apparently resolved, so the first incomplete variable found is now 'TRUE' at line 291. TRUE is an R header macro that is not available to Cppcheck, so it really is unknown. The function is skipped in both runs, so users see no difference in analysis; only the variable named in the debug message changed. ---- 40 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/r/rawtherapee/rawtherapee_5.13.orig.tar.xz Result: your rawtherapee-5.13/rtgui/delayed.h:38: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', at the variadic class template index_sequence in delayed.h. Main did not report it. The new deduction rounds rebuild or incrementally update the symbol database, and that leaves template-related types unresolved. This means Cppcheck understands this code worse than before, and the new debug output is noise for users. ---- 41 / 50 ---- Verdict: ACCEPTABLE REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/rxvt-unicode/rxvt-unicode_9.31.orig.tar.bz2 Result: main rxvt-unicode-9.31/src/screen.C:2615:12: style:inconclusive: Technically the member function 'rxvt_term::scr_xor_span' can be const. [functionConst] rxvt-unicode-9.31/src/rxvt.h:1522:8: note: Technically the member function 'rxvt_term::scr_xor_span' can be const. rxvt-unicode-9.31/src/screen.C:2615:12: note: Technically the member function 'rxvt_term::scr_xor_span' can be const. Explanation: scr_xor_span only reads members (view_start, nrow, ncol) and writes through the row pointers it gets from ROW(row).r. That modifies the pointee, not the object's members, so the method technically could be const. The removed inconclusive functionConst warning was therefore a valid 'technically const' finding. The method calls min(...), a function template that the PR now instantiates through type deduction, and copy_line lost the same warning in the same way. The warning most likely disappeared as a side effect of how the check sees the instantiated call, not because the code changed meaning. This is a new false negative of a low-value style warning. ---- 42 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/s/simgear/simgear_2024.1.5+dfsg.orig.tar.xz Result: main simgear-2024.1.5/simgear/math/SGGeometryTest.cxx:141:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] Explanation: In main, the uninstantiated template body of TriangleLineIntersectionTest was analyzed generically. 'T' was an incomplete variable there, so ValueFlow bailed out. With the PR, calls such as intersects(isectres, tri, lineSegment) inside the instantiated test functions now get their template arguments deduced. The templates get instantiated with float/double, and the bailout on the generic 'T' disappears. The corresponding new bailouts in this file are now about 'cout' at the instantiated locations. This shows Cppcheck now understands the code better, so removing this debug message is an improvement. ---- 43 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/s/sphinxsearch/sphinxsearch_2.8.2.orig.tar.gz Result: main manticore-2.8.2-190402-4e81114-release/mysqlse/snippets_udf.cc:68:16: style: C-style pointer casting [cstyleCast] Explanation: Line 68 casts `&uTmp` (a `T*`) to `byte*` with a C-style cast. Main analysed only the generic template, where T is unknown, so it could only report a generic `cstyleCast`. With the PR, `sphUnalignedRead` is instantiated with the deduced argument type, so the cast is now known to be from a concrete type pointer such as `int*` to `byte*`. In C++ that conversion needs a `reinterpret_cast`, so `dangerousTypeCast` describes it more precisely. The main line was not dropped as a false positive; it was replaced by a more specific message at the same location, and the incomplete-variable bailout for T also disappeared. The new severity is arguably a little alarmist, since byte-wise access through an unsigned char pointer is legal aliasing. Still, the classification follows from correct type knowledge, so this is an improvement. ---- 44 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/s/sphinxsearch/sphinxsearch_2.8.2.orig.tar.gz Result: your manticore-2.8.2-190402-4e81114-release/mysqlse/snippets_udf.cc:67:9: style: Variable 'pSrc' can be declared as pointer to const [constVariablePointer] Explanation: The PR now deduces template arguments from non-literal call arguments, so `sphUnalignedRead` gets instantiated and its body is checked. In that body, `pSrc` is a `byte*` that is only read through (`*pDst++ = *pSrc++`). It points to the `const T&` parameter, so it could be declared `const byte *` and the C cast would no longer drop const. The type of `pSrc` does not depend on `T`, so the warning holds for every instantiation. This is a new true positive; the removed valueFlow bailout also shows Cppcheck now understands the code better. ---- 45 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/s/sphinxsearch/sphinxsearch_2.8.2.orig.tar.gz Result: your manticore-2.8.2-190402-4e81114-release/mysqlse/snippets_udf.cc:68:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Explanation: The PR now instantiates `sphUnalignedRead` from deduced calls. Inside the instantiated body it reports `(byte *) &uTmp` as a 'potentially invalid type conversion' at warning severity. `byte` is a typedef for `uchar` (unsigned char), and casting an object's address to an unsigned char pointer to copy its bytes is well-defined and is the whole point of this unaligned-read helper. The cast is only a style issue (C-style cast), which main already reported as cstyleCast. The new warning is most likely a false positive, probably because `byte` comes from an unresolved MySQL header. Swapping cstyleCast for a stronger, inaccurate dangerousTypeCast is a regression. ---- 46 / 50 ---- Verdict: ACCEPTABLE REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/w/webcamoid/webcamoid_9.4.0.orig.tar.xz Result: main webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:1243:18: style: Variable 'xd_z' can be declared as reference to const [constVariableReference] Explanation: In write3A, `int &xd_z = fc.dstWidthOffsetZ[x];` is only read (`dst_line_z + xd_z`) and never written through. It could be `const int &`, so main's constVariableReference warning was a true positive. With the PR, the member function template is now instantiated (write3A, , ), and the warning no longer appears for the instantiated code. The PR's own diff does not show why. Losing a correct style warning is a new false negative, an acceptable side effect of better template instantiation. ---- 47 / 50 ---- Verdict: REGRESSION (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:1161:21: style: The member function 'AkVideoConverterPrivate::write1 < unsigned char >' can be static. [functionStatic] webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:1161:21: note: The member function 'AkVideoConverterPrivate::write1 < unsigned char >' can be static. webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:1161:21: note: The member function 'AkVideoConverterPrivate::write1 < unsigned char >' can be static. Explanation: `write1` is a const member template that never uses `this`, so the functionStatic finding itself is a true positive. Main reported it once, as 'AkVideoConverterPrivate::write1'. The PR now deduces template arguments and instantiates the template for unsigned char, unsigned short and unsigned int. The main warning is replaced by three warnings at the same line 1161:21, each naming an instantiation such as 'write1 < unsigned char >'. Each also carries two identical notes that repeat the message. The user can only fix this once, in the template source, so the instantiation names are less accurate and the extra copies are noise. No real finding is gained, so this specific added line is a regression. ---- 48 / 50 ---- Verdict: REGRESSION (low 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:1172:21: style: The member function 'AkVideoConverterPrivate::write1A < unsigned short >' can be static. [functionStatic] webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:1172:21: note: The member function 'AkVideoConverterPrivate::write1A < unsigned short >' can be static. webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:1172:21: note: The member function 'AkVideoConverterPrivate::write1A < unsigned short >' can be static. Explanation: write1A (line 1172) is a const member template that only uses its parameters (fc, dst_line_x, dst_line_a, x, xo, ao) and never touches `this`. So the functionStatic finding itself is correct. Main reported it once for the template as 'AkVideoConverterPrivate::write1A'. With the PR, deduced instantiations are created and the same finding is reported once per instantiation (unsigned char, unsigned short, unsigned int), all at the same source location. The names, like 'write1A < unsigned short >', do not appear in the source, and the notes are duplicated. The user still has one fix to make: mark the template static. The change adds no new true positive, only duplicate, less source-accurate messages, which makes the output noisier. ---- 49 / 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:1230:21: style: The member function 'AkVideoConverterPrivate::write3A < unsigned int >' can be static. [functionStatic] webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:1230:21: note: The member function 'AkVideoConverterPrivate::write3A < unsigned int >' can be static. webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:1230:21: note: The member function 'AkVideoConverterPrivate::write3A < unsigned int >' can be static. Explanation: write3A only uses its parameters (fc, dst_line_*, x, the OutputType values) and never touches `this`, so 'can be static' is a true positive. Main reported it once for the generic template. With the PR, the calls are deduced and instantiated as write3A, so the same finding now appears once per instantiation, here 'write3A < unsigned int >'. The warning is still correct at the same location; it is just split into several copies with the instantiation name. That is not a real gain or loss in accuracy for users. ---- 50 / 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:851:21: style: The member function 'AkVideoConverterPrivate::readDL3 < unsigned int >' can be static. [functionStatic] webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:851:21: note: The member function 'AkVideoConverterPrivate::readDL3 < unsigned int >' can be static. webcamoid-webcamoid-1f02eed/libAvKys/Lib/src/akvideoconverter.cpp:851:21: note: The member function 'AkVideoConverterPrivate::readDL3 < unsigned int >' can be static. Explanation: readDL3 is a const member function template that only uses its parameters (fc, src_line_*, kdl, x, xi/yi/zi) and never touches a member of AkVideoConverterPrivate, so 'can be static' is a true positive. Main already reported it once as 'AkVideoConverterPrivate::readDL3'. With the PR, type deduction instantiates the template for unsigned char, short and int, and the check now runs on each instantiation. The single generic warning becomes three warnings at the same line, one per instantiation. The finding and what the user must fix are unchanged; only the message names the instantiation and there are duplicates. This matches how Cppcheck already reports explicitly instantiated templates, so it is neither a new false positive nor a real gain.