{ "tokens": { "input": 18651, "cache_read": 18084, "cache_write": 15070, "output": 4640 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/a/ares/ares_148+dfsg.orig.tar.xz", "main ares-emulator-ares-0aafd85/hiro/extension/fixed-layout.cpp:42:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`mFixedLayout::minimumSize() const -> Size` has a `const` between the parameter list and the trailing return type. Before the PR, Cppcheck did not recognize this as a trailing return type, so `f32 width = 0, height = 0;` was not split into separate declarations. As a result `height` looked like an undeclared variable and triggered the bailout. With the PR the declaration is simplified correctly and `height` is known. The remaining bailout is about `cells`, which is an unrelated unknown member from headers that were not provided. Losing this spurious bailout means Cppcheck now understands the code better." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/ares/ares_148+dfsg.orig.tar.xz", "your ares-emulator-ares-0aafd85/hiro/extension/fixed-layout.cpp:43:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cells [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "`minimumSize()` is declared as `auto mFixedLayout::minimumSize() const -> Size`. Before the PR, the `const` before `->` stopped `isTrailingReturnType` from recognising the trailing return type. As a result, `f32 width = 0, height = 0;` was not split into separate declarations, and `height` was treated as an incomplete variable. That bailout was caused by a misparse, since `height` is a plain local. With the PR, the declaration is split correctly, so `height` is known. The function still bails out, but now on `cells` (`state.cells`), whose type really is unknown in this file. The bailout message now names the actual cause, so it is more accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/scite/scite_5.6.9.orig.tar.gz", "main tmpqy_h_fu7/lexilla/test/unit/catch.hpp:8713:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable padding [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`auto operator *() const -> std::string` has `const` between `)` and the trailing return type. Previously isTrailingReturnType did not recognize this, so `std::string row, padding;` was not split and `padding` stayed an incomplete variable. That caused the valueFlow bailout. With the PR, the specifier is skipped, the declaration is split properly, and the debug bailout disappears because Cppcheck now understands the code." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/scite/scite_5.6.9.orig.tar.gz", "main tmpqy_h_fu7/scintilla/test/unit/catch.hpp:8713:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable padding [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`auto operator *() const -> std::string { std::string row, padding; ... }` has a `const` between the parameter list and the trailing return type. Before the PR, isTrailingReturnType did not skip `const`, so the body was not handled as a function body. The declaration `std::string row, padding;` was then not split, which left `padding` as an incomplete variable and caused the bailout. The PR skips such specifiers, so the declaration is now simplified, `padding` becomes a known variable, and the debug bailout goes away because Cppcheck understands the code better." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/scite/scite_5.6.9.orig.tar.gz", "main tmpqy_h_fu7/scite/test/catch.hpp:8713:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable padding [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`operator *() const -> std::string` has a `const` between the parameter list and the trailing return type. Before the PR, `isTrailingReturnType` only recognised `) .`, so the body was not handled as a function body. As a result `std::string row, padding;` was not split into separate declarations and `padding` became an incomplete variable. The PR skips specifiers like `const`, so the declaration is now split and `padding` is a known variable. The debug bailout disappears because Cppcheck now understands the code better." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/stenc/stenc_2.0.1.orig.tar.gz", "main scsitape-stenc-704b5dd/tests/catch.hpp:8721:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable padding [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "`auto operator *() const -> std::string` has `const` between `)` and the trailing return type. Before the PR, `isTrailingReturnType` did not skip `const`, so the declaration `std::string row, padding;` was not split. As a result `padding` was never declared as a variable, which produced the incomplete-variable bailout. The PR skips specifiers such as `const`, so the declaration is now simplified and `padding` is known. The debug bailout disappears because Cppcheck understands the code better." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/v/vg/vg_1.78.0+ds.orig.tar.xz", "main vgteam-vg-315509d/src/unittest/catch.hpp:8715:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable padding [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The function `auto operator *() const -> std::string` declares `std::string row, padding;`. Before the PR, the `const` between `)` and `->` stopped the trailing return type from being recognized. Because of that, the multi-variable declaration was not split, `padding` stayed an incomplete variable, and valueFlow bailed out. The PR now skips specifiers like `const`, so the declaration is simplified correctly and the bailout disappears. Cppcheck now understands this code better." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/x/xournalpp/xournalpp_1.3.8.orig.tar.xz", "main xournalpp-xournalpp-18b0604/src/core/control/tools/Selector.cpp:132:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Line 132 is `double curx = NAN, cury = NAN;` inside `auto LassoSelector::contains(double x, double y) const -> bool`. Main did not recognise the trailing return type because of the `const` before `->`. With the PR it does, so the multi-variable declaration is now split properly. The same valueFlowBailoutIncompleteVar debug message for NAN is still reported. Only the column moved from the second NAN (31) to the first NAN (19). The bailout neither appears nor disappears, so this is just a location shift of a debug message, with no effect on users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/x/xournalpp/xournalpp_1.3.8.orig.tar.xz", "main xournalpp-xournalpp-18b0604/src/core/model/Element.cpp:96:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "`Element::intersectsArea(...) const -> bool` has a `const` specifier before its trailing return type. With the PR, Cppcheck recognizes that trailing return type and now splits `double dest_x = NAN, dest_y = NAN;` correctly. The same valueFlowBailoutIncompleteVar debug message for `NAN` is still reported; it just points to column 21 (the first `NAN`) instead of column 35 (the second). This is a matching removed/added pair for the same debug bailout with only a location shift, so it does not matter to users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/x/xournalpp/xournalpp_1.3.8.orig.tar.xz", "your xournalpp-xournalpp-18b0604/src/core/control/tools/Selector.cpp:132:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Line 132 is `double curx = NAN, cury = NAN;` inside `auto LassoSelector::contains(double x, double y) const -> bool`. On main, `) const ->` was not recognized as a trailing return type, so simplifyVarDecl did not split this multi-variable declaration. The bailout was then reported at the second NAN (column 31). With the PR, the `const` specifier is skipped and the declaration is split into `double curx; curx = NAN; double cury; cury = NAN;`. The bailout now points at the first NAN (column 19), where an incomplete variable is actually first met. The same debug message remains; only its location moved. The move reflects correct tokenization of the function body, so this is a small improvement rather than a regression." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/x/xournalpp/xournalpp_1.3.8.orig.tar.xz", "your xournalpp-xournalpp-18b0604/src/core/model/Element.cpp:96:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "`Element::intersectsArea(...) const -> bool` has `const` between the parameter list and the trailing return type. The PR now recognizes this, so `double dest_x = NAN, dest_y = NAN;` is split into separate declarations as intended. The same valueFlowBailoutIncompleteVar debug message about the unknown macro NAN is still emitted. It now points to the first NAN (column 21) instead of the second (column 35). The bailout neither appeared nor disappeared, only its column changed, so users are not affected." } } ], "started": "2026-11-29 06:10:35 UTC", "runner": "pc" }