2026-05-15 03:06 ftp://ftp.de.debian.org/debian/pool/main/h/hyprwayland-scanner/hyprwayland-scanner_0.4.6.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 7a7c28c (2026-05-14 15:45:19 +0200) count: 47 38 elapsed-time: 0.7 0.3 head-timing-info: old-timing-info: head results: hyprwm-hyprwayland-scanner-b863271/src/main.cpp:981:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:443:30: style: Condition '!clientCode' is always true [knownConditionTrueFalse] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:442:13: note: Assuming that condition '!clientCode' is not redundant hyprwm-hyprwayland-scanner-b863271/src/main.cpp:443:30: note: Condition '!clientCode' is always true hyprwm-hyprwayland-scanner-b863271/src/main.cpp:1036:5: error: Unhandled exception thrown in function that is an entry point. [throwInEntryPoint] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:152:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:91:34: performance: Function parameter 'snake' should be passed by const reference. [passedByValue] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:66:16: style: Variable 'a' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:113:24: style: Variable 'e' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:125:24: style: Variable 'i' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:136:24: style: Variable 'i' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:273:16: style: Variable 'iface' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:277:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:278:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:285:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:286:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:296:16: style: Variable 'iface' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:305:16: style: Variable 'iface' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:406:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:409:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:425:20: style: Variable 'ev' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:427:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:443:24: style: Variable 'ev' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:445:28: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:468:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:471:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:544:16: style: Variable 'iface' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:552:16: style: Variable 'iface' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:554:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:555:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:569:20: style: Variable 'ev' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:570:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:595:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:599:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:609:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:660:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:674:20: style: Variable 'ev' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:678:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:690:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:734:24: style: Variable 'ev' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:738:28: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:750:28: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:922:24: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:950:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:952:24: style: Variable 'arg' can be declared as reference to const [constVariableReference] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:114:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:126:0: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:137:0: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] hyprwm-hyprwayland-scanner-b863271/src/main.cpp:712:40: style: Variable 'retType' is assigned a value that is never used. [unreadVariable] diff: head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:305:16: style: Variable 'iface' can be declared as reference to const [constVariableReference] head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:406:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:425:20: style: Variable 'ev' can be declared as reference to const [constVariableReference] head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:443:24: style: Variable 'ev' can be declared as reference to const [constVariableReference] head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:468:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:595:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:660:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:674:20: style: Variable 'ev' can be declared as reference to const [constVariableReference] head hyprwm-hyprwayland-scanner-b863271/src/main.cpp:950:20: style: Variable 'rq' can be declared as reference to const [constVariableReference] DONE