2025-07-05 20:07 ftp://ftp.de.debian.org/debian/pool/main/r/rquantlib/rquantlib_0.4.26.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=boost --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-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 9b11b6b (2025-07-04 16:03:30 +0200) count: 115 115 elapsed-time: 0.6 0.7 head-timing-info: old-timing-info: head results: RQuantLib/src/RcppExports.cpp:31:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] RQuantLib/src/affine.cpp:83:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable settleDate [valueFlowBailoutIncompleteVar] RQuantLib/src/affine.cpp:47:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/affine.cpp:197:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/affine.cpp:215:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/affine.cpp:230:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/affine.cpp:247:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/asian.cpp:61:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] RQuantLib/src/asian.cpp:25:42: performance: Function parameter 'averageType' should be passed by const reference. [passedByValue] RQuantLib/src/barrier_binary.cpp:96:108: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NaN [valueFlowBailoutIncompleteVar] RQuantLib/src/barrier_binary.cpp:157:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DownIn [valueFlowBailoutIncompleteVar] RQuantLib/src/barrier_binary.cpp:24:43: performance: Function parameter 'binType' should be passed by const reference. [passedByValue] RQuantLib/src/barrier_binary.cpp:26:43: performance: Function parameter 'excType' should be passed by const reference. [passedByValue] RQuantLib/src/barrier_binary.cpp:146:44: performance: Function parameter 'barrType' should be passed by const reference. [passedByValue] RQuantLib/src/bermudan.cpp:74:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable settleDate [valueFlowBailoutIncompleteVar] RQuantLib/src/bermudan.cpp:296:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable settleDate [valueFlowBailoutIncompleteVar] RQuantLib/src/bermudan.cpp:48:10: style: C-style pointer casting [cstyleCast] RQuantLib/src/bermudan.cpp:201:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/bermudan.cpp:219:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/bermudan.cpp:234:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/bermudan.cpp:250:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/bermudan.cpp:425:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/bermudan.cpp:443:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/bermudan.cpp:458:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/bermudan.cpp:474:17: style: C-style pointer casting [cstyleCast] RQuantLib/src/bonds.cpp:37:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable calendar [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:68:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable calendar [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:229:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Months [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:488:97: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Annual [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:603:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Annual [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:700:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Annual [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:739:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Months [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:888:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Compounded [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:923:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable calendar [valueFlowBailoutIncompleteVar] RQuantLib/src/bonds.cpp:891:5: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] RQuantLib/src/bonds.cpp:266:60: performance: Function parameter 'gearings' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:266:90: performance: Function parameter 'caps' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:267:43: performance: Function parameter 'spreads' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:267:72: performance: Function parameter 'floors' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:278:60: performance: Function parameter 'gearings' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:278:90: performance: Function parameter 'caps' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:279:43: performance: Function parameter 'spreads' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:279:72: performance: Function parameter 'floors' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:291:60: performance: Function parameter 'gearings' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:291:90: performance: Function parameter 'caps' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:292:43: performance: Function parameter 'spreads' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:292:72: performance: Function parameter 'floors' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:303:60: performance: Function parameter 'gearings' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:303:90: performance: Function parameter 'caps' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:304:43: performance: Function parameter 'spreads' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:304:72: performance: Function parameter 'floors' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:314:86: performance: Function parameter 'gearings' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:315:63: performance: Function parameter 'spreads' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:315:92: performance: Function parameter 'caps' should be passed by const reference. [passedByValue] RQuantLib/src/bonds.cpp:316:63: performance: Function parameter 'floors' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:54:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Settlement [valueFlowBailoutIncompleteVar] RQuantLib/src/calendars.cpp:226:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fixingDays [valueFlowBailoutIncompleteVar] RQuantLib/src/calendars.cpp:47:23: style: Expression is always false because 'else if' condition matches previous condition at line 45. [multiCondition] RQuantLib/src/calendars.cpp:202:53: style: Expression is always false because 'else if' condition matches previous condition at line 127. [multiCondition] RQuantLib/src/calendars.cpp:236:45: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:247:41: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:258:41: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:269:44: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:280:55: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:291:48: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:303:50: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:319:50: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:336:53: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:350:56: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:365:60: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:378:30: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/calendars.cpp:387:33: performance: Function parameter 'calendar' should be passed by const reference. [passedByValue] RQuantLib/src/curves.cpp:28:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable db_ [valueFlowBailoutIncompleteVar] RQuantLib/src/curves.cpp:85:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable settleDate [valueFlowBailoutIncompleteVar] RQuantLib/src/curves.cpp:156:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable settleDate [valueFlowBailoutIncompleteVar] RQuantLib/src/curves.cpp:291:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] RQuantLib/src/curves.cpp:219:32: style: Parameter 'interpWhat' can be declared as reference to const [constParameterReference] RQuantLib/src/curves.cpp:219:57: style: Parameter 'interpHow' can be declared as reference to const [constParameterReference] RQuantLib/src/dates.cpp:31:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable calendar [valueFlowBailoutIncompleteVar] RQuantLib/src/discount.cpp:36:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable settleDate [valueFlowBailoutIncompleteVar] RQuantLib/src/discount.cpp:60:12: style: The scope of the variable 'tolerance' can be reduced. [variableScope] RQuantLib/src/implieds.cpp:103:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JR [valueFlowBailoutIncompleteVar] RQuantLib/src/modules.cpp:81:1: error: There is an unknown macro here somewhere. Configuration is required. If RCPP_EXPOSED_CLASS is a macro then please configure it. [unknownMacro] RQuantLib/src/sabr.cpp:83:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ModifiedFollowing [valueFlowBailoutIncompleteVar] RQuantLib/src/sabr.cpp:202:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Months [valueFlowBailoutIncompleteVar] RQuantLib/src/sabr.cpp:234:50: style: Local variable 'swapEngine' shadows outer variable [shadowVariable] RQuantLib/src/sabr.cpp:215:46: note: Shadowed declaration RQuantLib/src/sabr.cpp:234:50: note: Shadow variable RQuantLib/src/sabr.cpp:34:57: style: Parameter 'atmVols' can be declared as reference to const [constParameterReference] RQuantLib/src/sabr.cpp:36:57: style: Parameter 'smirkVols' can be declared as reference to const [constParameterReference] RQuantLib/src/utils.cpp:28:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Call [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:112:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable settleDate [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:172:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Backward [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:201:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Following [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:267:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Months [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:335:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISDA [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:382:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Following [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:401:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Simple [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:413:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoFrequency [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:441:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Years [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:453:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Days [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:464:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Backward [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:591:121: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Clean [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:604:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Simple [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:628:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] RQuantLib/src/utils.cpp:130:12: style: The scope of the variable 'tolerance' can be reduced. [variableScope] RQuantLib/src/utils.cpp:548:20: style: The scope of the variable 'rate' can be reduced. [variableScope] RQuantLib/src/utils.cpp:440:59: performance: Function parameter 'unit' should be passed by const reference. [passedByValue] RQuantLib/src/utils.cpp:483:67: performance: Function parameter 'type' should be passed by const reference. [passedByValue] RQuantLib/src/vanilla.cpp:74:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QL_DEPRECATED_DISABLE_WARNING [valueFlowBailoutIncompleteVar] RQuantLib/src/vanilla.cpp:155:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QL_DEPRECATED_DISABLE_WARNING [valueFlowBailoutIncompleteVar] RQuantLib/src/vanilla.cpp:189:18: style: Local variable 'engine' shadows outer argument [shadowArgument] RQuantLib/src/vanilla.cpp:113:45: note: Shadowed declaration RQuantLib/src/vanilla.cpp:189:18: note: Shadow variable RQuantLib/src/vanilla.cpp:200:18: style: Local variable 'engine' shadows outer argument [shadowArgument] RQuantLib/src/vanilla.cpp:113:45: note: Shadowed declaration RQuantLib/src/vanilla.cpp:200:18: note: Shadow variable RQuantLib/src/zero.cpp:26:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable calendar [valueFlowBailoutIncompleteVar] RQuantLib/src/zero.cpp:48:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable calendar [valueFlowBailoutIncompleteVar] RQuantLib/src/zero.cpp:90:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable calendar [valueFlowBailoutIncompleteVar] RQuantLib/src/zero.cpp:139:17: style: Variable 'colNames[1]' is assigned a value that is never used. [unreadVariable] diff: DONE