2024-04-22 21:36 ftp://ftp.de.debian.org/debian/pool/main/t/tolua/tolua_5.2.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=lua --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: bd7136d (2024-04-22 21:34:48 +0200) count: 74 74 elapsed-time: 65.3 65.7 head-timing-info: old-timing-info: head results: tolua-5.2.4/src/bin/._tolua.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/bin/._tolua_bind52_linux30_64.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/bin/._toluabind.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/bin/tolua.c:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/bin/tolua.c:46:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/bin/tolua.c:58:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/bin/tolua.c:68:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOLUA_VERSION [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/bin/tolua.c:49:54: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/bin/tolua.c:49:63: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/bin/tolua.c:56:26: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/bin/tolua_bind52_linux30_64.c:236:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_OK [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/bin/tolua_bind52_linux30_64.c:23:41: style: Parameter 'tolua_S' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/bin/toluabind.c:236:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_OK [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/bin/toluabind.c:23:41: style: Parameter 'tolua_S' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/lib/._tolua_event.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/lib/._tolua_is.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/lib/._tolua_map.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/lib/._tolua_push.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/lib/._tolua_to.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/lib/tolua_event.c:29:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_event.c:129:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_event.c:224:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_event.c:373:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_is.c:25:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TNONE [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_is.c:99:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_is.c:126:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_is.c:63:73: style: Parameter 'err' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/lib/tolua_map.c:41:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_map.c:64:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_map.c:155:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_map.c:207:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_map.c:229:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_GLOBALSINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_map.c:237:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_map.c:297:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_map.c:317:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/lib/tolua_map.c:175:12: style: Condition 'v' is always true [knownConditionTrueFalse] tolua-5.2.4/src/lib/tolua_map.c:280:49: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/lib/tolua_push.c:58:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/tests/._tarray.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tclass.cpp:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tconstant.cpp:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tenum.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tfunction.cpp:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tinheritance.cpp:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tmodule.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tnamespace.cpp:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tpeer.cpp:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tvararg.cpp:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/._tvariable.c:1:38: error: The code contains unhandled character(s) (character code=230). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.4/src/tests/tclass.h:19:17: performance:inconclusive: Technically the member function 'Tst_A::Tst_AA::aa' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua-5.2.4/src/tests/tclass.h:27:17: performance:inconclusive: Technically the member function 'Tst_A::Tst_BB::classname' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua-5.2.4/src/tests/tclass.h:36:17: warning: The class 'Tst_B' defines member variable with name 'last' also defined in its parent class 'Tst_A'. [duplInheritedMember] tolua-5.2.4/src/tests/tclass.h:10:17: note: Parent variable 'Tst_A::last' tolua-5.2.4/src/tests/tclass.h:36:17: note: Derived variable 'Tst_B::last' tolua-5.2.4/src/tests/tclass.h:46:17: warning: The class 'Tst_C' defines member variable with name 'last' also defined in its parent class 'Tst_B'. [duplInheritedMember] tolua-5.2.4/src/tests/tclass.h:36:17: note: Parent variable 'Tst_B::last' tolua-5.2.4/src/tests/tclass.h:46:17: note: Derived variable 'Tst_C::last' tolua-5.2.4/src/tests/tclass.h:46:17: warning: The class 'Tst_C' defines member variable with name 'last' also defined in its parent class 'Tst_A'. [duplInheritedMember] tolua-5.2.4/src/tests/tclass.h:10:17: note: Parent variable 'Tst_A::last' tolua-5.2.4/src/tests/tclass.h:46:17: note: Derived variable 'Tst_C::last' tolua-5.2.4/src/tests/tclass.h:47:3: style: Class 'Tst_C' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tolua-5.2.4/src/tests/tclass.h:25:14: style: The destructor '~Tst_BB' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] tolua-5.2.4/src/tests/tclass.h:18:14: note: Virtual destructor in base class tolua-5.2.4/src/tests/tclass.h:25:14: note: Destructor in derived class tolua-5.2.4/src/tests/tclass.h:38:12: style: The destructor '~Tst_B' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] tolua-5.2.4/src/tests/tclass.h:12:12: note: Virtual destructor in base class tolua-5.2.4/src/tests/tclass.h:38:12: note: Destructor in derived class tolua-5.2.4/src/tests/tclass.h:48:11: style: The destructor '~Tst_C' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] tolua-5.2.4/src/tests/tclass.h:38:12: note: Virtual destructor in base class tolua-5.2.4/src/tests/tclass.h:48:11: note: Destructor in derived class tolua-5.2.4/src/tests/tclass.h:57:39: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/tests/tfunction.h:72:8: style:inconclusive: Technically the member function 'Point::getvalue' can be const. [functionConst] tolua-5.2.4/src/tests/tfunction.h:112:7: performance:inconclusive: Technically the member function 'Point::size' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua-5.2.4/src/tests/tfunction.h:23:2: style: Class 'Point' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tolua-5.2.4/src/tests/tfunction.h:201:11: style: The destructor '~ColorPoint' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] tolua-5.2.4/src/tests/tfunction.h:27:11: note: Virtual destructor in base class tolua-5.2.4/src/tests/tfunction.h:201:11: note: Destructor in derived class tolua-5.2.4/src/tests/tfunction.h:43:22: style: Parameter 'p' can be declared as reference to const [constParameterReference] tolua-5.2.4/src/tests/tfunction.h:35:18: style: Parameter 'v' can be declared as const array [constParameter] tolua-5.2.4/src/tests/tfunction.h:39:26: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tolua-5.2.4/src/tests/tfunction.h:160:36: style: Parameter 'v' can be declared as const array [constParameter] tolua-5.2.4/src/tests/tvararg.cpp:31:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua-5.2.4/src/tests/tvararg.h:15:10: style:inconclusive: Technically the member function 'A::get' can be const. [functionConst] tolua-5.2.4/src/tests/tvararg.h:19:7: performance:inconclusive: Technically the member function 'A::bounce' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua-5.2.4/src/tests/tvararg.h:24:10: performance:inconclusive: Technically the member function 'A::add' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua-5.2.4/src/tests/tvararg.h:34:6: performance:inconclusive: Technically the member function 'A::GetB' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua-5.2.4/src/tests/tfunction.h:11:1: error: The one definition rule is violated, different classes/structs have the same name 'Point' [ctuOneDefinitionRuleViolation] tolua-5.2.4/src/tests/tpeer.h:3:1: note: The one definition rule is violated, different classes/structs have the same name 'Point' tolua-5.2.4/src/tests/tfunction.h:11:1: note: The one definition rule is violated, different classes/structs have the same name 'Point' tolua-5.2.4/src/tests/tconstant.h:17:1: error: The one definition rule is violated, different classes/structs have the same name 'A' [ctuOneDefinitionRuleViolation] tolua-5.2.4/src/tests/tvararg.h:10:1: note: The one definition rule is violated, different classes/structs have the same name 'A' tolua-5.2.4/src/tests/tconstant.h:17:1: note: The one definition rule is violated, different classes/structs have the same name 'A' diff: DONE