2025-08-31 19:32 ftp://ftp.de.debian.org/debian/pool/main/k/kjs/kjs_5.103.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --library=pcre --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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 122 486 elapsed-time: 2.3 10.1 head-timing-info: old-timing-info: head results: kjs-5.103.0/autotests/ecmatest.cpp:33:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UChar [valueFlowBailoutIncompleteVar] kjs-5.103.0/autotests/ecmatest.cpp:159:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] kjs-5.103.0/autotests/ecmatest.cpp:190:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] kjs-5.103.0/autotests/ecmatest.cpp:244:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable filename [valueFlowBailoutIncompleteVar] kjs-5.103.0/autotests/ecmatest.cpp:373:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Subdirectories [valueFlowBailoutIncompleteVar] kjs-5.103.0/autotests/ecmatest.h:17:1: style: The class 'ECMAscriptTest' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] kjs-5.103.0/autotests/ecmatest.cpp:391:22: performance:inconclusive: Either there is a missing 'override', or the member function 'ECMAscriptTest::cleanup' can be static. [functionStatic] kjs-5.103.0/autotests/ecmatest.h:24:10: note: Either there is a missing 'override', or the member function 'ECMAscriptTest::cleanup' can be static. kjs-5.103.0/autotests/ecmatest.cpp:391:22: note: Either there is a missing 'override', or the member function 'ECMAscriptTest::cleanup' can be static. kjs-5.103.0/autotests/ecmatest.cpp:40:20: style: C-style pointer casting [cstyleCast] kjs-5.103.0/autotests/ecmatest.cpp:82:20: style: Variable 'protoObj' can be declared as pointer to const [constVariablePointer] kjs-5.103.0/autotests/kjsapitest.cpp:195:8: style: Variable 'o' can be declared as pointer to const [constVariablePointer] kjs-5.103.0/src/kjs/ustring.h:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/ustring.h:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/JSImmediate.h:36:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/JSImmediate.h:36:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/JSLock.h:78:0: error: failed to evaluate #if condition, undefined function-like macro invocation: USE( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/JSLock.h:78:2: error: failed to evaluate #if condition, undefined function-like macro invocation: USE( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/api/kjsobject.h:164:5: style: Class 'KJSObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsobject.h:207:5: style: Class 'KJSBoolean' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsobject.h:221:5: style: Class 'KJSNumber' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsobject.h:235:5: style: Class 'KJSString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsobject.h:243:5: style: Class 'KJSString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsobject.h:257:5: style: Class 'KJSArray' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsobject.h:290:5: style: Class 'KJSGlobalObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsarguments.h:54:5: style: Class 'KJSArguments' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjscontext.cpp:52:28: style:inconclusive: Technically the member function 'KJSContext::interpreter' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjscontext.h:61:20: note: Technically the member function 'KJSContext::interpreter' can be const. kjs-5.103.0/src/kjs/api/kjscontext.cpp:52:28: note: Technically the member function 'KJSContext::interpreter' can be const. kjs-5.103.0/src/kjs/api/kjscontext.h:63:5: style: Class 'KJSContext' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:95:5: style: Class 'KJSInterpreter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:184:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Throw [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:165:27: style:inconclusive: Technically the member function 'KJSInterpreter::globalObject' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:123:15: note: Technically the member function 'KJSInterpreter::globalObject' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:165:27: note: Technically the member function 'KJSInterpreter::globalObject' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:172:27: style:inconclusive: Technically the member function 'KJSInterpreter::evaluate' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:130:15: note: Technically the member function 'KJSInterpreter::evaluate' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:172:27: note: Technically the member function 'KJSInterpreter::evaluate' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:214:22: style:inconclusive: Technically the member function 'KJSInterpreter::setTimeoutTime' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:149:10: note: Technically the member function 'KJSInterpreter::setTimeoutTime' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:214:22: note: Technically the member function 'KJSInterpreter::setTimeoutTime' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:220:22: style:inconclusive: Technically the member function 'KJSInterpreter::startTimeoutCheck' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:158:10: note: Technically the member function 'KJSInterpreter::startTimeoutCheck' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:220:22: note: Technically the member function 'KJSInterpreter::startTimeoutCheck' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:226:22: style:inconclusive: Technically the member function 'KJSInterpreter::stopTimeoutCheck' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:165:10: note: Technically the member function 'KJSInterpreter::stopTimeoutCheck' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:226:22: note: Technically the member function 'KJSInterpreter::stopTimeoutCheck' can be const. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:61:5: warning: Value of pointer 'hnd', which points to allocated memory, is copied in copy constructor instead of allocating new memory. [copyCtorPointerCopying] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:185:5: style: Class 'KJSInterpreter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:232:51: style:inconclusive: Function 'normalizeCode' argument 1 names different: declaration 'codeIn' definition 'code'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:182:46: note: Function 'normalizeCode' argument 1 names different: declaration 'codeIn' definition 'code'. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:232:51: note: Function 'normalizeCode' argument 1 names different: declaration 'codeIn' definition 'code'. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:232:66: style:inconclusive: Function 'normalizeCode' argument 2 names different: declaration 'codeOut' definition 'normalized'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/api/kjsinterpreter.h:182:63: note: Function 'normalizeCode' argument 2 names different: declaration 'codeOut' definition 'normalized'. kjs-5.103.0/src/kjs/api/kjsinterpreter.cpp:232:66: note: Function 'normalizeCode' argument 2 names different: declaration 'codeOut' definition 'normalized'. kjs-5.103.0/src/kjs/api/kjsobject.cpp:101:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DontDelete [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/api/kjsobject.cpp:159:17: style:inconclusive: Technically the member function 'KJSObject::toBoolean' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsobject.h:110:10: note: Technically the member function 'KJSObject::toBoolean' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:159:17: note: Technically the member function 'KJSObject::toBoolean' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:166:19: style:inconclusive: Technically the member function 'KJSObject::toNumber' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsobject.h:115:12: note: Technically the member function 'KJSObject::toNumber' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:166:19: note: Technically the member function 'KJSObject::toNumber' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:173:16: style:inconclusive: Technically the member function 'KJSObject::toInt32' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsobject.h:121:9: note: Technically the member function 'KJSObject::toInt32' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:173:16: note: Technically the member function 'KJSObject::toInt32' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:180:20: style:inconclusive: Technically the member function 'KJSObject::toString' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsobject.h:126:13: note: Technically the member function 'KJSObject::toString' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:180:20: note: Technically the member function 'KJSObject::toString' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:206:17: style:inconclusive: Technically the member function 'KJSObject::setProperty' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsobject.h:136:10: note: Technically the member function 'KJSObject::setProperty' can be const. kjs-5.103.0/src/kjs/api/kjsobject.cpp:206:17: note: Technically the member function 'KJSObject::setProperty' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:121:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TypeError [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/api/kjsprototype.cpp:151:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GeneralError [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/api/kjsprototype.cpp:260:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DontEnum [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/api/kjsprototype.cpp:268:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DontEnum [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/api/kjsprototype.cpp:276:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DontEnum [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/api/kjsprototype.cpp:255:20: style:inconclusive: Technically the member function 'KJSPrototype::defineConstant' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsprototype.h:53:10: note: Technically the member function 'KJSPrototype::defineConstant' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:255:20: note: Technically the member function 'KJSPrototype::defineConstant' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:263:20: style:inconclusive: Technically the member function 'KJSPrototype::defineConstant' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsprototype.h:59:10: note: Technically the member function 'KJSPrototype::defineConstant' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:263:20: note: Technically the member function 'KJSPrototype::defineConstant' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:271:20: style:inconclusive: Technically the member function 'KJSPrototype::defineConstant' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsprototype.h:65:10: note: Technically the member function 'KJSPrototype::defineConstant' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:271:20: note: Technically the member function 'KJSPrototype::defineConstant' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:302:20: style:inconclusive: Technically the member function 'KJSPrototype::defineProperty' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsprototype.h:82:10: note: Technically the member function 'KJSPrototype::defineProperty' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:302:20: note: Technically the member function 'KJSPrototype::defineProperty' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:315:20: style:inconclusive: Technically the member function 'KJSPrototype::defineFunction' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsprototype.h:99:10: note: Technically the member function 'KJSPrototype::defineFunction' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:315:20: note: Technically the member function 'KJSPrototype::defineFunction' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:279:25: style:inconclusive: Technically the member function 'KJSPrototype::constructObject' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsprototype.h:118:15: note: Technically the member function 'KJSPrototype::constructObject' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:279:25: note: Technically the member function 'KJSPrototype::constructObject' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:294:31: style:inconclusive: Technically the member function 'KJSPrototype::constructGlobalObject' can be const. [functionConst] kjs-5.103.0/src/kjs/api/kjsprototype.h:124:21: note: Technically the member function 'KJSPrototype::constructGlobalObject' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:294:31: note: Technically the member function 'KJSPrototype::constructGlobalObject' can be const. kjs-5.103.0/src/kjs/api/kjsprototype.cpp:56:5: style: Class 'CustomObjectInfo' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:95:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:127:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:142:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:33:12: style:inconclusive: Technically the member function 'Enum::printDeclaration' can be const. [functionConst] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.h:46:10: note: Technically the member function 'Enum::printDeclaration' can be const. kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:33:12: note: Technically the member function 'Enum::printDeclaration' can be const. kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:140:19: performance:inconclusive: Technically the member function 'CodePrinter::printCode' can be static (but you may consider moving to unnamed namespace). [functionStatic] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.h:80:10: note: Technically the member function 'CodePrinter::printCode' can be static (but you may consider moving to unnamed namespace). kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:140:19: note: Technically the member function 'CodePrinter::printCode' can be static (but you may consider moving to unnamed namespace). kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:93:19: performance:inconclusive: Technically the member function 'CodePrinter::issueError' can be static (but you may consider moving to unnamed namespace). [functionStatic] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.h:99:10: note: Technically the member function 'CodePrinter::issueError' can be static (but you may consider moving to unnamed namespace). kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:93:19: note: Technically the member function 'CodePrinter::issueError' can be static (but you may consider moving to unnamed namespace). kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:33:38: style:inconclusive: Function 'printDeclaration' argument 1 names different: declaration 'cppStream' definition 'hStream'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.h:46:36: note: Function 'printDeclaration' argument 1 names different: declaration 'cppStream' definition 'hStream'. kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:33:38: note: Function 'printDeclaration' argument 1 names different: declaration 'cppStream' definition 'hStream'. kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:44:37: style:inconclusive: Function 'printDefinition' argument 1 names different: declaration 'hStream' definition 'cppStream'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.h:47:35: note: Function 'printDefinition' argument 1 names different: declaration 'hStream' definition 'cppStream'. kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:44:37: note: Function 'printDefinition' argument 1 names different: declaration 'hStream' definition 'cppStream'. kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:64:61: style:inconclusive: Function 'item' argument 2 names different: declaration 'pendingComment' definition 'newComment'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.h:59:58: note: Function 'item' argument 2 names different: declaration 'pendingComment' definition 'newComment'. kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:64:61: note: Function 'item' argument 2 names different: declaration 'pendingComment' definition 'newComment'. kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:179:22: style: Local variable 'c' shadows outer variable [shadowVariable] kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:174:19: note: Shadowed declaration kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.cpp:179:22: note: Shadow variable kjs-5.103.0/src/kjs/bytecode/generator/codeprinter.h:42:63: performance: Function parameter 'values' should be passed by const reference. [passedByValue] kjs-5.103.0/src/kjs/bytecode/generator/filetemplate.h:52:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/driver.cpp:30:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/types.h:94:5: warning: Member variable 'ConversionInfo::from' is not initialized in the constructor. [uninitMemberVar] kjs-5.103.0/src/kjs/bytecode/generator/types.h:94:5: warning: Member variable 'ConversionInfo::to' is not initialized in the constructor. [uninitMemberVar] kjs-5.103.0/src/kjs/bytecode/generator/types.h:94:5: warning: Member variable 'ConversionInfo::codeLine' is not initialized in the constructor. [uninitMemberVar] kjs-5.103.0/src/kjs/bytecode/generator/lexer.h:74:9: warning: Member variable 'Token::lineNum' is not initialized in the constructor. [uninitMemberVar] kjs-5.103.0/src/kjs/bytecode/generator/lexer.h:75:9: warning: Member variable 'Token::lineNum' is not initialized in the constructor. [uninitMemberVar] kjs-5.103.0/src/kjs/bytecode/generator/parser.h:50:5: warning: Member variable 'Parameter::type' is not initialized in the constructor. [uninitMemberVar] kjs-5.103.0/src/kjs/bytecode/generator/filetemplate.h:108:10: style:inconclusive: Technically the member function 'FileTemplate::ok' can be const. [functionConst] kjs-5.103.0/src/kjs/bytecode/generator/lexer.h:83:16: style:inconclusive: Technically the member function 'Lexer::Token::toString' can be const. [functionConst] kjs-5.103.0/src/kjs/bytecode/generator/lexer.h:134:5: style: Class 'Lexer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/bytecode/generator/lexer.h:75:9: style: Struct 'Token' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kjs-5.103.0/src/kjs/bytecode/generator/filetemplate.h:35:42: performance: Function parameter 'base' should be passed by const reference. [passedByValue] kjs-5.103.0/src/kjs/bytecode/generator/filetemplate.h:35:55: performance: Function parameter 'suffix' should be passed by const reference. [passedByValue] kjs-5.103.0/src/kjs/bytecode/generator/filetemplate.h:44:44: performance: Function parameter 'outFileName' should be passed by const reference. [passedByValue] kjs-5.103.0/src/kjs/bytecode/generator/lexer.h:124:45: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] kjs-5.103.0/src/kjs/bytecode/generator/lexer.cpp:36:8: warning: Member variable 'Lexer::nextChar' is not initialized in the constructor. [uninitMemberVar] kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:132:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:356:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:130:14: style:inconclusive: Technically the member function 'Parser::issueError' can be const. [functionConst] kjs-5.103.0/src/kjs/bytecode/generator/parser.h:104:10: note: Technically the member function 'Parser::issueError' can be const. kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:130:14: note: Technically the member function 'Parser::issueError' can be const. kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:35:54: warning: Class 'Parser' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:35:54: warning: Class 'Parser' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:94:14: style: The scope of the variable 'flagsVal' can be reduced. [variableScope] kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:53:37: style:inconclusive: Function 'matchCode' argument 1 names different: declaration 'stringOut' definition 'strOut'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/bytecode/generator/parser.h:87:35: note: Function 'matchCode' argument 1 names different: declaration 'stringOut' definition 'strOut'. kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:53:37: note: Function 'matchCode' argument 1 names different: declaration 'stringOut' definition 'strOut'. kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:239:12: style: Unused variable: registerIdent [unusedVariable] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:37:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:98:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:224:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:298:18: style:inconclusive: Boolean expression 'needsPad' is used in bitwise operation. [bitwiseOnBoolean] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:298:35: style:inconclusive: Boolean expression 'paramIsIm[c]' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:315:26: style:inconclusive: Boolean expression 'paramIsIm[c]' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:43:15: warning: Member variable 'TableBuilder::operationFlags' is not initialized in the constructor. [uninitMemberVar] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:162:51: style:inconclusive: Function 'handleConversion' argument 1 names different: declaration 'runtimeRoutine' definition 'code'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.h:69:41: note: Function 'handleConversion' argument 1 names different: declaration 'runtimeRoutine' definition 'code'. kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:162:51: note: Function 'handleConversion' argument 1 names different: declaration 'runtimeRoutine' definition 'code'. kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:98:20: style: Local variable 'variants' shadows outer variable [shadowVariable] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.h:101:30: note: Shadowed declaration kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:98:20: note: Shadow variable kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:33:33: performance: Function parameter 'where' should be passed by const reference. [passedByValue] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:33:60: performance: Function parameter 'to' should be passed by const reference. [passedByValue] kjs-5.103.0/src/kjs/bytecode/generator/tablebuilder.cpp:38:15: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use replace() instead. [uselessCallsSubstr] kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:145:44: style:inconclusive: Function 'printConversionInfo' argument 1 names different: declaration 'array' definition 'outArr'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/bytecode/generator/types.h:122:37: note: Function 'printConversionInfo' argument 1 names different: declaration 'array' definition 'outArr'. kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:145:44: note: Function 'printConversionInfo' argument 1 names different: declaration 'array' definition 'outArr'. kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:216:48: style:inconclusive: Function 'handleConversion' argument 1 names different: declaration 'runtimeRoutine' definition 'code'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/bytecode/generator/types.h:110:41: note: Function 'handleConversion' argument 1 names different: declaration 'runtimeRoutine' definition 'code'. kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:216:48: note: Function 'handleConversion' argument 1 names different: declaration 'runtimeRoutine' definition 'code'. kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:258:16: style: Local variable 'code' shadows outer argument [shadowArgument] kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:216:48: note: Shadowed declaration kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:258:16: note: Shadow variable kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:274:12: error: Uninitialized variable: t.flags [uninitvar] kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:274:12: error: Uninitialized struct member: t.flags [uninitStructMember] kjs-5.103.0/src/kjs/bytecode/generator/types.cpp:273:10: style: Variable 't' is not assigned a value. [unassignedVariable] kjs-5.103.0/src/kjs/dtoa.cpp:176:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/dtoa.cpp:176:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/fpconst.cpp:39:0: error: failed to evaluate #elif condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/fpconst.cpp:39:2: error: failed to evaluate #elif condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] grammar.y:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] grammar.y:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/operations.h:31:0: error: failed to evaluate #if condition, undefined function-like macro invocation: HAVE( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/operations.h:31:2: error: failed to evaluate #if condition, undefined function-like macro invocation: HAVE( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/regexp.h:39:0: error: failed to evaluate #if condition, undefined function-like macro invocation: HAVE( ... ) [preprocessorErrorDirective] kjs-5.103.0/src/kjs/regexp.h:39:2: error: failed to evaluate #if condition, undefined function-like macro invocation: HAVE( ... ) [preprocessorErrorDirective] kjs-5.103.0/tests/testkjs.cpp:51:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] kjs-5.103.0/tests/testkjs.cpp:51:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] diff: 2.18.0 grammar.cpp:2115:9: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 grammar.cpp:2298:21: style: C-style pointer casting [cstyleCast] 2.18.0 grammar.cpp:2425:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable first_line [valueFlowBailoutIncompleteVar] 2.18.0 grammar.y:1007:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1015:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1023:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1031:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1039:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1047:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1055:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1063:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1071:76: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1079:76: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1087:76: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1095:76: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1103:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1111:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1119:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1127:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1135:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1143:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1151:91: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1159:94: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1167:93: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1175:96: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1183:97: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1191:89: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1199:91: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1207:94: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1215:93: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1223:96: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1231:97: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1239:91: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1247:94: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1255:93: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1263:96: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1271:97: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1279:89: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1287:86: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1295:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1303:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1311:88: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1319:86: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1327:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1335:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1343:88: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1351:86: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1359:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1367:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1375:88: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1383:90: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1391:90: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1399:90: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1407:90: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1415:90: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1423:90: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1431:89: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1439:89: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1447:89: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1455:93: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1463:93: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1471:93: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1479:92: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1487:92: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1495:92: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1503:109: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1511:109: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1519:109: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1527:102: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1535:102: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1543:102: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1655:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1663:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1671:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1680:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1689:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1698:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1716:60: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1724:86: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1732:60: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1740:86: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1748:56: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1756:82: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1764:56: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1772:82: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1781:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1799:60: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1807:86: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1815:56: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1823:82: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1831:58: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1839:58: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1856:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1874:75: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1883:100: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1911:78: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1920:126: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1929:131: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1942:81: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1951:114: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1960:130: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:1986:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2005:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2024:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2043:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2062:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2081:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2099:77: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2108:79: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2141:59: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2149:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2165:82: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2181:66: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2189:80: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2198:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2216:130: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2225:103: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2234:128: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2244:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2262:60: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2270:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2279:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2288:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2297:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2306:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2315:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2324:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2340:83: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2356:109: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2372:105: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2388:105: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2404:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2420:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2428:59: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2436:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2445:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2454:13: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2470:66: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2478:62: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2486:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2494:39: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:2502:39: style: Same expression on both sides of '-'. [duplicateExpression] head grammar.y:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] head grammar.y:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] 2.18.0 grammar.y:443:40: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:451:40: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:483:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:491:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:523:62: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:531:73: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:539:86: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:547:83: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:563:138: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:581:155: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:591:61: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:599:61: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:639:58: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:679:79: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:687:103: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:719:39: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:735:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:743:80: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:759:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:767:80: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:775:55: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:783:55: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:791:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:799:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:815:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:823:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:831:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:847:85: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:871:61: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:879:87: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:887:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:895:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:903:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:911:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:951:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:959:52: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:967:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:975:57: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:983:54: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:991:58: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 grammar.y:999:58: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 kjs-5.103.0/src/kjs/ExecState.h:168:16: performance: Function 'abruptCompletion()' should return member 'm_completion' by const reference. [returnByReference] 2.18.0 kjs-5.103.0/src/kjs/ExecState.h:247:14: style:inconclusive: Either there is a missing 'override', or the member function 'KJS::ExecState::codeType' can be const. [functionConst] 2.18.0 kjs-5.103.0/src/kjs/ExecState.h:332:9: warning:inconclusive: Member variable 'ExceptionHandler::dest' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/ExecState.h:332:9: warning:inconclusive: Member variable 'ExceptionHandler::type' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/JSImmediate.cpp:73:15: style: Local variable 'tag' shadows outer function [shadowFunction] kjs-5.103.0/src/kjs/JSImmediate.h:153:35: note: Shadowed declaration kjs-5.103.0/src/kjs/JSImmediate.cpp:73:15: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/JSImmediate.h:223:18: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] 2.18.0 kjs-5.103.0/src/kjs/JSImmediate.h:239:18: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] 2.18.0 kjs-5.103.0/src/kjs/JSImmediate.h:309:69: style:inconclusive: Function 'getNumber' argument 2 names different: declaration 'valOut' definition 'numberOut'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/JSImmediate.h:127:54: note: Function 'getNumber' argument 2 names different: declaration 'valOut' definition 'numberOut'. kjs-5.103.0/src/kjs/JSImmediate.h:309:69: note: Function 'getNumber' argument 2 names different: declaration 'valOut' definition 'numberOut'. 2.18.0 kjs-5.103.0/src/kjs/JSImmediate.h:320:24: style:inconclusive: Boolean expression 'isNumber(v)' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] head kjs-5.103.0/src/kjs/JSImmediate.h:36:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] head kjs-5.103.0/src/kjs/JSImmediate.h:36:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/JSLock.cpp:68:9: style: Local variable 'lockCount' shadows outer function [shadowFunction] kjs-5.103.0/src/kjs/JSLock.h:59:16: note: Shadowed declaration kjs-5.103.0/src/kjs/JSLock.cpp:68:9: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/JSLock.cpp:77:9: style: Local variable 'lockCount' shadows outer function [shadowFunction] kjs-5.103.0/src/kjs/JSLock.h:59:16: note: Shadowed declaration kjs-5.103.0/src/kjs/JSLock.cpp:77:9: note: Shadow variable head kjs-5.103.0/src/kjs/JSLock.h:78:0: error: failed to evaluate #if condition, undefined function-like macro invocation: USE( ... ) [preprocessorErrorDirective] head kjs-5.103.0/src/kjs/JSLock.h:78:2: error: failed to evaluate #if condition, undefined function-like macro invocation: USE( ... ) [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/JSVariableObject.h:162:25: style:inconclusive: Technically the member function 'KJS::ScopeChain::mark' can be const. [functionConst] kjs-5.103.0/src/kjs/scope_chain.h:208:10: note: Technically the member function 'KJS::ScopeChain::mark' can be const. kjs-5.103.0/src/kjs/JSVariableObject.h:162:25: note: Technically the member function 'KJS::ScopeChain::mark' can be const. 2.18.0 kjs-5.103.0/src/kjs/JSVariableObject.h:189:5: style: Class 'JSGlobalObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/JSWrapperObject.h:39:5: style: Class 'JSWrapperObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/LocalStorage.h:41:5: warning:inconclusive: Member variable 'LocalStorageEntry::attributes' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/LocalStorage.h:41:5: warning:inconclusive: Member variable 'LocalStorageEntry::val' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/PropertyNameArray.cpp:28:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:1001:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_storage [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:109:63: style:inconclusive: Function 'ArrayInstance' argument 2 names different: declaration 'initialValues' definition 'list'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/array_instance.h:35:52: note: Function 'ArrayInstance' argument 2 names different: declaration 'initialValues' definition 'list'. kjs-5.103.0/src/kjs/array_instance.cpp:109:63: note: Function 'ArrayInstance' argument 2 names different: declaration 'initialValues' definition 'list'. 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:157:86: style:inconclusive: Function 'inlineGetOwnPropertySlot' argument 2 names different: declaration 'propertyName' definition 'i'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/array_instance.h:77:57: note: Function 'inlineGetOwnPropertySlot' argument 2 names different: declaration 'propertyName' definition 'i'. kjs-5.103.0/src/kjs/array_instance.cpp:157:86: note: Function 'inlineGetOwnPropertySlot' argument 2 names different: declaration 'propertyName' definition 'i'. 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:225:66: style:inconclusive: Function 'getOwnPropertySlot' argument 2 names different: declaration 'propertyName' definition 'i'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/array_instance.h:39:51: note: Function 'getOwnPropertySlot' argument 2 names different: declaration 'propertyName' definition 'i'. kjs-5.103.0/src/kjs/array_instance.cpp:225:66: note: Function 'getOwnPropertySlot' argument 2 names different: declaration 'propertyName' definition 'i'. 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:257:51: style:inconclusive: Function 'put' argument 2 names different: declaration 'propertyName' definition 'i'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/array_instance.h:42:36: note: Function 'put' argument 2 names different: declaration 'propertyName' definition 'i'. kjs-5.103.0/src/kjs/array_instance.cpp:257:51: note: Function 'put' argument 2 names different: declaration 'propertyName' definition 'i'. 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:305:62: style:inconclusive: Function 'deleteProperty' argument 2 names different: declaration 'propertyName' definition 'i'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/array_instance.h:44:47: note: Function 'deleteProperty' argument 2 names different: declaration 'propertyName' definition 'i'. kjs-5.103.0/src/kjs/array_instance.cpp:305:62: note: Function 'deleteProperty' argument 2 names different: declaration 'propertyName' definition 'i'. 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:510:22: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:537:40: style:inconclusive: Function 'putDirect' argument 1 names different: declaration 'index' definition 'i'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/array_instance.h:54:37: note: Function 'putDirect' argument 1 names different: declaration 'index' definition 'i'. kjs-5.103.0/src/kjs/array_instance.cpp:537:40: note: Function 'putDirect' argument 1 names different: declaration 'index' definition 'i'. 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:537:63: style:inconclusive: Function 'putDirect' argument 3 names different: declaration 'attr' definition 'attributes'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/array_instance.h:54:64: note: Function 'putDirect' argument 3 names different: declaration 'attr' definition 'attributes'. kjs-5.103.0/src/kjs/array_instance.cpp:537:63: note: Function 'putDirect' argument 3 names different: declaration 'attr' definition 'attributes'. 2.18.0 kjs-5.103.0/src/kjs/array_instance.cpp:955:22: style: Variable 'v' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:35:54: warning: Class 'Parser' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] head kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:35:54: warning: Class 'Parser' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] 2.18.0 kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:35:54: warning: Class 'Parser' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] head kjs-5.103.0/src/kjs/bytecode/generator/parser.cpp:35:54: warning: Class 'Parser' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] 2.18.0 kjs-5.103.0/src/kjs/collector.cpp:542:0: error: #error Need a way to get the stack base on this platform [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/collector.cpp:542:2: error: #error Need a way to get the stack base on this platform [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/collector.h:201:41: style: Parameter 'cell' can be declared as pointer to const [constParameterPointer] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:1379:9: style: The scope of the variable 'c' can be reduced. [variableScope] head kjs-5.103.0/src/kjs/dtoa.cpp:176:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] head kjs-5.103.0/src/kjs/dtoa.cpp:176:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:1896:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2127:23: style: Variable 'dsign' is assigned a value that is never used. [unreadVariable] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2191:15: style: Variable 'dsign' is assigned a value that is never used. [unreadVariable] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2260:39: style: Checking if unsigned expression 'z=(unsigned int)aadj' is less than zero. [unsignedLessThanZero] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2382:11: style: C-style pointer casting [cstyleCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2392:31: style: Variable 'sxe' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2521:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2527:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2554:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2554:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2555:31: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:2600:9: style:inconclusive: Function 'kjs_dtoa' argument 1 names different: declaration 'd' definition 'dd'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/dtoa.h:26:34: note: Function 'kjs_dtoa' argument 1 names different: declaration 'd' definition 'dd'. kjs-5.103.0/src/kjs/dtoa.cpp:2600:9: note: Function 'kjs_dtoa' argument 1 names different: declaration 'd' definition 'dd'. 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:3139:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:479:9: style: The scope of the variable 'x' can be reduced. [variableScope] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:482:18: style: The scope of the variable 'len' can be reduced. [variableScope] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:496:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:499:18: style: C-style pointer casting [cstyleCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:502:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] kjs-5.103.0/src/kjs/dtoa.cpp:499:34: note: Assuming allocation function fails kjs-5.103.0/src/kjs/dtoa.cpp:499:18: note: Assignment 'rv=(struct Bigint*)malloc(len*sizeof(double))', assigned value is 0 kjs-5.103.0/src/kjs/dtoa.cpp:502:9: note: Null pointer dereference 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:503:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] kjs-5.103.0/src/kjs/dtoa.cpp:499:34: note: Assuming allocation function fails kjs-5.103.0/src/kjs/dtoa.cpp:499:18: note: Assignment 'rv=(struct Bigint*)malloc(len*sizeof(double))', assigned value is 0 kjs-5.103.0/src/kjs/dtoa.cpp:503:9: note: Null pointer dereference 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:506:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] kjs-5.103.0/src/kjs/dtoa.cpp:499:34: note: Assuming allocation function fails kjs-5.103.0/src/kjs/dtoa.cpp:499:18: note: Assignment 'rv=(struct Bigint*)malloc(len*sizeof(double))', assigned value is 0 kjs-5.103.0/src/kjs/dtoa.cpp:506:16: note: Null pointer dereference 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:506:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] kjs-5.103.0/src/kjs/dtoa.cpp:499:34: note: Assuming allocation function fails kjs-5.103.0/src/kjs/dtoa.cpp:499:18: note: Assignment 'rv=(struct Bigint*)malloc(len*sizeof(double))', assigned value is 0 kjs-5.103.0/src/kjs/dtoa.cpp:506:5: note: Null pointer dereference 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:532:19: style: The scope of the variable 'y' can be reduced. [variableScope] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:567:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:682:16: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:682:16: style:inconclusive: Boolean expression '!x' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:708:21: style: Variable 'xae' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:708:32: style: Variable 'xbe' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:709:11: style: The scope of the variable 'y' can be reduced. [variableScope] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:814:16: style: Variable 'p05' can be declared as const array [constVariable] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:870:21: style: Variable 'xe' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:870:25: style: The scope of the variable 'z' can be reduced. [variableScope] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:926:12: style: Variable 'xa' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:926:23: style: Variable 'xb' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:963:17: style: Variable 'xae' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/dtoa.cpp:963:28: style: Variable 'xbe' can be declared as pointer to const [constVariablePointer] head kjs-5.103.0/src/kjs/fpconst.cpp:39:0: error: failed to evaluate #elif condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] head kjs-5.103.0/src/kjs/fpconst.cpp:39:2: error: failed to evaluate #elif condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/fpconst.cpp:60:23: style: struct member 'Anonymous1::NaN_Bytes' is never used. [unusedStructMember] 2.18.0 kjs-5.103.0/src/kjs/fpconst.cpp:61:23: style: struct member 'Anonymous1::Inf_Bytes' is never used. [unusedStructMember] 2.18.0 kjs-5.103.0/src/kjs/fpconst.cpp:62:7: style: union member 'Anonymous0::bytes' is never used. [unusedStructMember] 2.18.0 kjs-5.103.0/src/kjs/function.h:130:5: style: Class 'FunctionPrototype' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/function.h:181:1: style: The class 'ActivationImp' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] 2.18.0 kjs-5.103.0/src/kjs/function.h:76:5: style: Class 'Thrower' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/identifier.cpp:73:37: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] 2.18.0 kjs-5.103.0/src/kjs/identifier.h:50:5: style: Class 'Identifier' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/internal.h:104:5: style: Class 'NumberImp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/internal.h:143:49: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] 2.18.0 kjs-5.103.0/src/kjs/internal.h:52:5: style: Class 'StringImp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/internal.h:58:5: style: Class 'StringImp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/interpreter.h:77:5: style: Class 'Interpreter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/json_object.cpp:149:18: style: Local variable 'args' shadows outer argument [shadowArgument] kjs-5.103.0/src/kjs/json_object.cpp:123:91: note: Shadowed declaration kjs-5.103.0/src/kjs/json_object.cpp:149:18: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/jsonlexer.cpp:105:13: warning: Member variable 'JSONParser::m_state' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/jsonlexer.cpp:364:12: warning: Member variable 'JSONLexer::m_numberToken' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/jsonlexer.cpp:364:12: warning: Member variable 'JSONLexer::m_type' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/jsonlexer.cpp:370:22: style:inconclusive: Technically the member function 'KJS::JSONLexer::current' can be const. [functionConst] kjs-5.103.0/src/kjs/jsonlexer.h:69:32: note: Technically the member function 'KJS::JSONLexer::current' can be const. kjs-5.103.0/src/kjs/jsonlexer.cpp:370:22: note: Technically the member function 'KJS::JSONLexer::current' can be const. 2.18.0 kjs-5.103.0/src/kjs/jsonlexer.cpp:537:15: style: Local variable 'next' shadows outer function [shadowFunction] kjs-5.103.0/src/kjs/jsonlexer.h:68:32: note: Shadowed declaration kjs-5.103.0/src/kjs/jsonlexer.cpp:537:15: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/jsonlexer.cpp:537:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uc [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/jsonlexer.cpp:559:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uc [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/jsonlexer.cpp:586:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uc [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/kjs.cpp:104:1: error: The one definition rule is violated, different classes/structs have the same name 'TestFunctionImp' [ctuOneDefinitionRuleViolation] kjs-5.103.0/tests/testkjs.cpp:129:1: note: The one definition rule is violated, different classes/structs have the same name 'TestFunctionImp' kjs-5.103.0/src/kjs/kjs.cpp:104:1: note: The one definition rule is violated, different classes/structs have the same name 'TestFunctionImp' 2.18.0 kjs-5.103.0/src/kjs/kjs.cpp:158:19: style: Variable 'resObj' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/kjs.cpp:163:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/kjs.cpp:193:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/kjs.cpp:198:21: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] kjs-5.103.0/src/kjs/kjs.cpp:197:46: note: Assuming allocation function fails kjs-5.103.0/src/kjs/kjs.cpp:197:39: note: Assignment 'buffer=static_cast(std::malloc(bsize))', assigned value is 0 kjs-5.103.0/src/kjs/kjs.cpp:198:21: note: Null pointer dereference 2.18.0 kjs-5.103.0/src/kjs/kjs.cpp:250:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KJS_VERSION_STRING [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/kjs.cpp:56:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/kjs.cpp:66:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/list.cpp:215:36: style:inconclusive: Function 'appendSlowCase' argument 1 names different: declaration 'val' definition 'v'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/list.h:163:34: note: Function 'appendSlowCase' argument 1 names different: declaration 'val' definition 'v'. kjs-5.103.0/src/kjs/list.cpp:215:36: note: Function 'appendSlowCase' argument 1 names different: declaration 'val' definition 'v'. 2.18.0 kjs-5.103.0/src/kjs/list.cpp:265:9: style: Local variable 'size' shadows outer function [shadowFunction] kjs-5.103.0/src/kjs/list.h:112:9: note: Shadowed declaration kjs-5.103.0/src/kjs/list.cpp:265:9: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/list.cpp:283:10: style: Local variable 'copy' shadows outer function [shadowFunction] kjs-5.103.0/src/kjs/list.h:94:10: note: Shadowed declaration kjs-5.103.0/src/kjs/list.cpp:283:10: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/list.cpp:288:9: style: Local variable 'size' shadows outer function [shadowFunction] kjs-5.103.0/src/kjs/list.h:112:9: note: Shadowed declaration kjs-5.103.0/src/kjs/list.cpp:288:9: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/list.h:188:9: style: Local variable 'size' shadows outer function [shadowFunction] kjs-5.103.0/src/kjs/list.h:112:9: note: Shadowed declaration kjs-5.103.0/src/kjs/list.h:188:9: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/list.h:209:5: style: Class 'ListIterator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/lookup.cpp:45:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/object.h:504:10: style:inconclusive: Either there is a missing 'override', or the member function 'KJS::JSObject::isExtensible' can be const. [functionConst] 2.18.0 kjs-5.103.0/src/kjs/object.h:624:49: style:inconclusive: Function 'inherits' argument 1 names different: declaration 'cinfo' definition 'info'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/object.h:195:36: note: Function 'inherits' argument 1 names different: declaration 'cinfo' definition 'info'. kjs-5.103.0/src/kjs/object.h:624:49: note: Function 'inherits' argument 1 names different: declaration 'cinfo' definition 'info'. 2.18.0 kjs-5.103.0/src/kjs/object.h:645:21: warning: The class 'JSCell' defines member function with name 'isObject' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/object.h:651:22: note: Parent function 'JSValue::isObject' kjs-5.103.0/src/kjs/object.h:645:21: note: Derived function 'JSCell::isObject' 2.18.0 kjs-5.103.0/src/kjs/operations.h:151:0: error: #error "Your platform does not provide a Infinity checking function." [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/operations.h:151:3: error: #error "Your platform does not provide a Infinity checking function." [preprocessorErrorDirective] head kjs-5.103.0/src/kjs/operations.h:31:0: error: failed to evaluate #if condition, undefined function-like macro invocation: HAVE( ... ) [preprocessorErrorDirective] head kjs-5.103.0/src/kjs/operations.h:31:2: error: failed to evaluate #if condition, undefined function-like macro invocation: HAVE( ... ) [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/package.h:69:14: style: The function 'loadSubPackage' overrides a function in a base class but just delegates back to the base class. [uselessOverride] kjs-5.103.0/src/kjs/package.h:54:22: note: Virtual function in base class kjs-5.103.0/src/kjs/package.h:69:14: note: Function in derived class 2.18.0 kjs-5.103.0/src/kjs/package.h:76:5: style: Class 'PackageObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:129:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:181:19: style: Variable 'rep' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:185:23: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:203:26: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:223:19: style: Variable 'rep' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:227:23: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:244:26: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:263:19: style: Variable 'rep' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:267:23: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:284:26: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:303:19: style: Variable 'rep' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:306:23: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:322:26: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:383:23: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:415:26: style: Variable 'key' can be declared as pointer to const [constVariablePointer] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:515:17: style: C-style pointer casting [cstyleCast] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:544:17: style: C-style pointer casting [cstyleCast] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:764:13: style: Variable 'prop' is assigned a value that is never used. [unreadVariable] 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:775:17: style: Local variable 'p' shadows outer argument [shadowArgument] kjs-5.103.0/src/kjs/property_map.cpp:728:41: note: Shadowed declaration kjs-5.103.0/src/kjs/property_map.cpp:775:17: note: Shadow variable 2.18.0 kjs-5.103.0/src/kjs/property_map.cpp:802:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/property_map.h:172:21: warning: Member variable 'PropertyMap::m_singleEntryAttributes' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/property_map.h:172:21: warning: Member variable 'PropertyMap::m_u' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/property_map.h:71:5: warning: Member variable 'PropertyMapHashTableEntry::attributes' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/property_map.h:71:5: warning: Member variable 'PropertyMapHashTableEntry::index' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/property_map.h:71:5: warning: Member variable 'PropertyMapHashTableEntry::value' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/property_slot.h:36:1: style: The class 'PropertySlot' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] 2.18.0 kjs-5.103.0/src/kjs/protect.h:122:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_ptr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/protect.h:62:5: style: Class 'ProtectedPtr < JSObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/protect.h:62:5: style: Class 'ProtectedPtr < JSValue >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/protect.h:66:24: style: Class 'ProtectedPtr < JSObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/protect.h:66:24: style: Class 'ProtectedPtr < JSValue >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:270:31: style:inconclusive: Function 'RegExp' argument 1 names different: declaration 'pattern' definition 'p'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/regexp.h:87:36: note: Function 'RegExp' argument 1 names different: declaration 'pattern' definition 'p'. kjs-5.103.0/src/kjs/regexp.cpp:270:31: note: Function 'RegExp' argument 1 names different: declaration 'pattern' definition 'p'. 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:363:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:444:57: style:inconclusive: Function 'RegExpStringContext' argument 1 names different: declaration 'pattern' definition 's'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/regexp.h:52:49: note: Function 'RegExpStringContext' argument 1 names different: declaration 'pattern' definition 's'. kjs-5.103.0/src/kjs/regexp.cpp:444:57: note: Function 'RegExpStringContext' argument 1 names different: declaration 'pattern' definition 's'. 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:447:5: performance: Variable '_originalS' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:463:50: style:inconclusive: Function 'match' argument 1 names different: declaration 'c' definition 'ctx'. [funcArgNamesDifferent] kjs-5.103.0/src/kjs/regexp.h:99:46: note: Function 'match' argument 1 names different: declaration 'c' definition 'ctx'. kjs-5.103.0/src/kjs/regexp.cpp:463:50: note: Function 'match' argument 1 names different: declaration 'c' definition 'ctx'. 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:589:30: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] kjs-5.103.0/src/kjs/regexp.cpp:588:23: note: Assuming allocation function fails kjs-5.103.0/src/kjs/regexp.cpp:588:23: note: Assignment 'str=strdup(s.ascii())', assigned value is 0 kjs-5.103.0/src/kjs/regexp.cpp:589:30: note: Null pointer addition 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:596:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_so [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:611:35: warning: Either the condition 'j>maxMatch' is redundant or the array 'rmatch[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] kjs-5.103.0/src/kjs/regexp.cpp:608:15: note: Assuming that condition 'j>maxMatch' is not redundant kjs-5.103.0/src/kjs/regexp.cpp:611:35: note: Array index out of bounds 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:612:39: warning: Either the condition 'j>maxMatch' is redundant or the array 'rmatch[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] kjs-5.103.0/src/kjs/regexp.cpp:608:15: note: Assuming that condition 'j>maxMatch' is not redundant kjs-5.103.0/src/kjs/regexp.cpp:612:39: note: Array index out of bounds 2.18.0 kjs-5.103.0/src/kjs/regexp.cpp:90:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head kjs-5.103.0/src/kjs/regexp.h:39:0: error: failed to evaluate #if condition, undefined function-like macro invocation: HAVE( ... ) [preprocessorErrorDirective] head kjs-5.103.0/src/kjs/regexp.h:39:2: error: failed to evaluate #if condition, undefined function-like macro invocation: HAVE( ... ) [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/scope_chain.cpp:34:18: style:inconclusive: Technically the member function 'KJS::ScopeChain::print' can be const. [functionConst] kjs-5.103.0/src/kjs/scope_chain.h:211:10: note: Technically the member function 'KJS::ScopeChain::print' can be const. kjs-5.103.0/src/kjs/scope_chain.cpp:34:18: note: Technically the member function 'KJS::ScopeChain::print' can be const. 2.18.0 kjs-5.103.0/src/kjs/scope_chain.cpp:44:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/src/kjs/scope_chain.cpp:44:53: style: C-style pointer casting [cstyleCast] 2.18.0 kjs-5.103.0/src/kjs/scope_chain.h:142:5: style: Class 'ScopeChainIterator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/scope_chain.h:226:29: style:inconclusive: Technically the member function 'KJS::ScopeChainLink::ref' can be const. [functionConst] kjs-5.103.0/src/kjs/scope_chain.h:73:10: note: Technically the member function 'KJS::ScopeChainLink::ref' can be const. kjs-5.103.0/src/kjs/scope_chain.h:226:29: note: Technically the member function 'KJS::ScopeChainLink::ref' can be const. 2.18.0 kjs-5.103.0/src/kjs/scope_chain.h:238:39: performance:inconclusive: Technically the member function 'KJS::ScopeChain::end' can be static (but you may consider moving to unnamed namespace). [functionStatic] kjs-5.103.0/src/kjs/scope_chain.h:197:24: note: Technically the member function 'KJS::ScopeChain::end' can be static (but you may consider moving to unnamed namespace). kjs-5.103.0/src/kjs/scope_chain.h:238:39: note: Technically the member function 'KJS::ScopeChain::end' can be static (but you may consider moving to unnamed namespace). 2.18.0 kjs-5.103.0/src/kjs/scope_chain.h:260:12: warning: Uninitialized variable: last.ptr [uninitvar] kjs-5.103.0/src/kjs/scope_chain.h:257:37: note: Assuming condition is false kjs-5.103.0/src/kjs/scope_chain.h:260:12: note: Uninitialized variable: last.ptr 2.18.0 kjs-5.103.0/src/kjs/ustring.h:115:15: warning:inconclusive: Member variable 'UChar::uc' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:128:5: style: Class 'CString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:238:5: style: Class 'UString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:246:5: style: Class 'UString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:266:5: style: Class 'UString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:275:25: style: Class 'UString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:279:25: style: Class 'UString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:312:9: warning:inconclusive: Member variable 'Range::length' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:312:9: warning:inconclusive: Member variable 'Range::position' is not initialized in the constructor. [uninitMemberVar] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:400:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null [valueFlowBailoutIncompleteVar] head kjs-5.103.0/src/kjs/ustring.h:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] head kjs-5.103.0/src/kjs/ustring.h:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:486:5: style: Class 'UString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:85:5: style: Struct 'UChar' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:86:5: style: Struct 'UChar' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/ustring.h:87:5: style: Struct 'UChar' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 kjs-5.103.0/src/kjs/value.h:214:10: warning: The class 'JSCell' defines member function with name 'getNumber' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:479:22: note: Parent function 'JSValue::getNumber' kjs-5.103.0/src/kjs/value.h:214:10: note: Derived function 'JSCell::getNumber' 2.18.0 kjs-5.103.0/src/kjs/value.h:215:12: warning: The class 'JSCell' defines member function with name 'getNumber' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:492:24: note: Parent function 'JSValue::getNumber' kjs-5.103.0/src/kjs/value.h:215:12: note: Derived function 'JSCell::getNumber' 2.18.0 kjs-5.103.0/src/kjs/value.h:216:10: warning: The class 'JSCell' defines member function with name 'getString' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:502:22: note: Parent function 'JSValue::getString' kjs-5.103.0/src/kjs/value.h:216:10: note: Derived function 'JSCell::getString' 2.18.0 kjs-5.103.0/src/kjs/value.h:217:13: warning: The class 'JSCell' defines member function with name 'getString' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:512:25: note: Parent function 'JSValue::getString' kjs-5.103.0/src/kjs/value.h:217:13: note: Derived function 'JSCell::getString' 2.18.0 kjs-5.103.0/src/kjs/value.h:218:15: warning: The class 'JSCell' defines member function with name 'getObject' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:522:27: note: Parent function 'JSValue::getObject' kjs-5.103.0/src/kjs/value.h:218:15: note: Derived function 'JSCell::getObject' 2.18.0 kjs-5.103.0/src/kjs/value.h:219:21: warning: The class 'JSCell' defines member function with name 'getObject' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:527:33: note: Parent function 'JSValue::getObject' kjs-5.103.0/src/kjs/value.h:219:21: note: Derived function 'JSCell::getObject' 2.18.0 kjs-5.103.0/src/kjs/value.h:321:66: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] 2.18.0 kjs-5.103.0/src/kjs/value.h:321:79: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] 2.18.0 kjs-5.103.0/src/kjs/value.h:345:21: warning: The class 'JSCell' defines member function with name 'isNumber' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:422:22: note: Parent function 'JSValue::isNumber' kjs-5.103.0/src/kjs/value.h:345:21: note: Derived function 'JSCell::isNumber' 2.18.0 kjs-5.103.0/src/kjs/value.h:350:21: warning: The class 'JSCell' defines member function with name 'isString' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:433:22: note: Parent function 'JSValue::isString' kjs-5.103.0/src/kjs/value.h:350:21: note: Derived function 'JSCell::isString' 2.18.0 kjs-5.103.0/src/kjs/value.h:355:21: warning: The class 'JSCell' defines member function with name 'isObject' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:443:22: note: Parent function 'JSValue::isObject' kjs-5.103.0/src/kjs/value.h:355:21: note: Derived function 'JSCell::isObject' 2.18.0 kjs-5.103.0/src/kjs/value.h:360:21: warning: The class 'JSCell' defines member function with name 'marked' also defined in its parent class 'JSValue'. [duplInheritedMember] kjs-5.103.0/src/kjs/value.h:583:22: note: Parent function 'JSValue::marked' kjs-5.103.0/src/kjs/value.h:360:21: note: Derived function 'JSCell::marked' 2.18.0 kjs-5.103.0/src/kjs/value.h:471:23: style: Pointer expression 'this' converted to bool is always true. [knownPointerToBool] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:108:17: style:inconclusive: Technically the member function 'StopWatch::getElapsedMS' can be const. [functionConst] kjs-5.103.0/tests/testkjs.cpp:77:10: note: Technically the member function 'StopWatch::getElapsedMS' can be const. kjs-5.103.0/tests/testkjs.cpp:108:17: note: Technically the member function 'StopWatch::getElapsedMS' can be const. 2.18.0 kjs-5.103.0/tests/testkjs.cpp:147:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DontDelete [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:157:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:297:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Throw [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:308:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:335:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:373:14: style: C-style pointer casting [cstyleCast] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:375:21: warning: If memory allocation fails, then there is a possible null pointer dereference: fileName [ctunullpointerOutOfMemory] kjs-5.103.0/tests/testkjs.cpp:170:32: note: Assuming allocation function fails kjs-5.103.0/tests/testkjs.cpp:170:32: note: Assignment 'fileName=strdup(JSValue::toString(args[0],exec).UTF8String().c_str())', assigned value is 0 kjs-5.103.0/tests/testkjs.cpp:171:54: note: Calling function createStringWithContentsOfFile, 1st argument is null kjs-5.103.0/tests/testkjs.cpp:375:21: note: Dereferencing argument fileName that is null 2.18.0 kjs-5.103.0/tests/testkjs.cpp:375:21: warning: If memory allocation fails, then there is a possible null pointer dereference: fileName [nullPointerOutOfMemory] kjs-5.103.0/tests/testkjs.cpp:170:32: note: Assuming allocation function fails kjs-5.103.0/tests/testkjs.cpp:170:32: note: Assignment 'fileName=strdup(JSValue::toString(args[0],exec).UTF8String().c_str())', assigned value is 0 kjs-5.103.0/tests/testkjs.cpp:171:55: note: Calling function 'createStringWithContentsOfFile', 1st argument 'fileName' value is 0 kjs-5.103.0/tests/testkjs.cpp:375:21: note: Null pointer dereference 2.18.0 kjs-5.103.0/tests/testkjs.cpp:377:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:378:9: error: Memory leak: buffer [memleak] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:385:13: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 kjs-5.103.0/tests/testkjs.cpp:385:22: style: C-style pointer casting [cstyleCast] head kjs-5.103.0/tests/testkjs.cpp:51:0: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] head kjs-5.103.0/tests/testkjs.cpp:51:2: error: failed to evaluate #if condition, undefined function-like macro invocation: PLATFORM( ... ) [preprocessorErrorDirective] DONE