2025-10-18 06:36 ftp://ftp.de.debian.org/debian/pool/main/n/node-cjs-module-lexer/node-cjs-module-lexer_2.1.0+dfsg.orig.tar.xz 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 -j8 platform: Linux-6.16.9+deb14-amd64-x86_64-with-glibc2.41 python: 3.13.9 client-version: 1.3.69 compiler: g++ (Debian 15.2.0-4) 15.2.0 cppcheck: head 2.18.0 head-info: 5ace300a (2025-10-17 23:16:53 +0200) count: 42 41 elapsed-time: 93.2 34.4 head-timing-info: old-timing-info: head results: cjs-module-lexer-2.1.0/src/lexer.c:101:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Import [valueFlowBailoutIncompleteVar] cjs-module-lexer-2.1.0/src/lexer.c:920:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ExportAssign [valueFlowBailoutIncompleteVar] cjs-module-lexer-2.1.0/src/lexer.c:1001:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ExportAssign [valueFlowBailoutIncompleteVar] cjs-module-lexer-2.1.0/src/lexer.c:313:6: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:310:6: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:313:6: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:460:19: style: Variable 'revertPos' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:449:19: note: revertPos is assigned cjs-module-lexer-2.1.0/src/lexer.c:460:19: note: revertPos is overwritten cjs-module-lexer-2.1.0/src/lexer.c:468:19: style: Variable 'revertPos' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:460:19: note: revertPos is assigned cjs-module-lexer-2.1.0/src/lexer.c:468:19: note: revertPos is overwritten cjs-module-lexer-2.1.0/src/lexer.c:496:12: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:493:12: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:496:12: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:515:14: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:512:14: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:515:14: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:593:18: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:590:18: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:593:18: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:602:18: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:599:18: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:602:18: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:608:18: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:605:18: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:608:18: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:660:18: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:657:18: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:660:18: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:680:14: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:677:14: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:680:14: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:689:14: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:686:14: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:689:14: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:695:14: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:692:14: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:695:14: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:725:14: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:722:14: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:725:14: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:772:14: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:769:14: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:772:14: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:778:14: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] cjs-module-lexer-2.1.0/src/lexer.c:775:14: note: ch is assigned cjs-module-lexer-2.1.0/src/lexer.c:778:14: note: ch is overwritten cjs-module-lexer-2.1.0/src/lexer.c:983:17: style: Local variable 'startPos' shadows outer variable [shadowVariable] cjs-module-lexer-2.1.0/src/lexer.c:966:15: note: Shadowed declaration cjs-module-lexer-2.1.0/src/lexer.c:983:17: note: Shadow variable cjs-module-lexer-2.1.0/src/lexer.c:48:30: style: Parameter '_source' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:278:46: style: Parameter 'it_id_start' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:385:23: style: Variable 'lastPos' can be declared as pointer to const [constVariablePointer] cjs-module-lexer-2.1.0/src/lexer.c:454:19: style: Variable 'id_start' can be declared as pointer to const [constVariablePointer] cjs-module-lexer-2.1.0/src/lexer.c:753:23: style: Variable 'lastPos' can be declared as pointer to const [constVariablePointer] cjs-module-lexer-2.1.0/src/lexer.c:1111:39: style: Parameter 'bPos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1180:13: style: Variable 'curPos' can be declared as pointer to const [constVariablePointer] cjs-module-lexer-2.1.0/src/lexer.c:1310:25: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1314:25: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1318:25: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1322:25: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1326:25: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1330:25: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1334:25: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1338:25: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1342:26: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1346:26: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1350:26: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1354:26: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1358:30: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:1362:39: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] cjs-module-lexer-2.1.0/src/lexer.c:71:15: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] cjs-module-lexer-2.1.0/src/lexer.c:1279:10: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] diff: head cjs-module-lexer-2.1.0/src/lexer.c:48:30: style: Parameter '_source' can be declared as pointer to const [constParameterPointer] DONE