2022-07-01 14:34 ftp://ftp.de.debian.org/debian/pool/main/t/tolua/tolua_5.2.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-5.18.6-1-MANJARO-x86_64-with-glibc2.35 python: 3.10.5 client-version: 1.3.25 compiler: g++ (GCC) 12.1.0 cppcheck: head 2.8 head-info: 596f75e (2022-07-01 10:48:32 +0200) count: 31 30 elapsed-time: 11.1 11.7 head-timing-info: Tokenizer::simplifyTokens1: 10.8225s (avg. 0.63662s - 17 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 10.6062s (avg. 0.623895s - 17 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.066269s (avg. 0.00389818s - 17 result(s)) Tokenizer::createTokens: 0.048035s (avg. 0.00282559s - 17 result(s)) Other::runChecks: 0.042787s (avg. 0.00251688s - 17 result(s)) Overall time: 21.7687s old-timing-info: Tokenizer::simplifyTokens1: 11.442s (avg. 0.673061s - 17 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 11.2342s (avg. 0.660838s - 17 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.060056s (avg. 0.00353271s - 17 result(s)) Tokenizer::createTokens: 0.047427s (avg. 0.00278982s - 17 result(s)) Other::runChecks: 0.043s (avg. 0.00252941s - 17 result(s)) Overall time: 23.0059s head results: tolua-5.2.0/src/bin/._tolua.c:1:38: error: The code contains unhandled character(s) (character code=175). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.0/src/lib/._tolua_event.c:1:38: error: The code contains unhandled character(s) (character code=175). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.0/src/lib/._tolua_map.c:1:38: error: The code contains unhandled character(s) (character code=175). Neither unicode nor extended ascii is supported. [syntaxError] tolua-5.2.0/src/lib/tolua_map.c:175:12: style: Condition 'v' is always true [knownConditionTrueFalse] tolua-5.2.0/src/tests/tarray.c:20:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/src/tests/tclass.cpp:20:8: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/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.0/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.0/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.0/src/tests/tclass.h:10:17: note: Parent variable 'Tst_A::last' tolua-5.2.0/src/tests/tclass.h:36:17: note: Derived variable 'Tst_B::last' tolua-5.2.0/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.0/src/tests/tclass.h:36:17: note: Parent variable 'Tst_B::last' tolua-5.2.0/src/tests/tclass.h:46:17: note: Derived variable 'Tst_C::last' tolua-5.2.0/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.0/src/tests/tclass.h:10:17: note: Parent variable 'Tst_A::last' tolua-5.2.0/src/tests/tclass.h:46:17: note: Derived variable 'Tst_C::last' tolua-5.2.0/src/tests/tclass.h:47:3: style: Class 'Tst_C' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tolua-5.2.0/src/tests/tconstant.cpp:12:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/src/tests/tenum.c:16:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/src/tests/tfunction.cpp:12:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/src/tests/tfunction.h:72:8: style:inconclusive: Technically the member function 'Point::getvalue' can be const. [functionConst] tolua-5.2.0/src/tests/tfunction.h:23:2: style: Class 'Point' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tolua-5.2.0/src/tests/tfunction.h:43:22: style: Parameter 'p' can be declared as reference to const [constParameter] tolua-5.2.0/src/tests/tfunction.h:35:18: style: Parameter 'v' can be declared as const array [constParameter] tolua-5.2.0/src/tests/tfunction.h:39:26: style: Parameter 'p' can be declared as pointer to const [constParameter] tolua-5.2.0/src/tests/tfunction.h:155:36: style: Parameter 'v' can be declared as const array [constParameter] tolua-5.2.0/src/tests/tinheritance.cpp:9:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/src/tests/tmodule.c:13:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/src/tests/tnamespace.cpp:14:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/src/tests/tvararg.cpp:22:8: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/src/tests/tvararg.h:15:10: style:inconclusive: Technically the member function 'A::get' can be const. [functionConst] tolua-5.2.0/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.0/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.0/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.0/src/tests/tvariable.c:29:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] tolua-5.2.0/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.0/src/tests/tvararg.h:10:1: note: The one definition rule is violated, different classes/structs have the same name 'A' tolua-5.2.0/src/tests/tconstant.h:17:1: note: The one definition rule is violated, different classes/structs have the same name 'A' diff: head tolua-5.2.0/src/tests/tfunction.h:155:36: style: Parameter 'v' can be declared as const array [constParameter] 2.8 tolua-5.2.0/src/tests/tfunction.h:155:36: style: Parameter 'v' can be declared with const [constParameter] head tolua-5.2.0/src/tests/tfunction.h:23:2: style: Class 'Point' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] head tolua-5.2.0/src/tests/tfunction.h:35:18: style: Parameter 'v' can be declared as const array [constParameter] 2.8 tolua-5.2.0/src/tests/tfunction.h:35:18: style: Parameter 'v' can be declared with const [constParameter] head tolua-5.2.0/src/tests/tfunction.h:39:26: style: Parameter 'p' can be declared as pointer to const [constParameter] 2.8 tolua-5.2.0/src/tests/tfunction.h:39:26: style: Parameter 'p' can be declared with const [constParameter] head tolua-5.2.0/src/tests/tfunction.h:43:22: style: Parameter 'p' can be declared as reference to const [constParameter] 2.8 tolua-5.2.0/src/tests/tfunction.h:43:22: style: Parameter 'p' can be declared with const [constParameter] DONE