{ "tokens": { "input": 98380, "cache_read": 2058784, "cache_write": 514696, "output": 18162 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/a/abyss/abyss_2.3.10.orig.tar.xz", "main abyss-2.3.10/vendor/gtest-1.7.0/src/gtest-printers.cc:257:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CharType [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "PrintCharsAsStringTo is only reached through calls whose arguments are variables, e.g. PrintCharsAsStringTo(begin, len - 1, os) inside UniversalPrintCharArray, which is itself called with concrete const char*/const wchar_t* pointers. Main could only deduce template arguments from literals, so the template was never instantiated. ValueFlow then saw the raw template body and bailed out on the unknown 'CharType'. The PR deduces T from the ValueType of the argument, here the 'const T*' shape with a char/wchar_t pointer. That instantiates the template with concrete types and removes the generic declaration, so the bailout disappears because Cppcheck now understands the code better." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/actor-framework/actor-framework_0.18.7.orig.tar.gz", "main actor-framework-0.18.7/examples/broker/simple_broker.cpp:79:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`write_int` is a function template that main never instantiated, because its calls pass variables or casts rather than literals. Main therefore analysed the raw template, saw `T` in `sizeof(T)` as an incomplete variable, and emitted the valueFlow bailout. The PR adds type deduction from argument ValueTypes. This lets calls like `write_int(self, hdl, static_cast(...))` and `write_int(self, hdl, int32_value)` be instantiated with concrete types, after which the template declaration is removed. The debug bailout disappearing means Cppcheck now analyses concrete instantiations instead of skipping the generic body." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/aptitude/aptitude_0.8.13.orig.tar.xz", "your aptitude-0.8.13/src/load_grouppolicy.cc:185:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', at the template class policy_node1, which is a plain class template. It appears together with similar new messages in several other files of this package. These come from the new type-information template deduction rounds, most likely when the symbol database is rebuilt after deduction (the class template instantiations force a non-incremental rebuild). The rebuilt database leaves some types unresolved, so Cppcheck now understands this code worse than before." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/aptitude/aptitude_0.8.13.orig.tar.xz", "your aptitude-0.8.13/src/load_grouppolicy.cc:223:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', at the class template null_policy_parser. It derives from group_policy_parser, which is a normal class defined in the same file. Before the PR this message did not appear. The new type-deduction rounds rebuild or incrementally update the symbol database, and afterwards a type reference in the template-instantiated code is left unresolved. Similar new messages appear in other files of the package. This means Cppcheck now understands the code worse, so the change is a regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/augustus/augustus_3.5.0+dfsg.orig.tar.xz", "main Augustus-3.5.0/src/googletest/src/gtest-printers.cc:266:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CharType [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Line 266 is inside the function template `PrintCharsAsStringTo`. It is called with concrete arguments such as `const char*` and `const wchar_t*` (via `UniversalPrintCharArray`). Main only deduced template arguments from literals, so the template stayed uninstantiated. ValueFlow then saw `CharType` as an incomplete variable and skipped the function. The PR deduces template arguments from the types of variable arguments. All parameter forms here (`const T*`, `size_t`, `ostream*`) are supported by the new deduction. So the template is now instantiated with concrete types and the generic declaration is removed. The bailout disappears because Cppcheck now analyzes real instantiations, not because analysis was lost." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/c/cmake/cmake_4.4.3.orig.tar.gz", "your cmake-4.4.3/Source/cmInstrumentation.h:31:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "This is a new debug message saying the SymbolDatabase could not resolve all user defined types for class cmInstrumentation. Main does not report it, and nothing in this header changed between the runs. The cause is the PR's new type-deduction rounds. They either update the symbol database incrementally (addSymbolsForNewTokenRanges, removeSymbolsForTokens) or rebuild it after instantiating templates. These steps can leave type pointers unset or cleared, for example through `tok->type(nullptr)` on removed types or through scopes that are re-scanned. The same message appears for several other cmake headers in this run. It shows Cppcheck now understands the code worse." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/c/cmake/cmake_4.4.3.orig.tar.gz", "your cmake-4.4.3/Source/cmUVStream.h:17:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', at the class template cmBasicUVIStream. Main did not report it. This is the incompleteVars debug output, and the PR moved createSymbolDatabaseIncompleteVars into finalize(), which now runs after the type-information template rounds. Those rounds rebuild or incrementally update the token data. The new message means the symbol database ends up less complete than before on this file. The same message appears in several other cmake files, which points to a systematic effect of the PR rather than better understanding. A new debug message of this kind indicates Cppcheck understands the code worse." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/f/fqterm/fqterm_0.9.10.1.orig.tar.gz", "your fqterm-0.9.10.1/src/common/fqterm_exif_extractor.h:73:5: style: The member function 'FQTerm::ExifExtractor::gcd < unsigned int >' can be static. [functionStatic]\n fqterm-0.9.10.1/src/common/fqterm_exif_extractor.h:73:5: note: The member function 'FQTerm::ExifExtractor::gcd < unsigned int >' can be static.\n fqterm-0.9.10.1/src/common/fqterm_exif_extractor.h:73:5: note: The member function 'FQTerm::ExifExtractor::gcd < unsigned int >' can be static." ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "`gcd` is a member function template that uses no member data, so 'can be static' is a true positive. Main reported it once, as 'FQTerm::ExifExtractor::gcd'. The PR now deduces template arguments from the calls and instantiates `gcd` and `gcd`. The single warning becomes two warnings at the same line 73:5, and each names an instantiation instead of the function the user actually writes. The user still has one fix to make, so this `gcd` warning is a duplicate with a less accurate name." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/g/gpsshogi/gpsshogi_0.7.0.orig.tar.gz", "your gpsshogi-0.7.0.orig/old-sample/ppair/akukei.cc:100:63: performance: Function parameter 'selector' should be passed by const reference. [passedByValue]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The new type deduction lets Cppcheck instantiate `relationsInArea`, and it now flags the functor parameter `selector`. The visible functor `RangeSelector` has a non-const `operator()(Square)`, and the body calls `selector(posi)`. If the parameter were `const&`, those calls would not compile, so the suggestion is wrong for this instantiation. Passing function objects by value is also the usual idiom, as in the STL. The call sites are not shown, so a different selector type cannot be ruled out. Most likely this is a new false positive coming from the template instantiation." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/g/gpsshogi/gpsshogi_0.7.0.orig.tar.gz", "your gpsshogi-0.7.0.orig/old-sample/ppair/akukei.cc:149:61: performance: Function parameter 'selector' should be passed by const reference. [passedByValue]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "With the PR, `diffWithMove(state, m, range, cur)` is now instantiated by deducing `SquareSelect` from the variable `range` as `RangeSelector`. `RangeSelector` is a struct with four ints and a bool (about 20 bytes, larger than the usual small-type threshold). In `diffWithMove`, `selector` is only passed on to `relationsInArea`, which takes it by value and copies it again. It is never modified, so `const SquareSelect&` would compile and save a copy. The warning is technically correct and only appears because the template is now analysed with a concrete type. Passing functors by value is a common idiom and the saving is small, so this is a valid but minor new finding." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/i/ispc/ispc_1.28.2.orig.tar.gz", "your ispc-ispc-5bf8fb9/benchmarks/01_trivial/09_shuffle.cpp:64:17: warning: %lf in format string (no. 3) requires 'double' but the argument type is 'signed int'. [invalidPrintfArgType_float]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "With the PR, check1(src_a, dst, count) is now deduced from the variable types and instantiated as check1, check1, and so on. Inside the template, the printf with %lf sits in an `if constexpr (std::is_same::value)` branch. That branch is discarded for every non-double instantiation, so the printf is never compiled with T=int. Cppcheck does not evaluate the `if constexpr` condition and reports the dead branch. The new warning is a false positive caused by the new deduction." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/i/ispc/ispc_1.28.2.orig.tar.gz", "your ispc-ispc-5bf8fb9/benchmarks/01_trivial/09_shuffle.cpp:64:17: warning: %lf in format string (no. 4) requires 'double' but the argument type is 'signed short'. [invalidPrintfArgType_float]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "With the PR, check1/check2 are now instantiated for int8_t/int16_t/int32_t/int64_t. The printf on line 64 is inside an `if constexpr (std::is_same::value)` branch, so it is discarded for any T other than double. For T=int16_t the branch never exists, and passing a short to %lf can never happen. Cppcheck does not evaluate the `if constexpr` condition per instantiation, so it checks the discarded branch and reports invalidPrintfArgType_float. This is a false positive introduced by the new type deduction." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kf6-ktexteditor/kf6-ktexteditor_6.30.0.orig.tar.xz", "your ktexteditor-6.30.0/src/view/kateview.h:204:5: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', at the nested struct PlainSecondaryCursor. That struct declares members of types KTextEditor::Cursor and KTextEditor::Range and an inline friend operator<. Main did not report this, so the symbol database was resolving these types before. The new type-deduction rounds rebuild or incrementally update the symbol database. That probably comes from a deduced template instantiation, such as std::sort or a similar call on the cursor vectors, being added. After this, some type pointers are left unresolved, for example through removeSymbolsForTokens clearing them or through the moved createSymbolDatabaseIncompleteVars/finalize ordering. A new debug message of this kind means Cppcheck now understands the code worse, so it is a regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kst/kst_2.0.8.orig.tar.gz", "main Kst-2.0.8/src/datasources/ascii/asciidatareader.cpp:293:56: style:inconclusive: Function 'readColumns' argument 8 names different: declaration '' definition 'lineending'. [funcArgNamesDifferentUnnamed]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "The removed warning is not lost. The PR now deduces the template arguments of `readColumns(...)` from the variable arguments and instantiates the template. The same funcArgNamesDifferentUnnamed warning is reported at the same location (293:56) for the same parameter (`lineending`). The only difference is that the function name now shows the instantiation, `readColumns < const char * , AsciiCharacterTraits :: IsWhiteSpace >`. The finding is unchanged: the declaration leaves the parameter unnamed and the definition names it. The instantiation-specific name is slightly less tidy, since the issue is in the template itself, but this is a reworded duplicate of the same finding, not a lost true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kst/kst_2.0.8.orig.tar.gz", "main Kst-2.0.8/src/datasources/ascii/asciidatareader.cpp:293:91: style:inconclusive: Function 'readColumns' argument 9 names different: declaration '' definition 'column_del'. [funcArgNamesDifferentUnnamed]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "The same funcArgNamesDifferentUnnamed warning is still reported at the same location: the declaration has an unnamed 9th parameter and the definition names it 'column_del'. The only change is that the PR now instantiates the template through type deduction, so the message shows the instantiated name 'readColumns < const char * , AsciiCharacterTraits :: IsWhiteSpace >' instead of 'readColumns'. This is Cppcheck's usual output for instantiated templates. The finding itself is unchanged, so it makes no real difference to users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kst/kst_2.0.8.orig.tar.gz", "your Kst-2.0.8/src/datasources/ascii/asciidatareader.cpp:293:56: style:inconclusive: Function 'readColumns < const char * , AsciiCharacterTraits :: IsWhiteSpace >' argument 8 names different: declaration '' definition 'lineending'. [funcArgNamesDifferentUnnamed]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Main already reported this warning on line 293 for the 'readColumns' template. With the PR, type deduction now instantiates the template from the call at line 281, so the same warning is reported on the instantiation 'readColumns < const char * , AsciiCharacterTraits :: IsWhiteSpace >'. The location, argument index and names are unchanged, so the finding itself is the same. Only the function name changed. The instantiated name is a bit noisier because the issue lies in the template, not in that one instantiation, but it still identifies the function correctly. That is not a meaningful gain or loss for users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kst/kst_2.0.8.orig.tar.gz", "your Kst-2.0.8/src/datasources/ascii/asciidatareader.cpp:293:91: style:inconclusive: Function 'readColumns < const char * , AsciiCharacterTraits :: IsWhiteSpace >' argument 9 names different: declaration '' definition 'column_del'. [funcArgNamesDifferentUnnamed]" ], "verdict": { "verdict": "regression", "confidence": "low", "explanation": "The underlying finding is unchanged. The out-of-class template definition names parameter 9 'column_del' while the in-class declaration leaves it unnamed, and main already reported this on the same line. With the PR, the call `readColumns(..., _lineending, column_del)` in readField() is now type-deduced and instantiated. The same warning is now reported for one arbitrary instantiation, 'readColumns < const char * , AsciiCharacterTraits :: IsWhiteSpace >'. The naming mismatch is a property of the template source, not of the IsWhiteSpace instantiation, so the new text is more confusing. It names one of several instantiations (IsCharacter and IsInString are also used) with a possibly questionable deduced Buffer type. The location and finding stay the same, so the impact is small, but the message got slightly less accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/k/kst/kst_2.0.8.orig.tar.gz", "your Kst-2.0.8/src/datasources/ascii/asciidatareader.cpp:299:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IsCharacter [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR now deduces and instantiates `readColumns`. Inside that instantiated copy, `const IsCharacter comment_del(...)` is a local variable declaration, and `IsCharacter` is a type. Cppcheck instead treats `IsCharacter` as an incomplete variable and skips the whole function in valueFlowConditionExpressions. The same kind of declaration in non-template code (line 271) gets no such bailout. This suggests the new incremental symbol database or tokenization of the instantiated code is wrong. The new debug bailout therefore shows Cppcheck understanding this code worse, even though the function was previously not analyzed as a concrete instantiation at all." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/l/lzma/lzma_25.00+dfsg.orig.tar.gz", "main CPP/Windows/PropVariant.cpp:362:19: style:inconclusive: Technically the member function 'NWindows::NCOM::CPropVariant::Compare' can be const. [functionConst]\n CPP/Windows/PropVariant.h:168:7: note: Technically the member function 'NWindows::NCOM::CPropVariant::Compare' can be const.\n CPP/Windows/PropVariant.cpp:362:19: note: Technically the member function 'NWindows::NCOM::CPropVariant::Compare' can be const." ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "`CPropVariant::Compare` only reads members (`vt`, `bVal`, `iVal`, `filetime`, \u2026). It passes them by value to `MyCompare` and by const pointer to `CompareFileTime`. It also calls `Get_Ns100()`, which must already be const because it is called on the const reference `a`. So the function really can be const, and the `functionConst` warning is a true positive. The PR now deduces template arguments for calls like `MyCompare(vt, a.vt)` and instantiates `MyCompare<...>`. That change apparently made the const check lose this warning. Losing a correct warning is a regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libs/libstaroffice/libstaroffice_0.0.8.orig.tar.xz", "your libstaroffice-0.0.8/src/lib/libstaroffice_internal.hxx:169:13: warning: Comparison of a boolean expression with an integer. [compareBoolExpressionWithInt]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "`checkAddOverflow` is a generic overflow helper. Its `x < 0` test only makes sense as generic code. The new warning appears because the PR's type deduction now instantiates the template from a call site. The warning text implies T was deduced as bool, either correctly or by mistake. Calling an overflow check with bool arguments would be very unusual, so a wrong deduction is likely. Even if T really is bool, flagging generic template code for one instantiation is noise: the code is correct for its intended integer types. The PR itself suppresses a similar check when the variable's type comes from a template argument, but not this one. A new false positive caused by the PR." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/m/mypy/mypy_2.4.0.orig.tar.gz", "main mypy-2.4.0/mypyc/external/googletest/src/gtest-printers.cc:264:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CharType [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "PrintCharsAsStringTo is a function template that is only called with deduced arguments: `PrintCharsAsStringTo(begin, len, os)` from UniversalPrintCharArray, which in turn is called with `const char*`/`const wchar_t*`. Before the PR, only deduction from literal arguments was supported. The template therefore stayed uninstantiated, and ValueFlow bailed out on the raw template body because `CharType` was an incomplete variable. The PR deduces template arguments from the argument ValueTypes, so the function is instantiated with concrete types (char/wchar_t) and the template declaration is removed. The bailout disappears because Cppcheck now analyzes the real instantiations." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/p/pbbam/pbbam_2.4.0+dfsg.orig.tar.xz", "your pbbam-2.4.0/tools/pbbamify/src/QueryLookup.h:32:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "This debug message is new. It is emitted by createSymbolDatabaseNeedInitialization when a class's members have types that cannot be resolved. The PR moves that phase into finalize(), which runs after the new type-information template rounds. Those rounds remove and incrementally re-add symbols, and can clear type and scope pointers. The class QueryLookup and its members (BAM::DataSet, std::vector, std::unordered_map) did not change. Main resolved the member types without this message, so the PR now understands the code worse. Missing pbbam headers do not explain it, because the input was the same for both runs." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/quassel/quassel_0.14.0.orig.tar.xz", "main quassel-0.14.0/3rdparty/googletest-1.8.1/googletest/src/gtest-printers.cc:267:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CharType [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "PrintCharsAsStringTo is a function template. It is called from UniversalPrintCharArray as PrintCharsAsStringTo(begin, len - 1, os), where begin is a const CharType*. The PR adds type-based deduction for template arguments, so the template can now be instantiated (e.g. for char and wchar_t via UniversalPrintCharArray's own instantiations). Previously the uninstantiated template body was analyzed with CharType as an unknown name, which caused the incompleteVar bailout. That bailout is gone because the template is now expanded with concrete types and the template declaration is removed. Losing a debug bailout because the code is better understood is an improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/quassel/quassel_0.14.0.orig.tar.xz", "your quassel-0.14.0/src/common/funchelpers.h:57:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "Line 57 is a partial specialization of the class template FuncHelper that derives from another FuncHelper specialization. The PR adds a type-deduction round that rebuilds the symbol database, either incrementally or fully, after the template simplifier changes the token list. After that rebuild, the user-defined types in these template specializations (base FuncHelper<...>) are no longer resolved, so a new 'SymbolDatabase couldn't resolve all user defined types' debug message appears. Main did not report this for the same code. The message means Cppcheck now understands the code worse, likely because the rebuild or incremental path leaves type pointers unset. That makes this a regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/quassel/quassel_0.14.0.orig.tar.xz", "your quassel-0.14.0/src/common/funchelpers.h:64:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "Line 64 declares a partial specialization of the FuncHelper class template with a base class FuncHelper. This uncompiled template code did not change. The new debug message 'SymbolDatabase couldn't resolve all user defined types' appears only with the PR. Several such messages appear for funchelpers.h, peer.h, signalproxy.h and util.h. This points to the new type-deduction rounds, through the incremental or full rebuild of the symbol database, leaving type pointers unresolved where main resolved them. Cppcheck now understands the code worse, so this is a regression in symbol database quality." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/q/quassel/quassel_0.14.0.orig.tar.xz", "your quassel-0.14.0/src/common/signalproxy.h:404:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The PR adds a new 'SymbolDatabase couldn't resolve all user defined types' debug message at the class template SignalProxy::SlotObject. This code was not reported by main. The new type-deduction rounds rebuild or incrementally update the symbol database, and this message appears in several headers of the package at once (funchelpers.h, peer.h, util.h). That points to the rebuilt or updated database leaving template-related types unresolved, a new internal inconsistency rather than better understanding of the code. A new debug message showing Cppcheck understands the code worse is a regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/r/rocalution/rocalution_7.2.4.orig.tar.gz", "your rocALUTION-rocm-7.2.4/clients/benchmarks/rocalution_driver_itsolver_traits.hpp:112:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "Line 112 is a partial specialization of a traits struct whose solver types (BiCGStab, ...>) come from rocALUTION headers that are not included here. The PR adds a second template simplification round that uses type information. That round rebuilds or updates the symbol database, and the debug message about unresolved user-defined types now appears where main had none. The code did not change. The new debug output means the symbol database is in a worse or less consistent state after the PR's extra template pass, not that Cppcheck understands the code better." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/slic3r-prusa/slic3r-prusa_2.9.6+dfsg.orig.tar.xz", "main PrusaSlicer-version_2.9.6/src/libslic3r/TriangleSelector.cpp:1684:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable facet_info [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Line 1684 is `if constexpr (facet_info == AdditionalMeshInfo::Color)` inside a member function template whose non-type parameter is `facet_info`. Main bailed out because `facet_info` was an incomplete variable. With the PR, the same line still bails out, now naming `Color` (the added 'your' line at 1684:57). That suggests the template was instantiated and `facet_info` replaced, but the enumerator still is not resolved. ValueFlow still skips this function, so the removed bailout is just a reworded duplicate of the new one. Nothing changes for users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/spaln/spaln_3.0.7+dfsg.orig.tar.xz", "main spaln-ver.3.0.7/src/fitild.cc:347:63: style:inconclusive: Function 'nm_iterate' argument 1 names different: declaration '' definition 'T'. [funcArgNamesDifferentUnnamed]" ], "verdict": { "verdict": "regression", "confidence": "medium", "explanation": "The definitions of GslOptim::fdf_iterate and GslOptim::nm_iterate name their first parameter 'T'. Main reports that the class declaration leaves this parameter unnamed. That is exactly what funcArgNamesDifferentUnnamed is meant to flag, so the warnings look like true positives. Neither function is a template, and nothing in this code changed. The PR does reorganize the symbol database: it splits finalize() out of the constructor, adds incremental add/remove of symbols, and lets new template instantiations from clib.h trigger rebuilds. Losing both warnings together suggests the PR disturbed how declarations and definitions are linked, rather than fixing a false positive. The header with the declaration is not shown, so confidence is medium." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/spaln/spaln_3.0.7+dfsg.orig.tar.xz", "your spaln-ver.3.0.7/src/clib.h:112:10: style: C-style pointer casting [cstyleCast]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`vmax` returns `(X*) temp`, where `temp` is `const X*`. That is a real C-style pointer cast, and it also silently casts away const. Main never reported it because calls like `vmax(array, n)` with non-literal arguments were not instantiated, so the template body was never checked. With the PR's type deduction from argument variables, the template is instantiated (e.g. `vmax`). The cast is now seen and correctly reported as cstyleCast, a new true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/sphinxsearch/sphinxsearch_2.8.2.orig.tar.gz", "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]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The PR now deduces the template argument of calls like sphUnalignedRead(x) from the argument's type, so the function template gets instantiated and analyzed instead of skipped. In that body, pSrc is cast from &tRef, which is a const T&, and is only read through (*pDst++ = *pSrc++). Declaring it as 'const byte *' is therefore correct for every T, so this is a true positive. The cast even casts away const. The matching main-only debug bailout ('incomplete variable T') disappearing confirms Cppcheck now understands the code better." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/treesheets/treesheets_1.0.2.orig.tar.gz", "main treesheets-1.0.2/lobster/src/lobster/wasm_binary_writer.h:115:31: style: The member function 'WASM::BinaryWriter::UInt64' can be static. [functionStatic]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "UInt64 calls UInt32, which calls UInt16 and then UInt8, and UInt8 does buf.push_back(). So UInt64 uses member state and cannot be static. Main reported it as static because the uninstantiated template call UInt32(v & 0xFFFFFFFF) could not be resolved to a member function. With the PR, the template arguments of these calls are deduced from the argument types and the calls are instantiated. Cppcheck now sees the chain of member calls, and the false positive is gone." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/treesheets/treesheets_1.0.2.orig.tar.gz", "your treesheets-1.0.2/lobster/src/lobster/geom.h:129:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "In `geom::vec`, `c` is the class's data member (the array that `x`/`y`/`z`/`w` alias). `operator-=` uses it through the `DOVEC` macro. The new debug message says Cppcheck now treats `c` as an incomplete (unknown) variable in this member function. The same diff also adds `functionStatic` warnings for the `vec` instantiations, such as `data()`, which plainly returns the member `c`. These are false positives. Together they show that after the PR's incremental template/symbol-database update, the member variables of the instantiated class are no longer resolved. Cppcheck understands this code worse, so ValueFlow is skipped for these functions." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/treesheets/treesheets_1.0.2.orig.tar.gz", "your treesheets-1.0.2/lobster/src/lobster/geom.h:136:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "`operator/=` is a member of the class template `geom::vec`, and `c` is its member array. The new valueFlowBailoutIncompleteVar debug message says Cppcheck no longer links `c` to that member variable in the instantiated class (`vec`). The same diff adds false `functionStatic` warnings for methods like `data()` and `begin()` that clearly use `c`. Both point to the PR's incremental symbol database update or template re-instantiation losing member variable information, so the new bailout reflects worse understanding of the code." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/w/worker/worker_5.3.1.orig.tar.bz2", "your worker-5.3.1/src/aguix/fieldlistview.h:486:7: warning: Member variable 'header_sort_hint::field' is not initialized in the constructor. [uninitMemberVar]" ], "verdict": { "verdict": "regression", "confidence": "high", "explanation": "The constructor of header_sort_hint initializes field with field( -1 ) in its member initializer list, so the uninitMemberVar warning is a false positive. The PR moved createSymbolDatabaseNeedInitialization/CopyAndMove into finalize() and added incremental symbol database updates. Those changes most likely left the constructor's initializer list unrecognized for this nested struct (stale symbols or scope state). The new warning comes from Cppcheck understanding the code worse." } } ], "started": "2026-10-14 20:31:16 UTC", "runner": "server" }