2024-03-25 12:45 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-triebeard/r-cran-triebeard_0.4.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: fd7bd50 (2024-03-25 07:57:46 +0100) count: 37 37 elapsed-time: 0.1 0.1 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.014937s (avg. 0.014937s - 1 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, settings): 0.00497s (avg. 0.002485s - 2 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.003374s (avg. 0.001687s - 2 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.002728s (avg. 0.001364s - 2 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.002561s (avg. 0.002561s - 1 result(s)) Overall time: 0.026159s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.012864s (avg. 0.012864s - 1 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, *settings): 0.005853s (avg. 0.0029265s - 2 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.002553s (avg. 0.002553s - 1 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.002282s (avg. 0.002282s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.002201s (avg. 0.0011005s - 2 result(s)) Overall time: 0.024094s head results: triebeard/src/RcppExports.cpp:23:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] triebeard/src/create.cpp:6:54: performance: Function parameter 'keys' should be passed by const reference. [passedByValue] triebeard/src/create.cpp:6:88: performance: Function parameter 'values' should be passed by const reference. [passedByValue] triebeard/src/create.cpp:12:55: performance: Function parameter 'keys' should be passed by const reference. [passedByValue] triebeard/src/create.cpp:12:81: performance: Function parameter 'values' should be passed by const reference. [passedByValue] triebeard/src/create.cpp:18:55: performance: Function parameter 'keys' should be passed by const reference. [passedByValue] triebeard/src/create.cpp:18:84: performance: Function parameter 'values' should be passed by const reference. [passedByValue] triebeard/src/create.cpp:25:55: performance: Function parameter 'keys' should be passed by const reference. [passedByValue] triebeard/src/create.cpp:25:82: performance: Function parameter 'values' should be passed by const reference. [passedByValue] triebeard/src/r_trie.h:27:40: performance: Function parameter 'keys' should be passed by const reference. [passedByValue] triebeard/src/r_trie.h:27:64: performance: Function parameter 'values' should be passed by const reference. [passedByValue] triebeard/src/r_trie.h:64:35: performance: Function parameter 'key' should be passed by const reference. [passedByValue] triebeard/src/r_trie.h:64:42: performance: Function parameter 'value' should be passed by const reference. [passedByValue] triebeard/src/r_trie.h:8:36: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] triebeard/src/alter.cpp:5:34: style: C-style pointer casting [cstyleCast] triebeard/src/alter.cpp:21:26: style: C-style pointer casting [cstyleCast] triebeard/src/alter.cpp:37:29: style: C-style pointer casting [cstyleCast] triebeard/src/alter.cpp:53:27: style: C-style pointer casting [cstyleCast] triebeard/src/alter.cpp:69:34: style: C-style pointer casting [cstyleCast] triebeard/src/alter.cpp:76:26: style: C-style pointer casting [cstyleCast] triebeard/src/alter.cpp:83:29: style: C-style pointer casting [cstyleCast] triebeard/src/alter.cpp:90:27: style: C-style pointer casting [cstyleCast] triebeard/src/get.cpp:35:24: style: C-style pointer casting [cstyleCast] triebeard/src/get.cpp:5:24: style: C-style pointer casting [cstyleCast] triebeard/src/length.cpp:5:24: style: C-style pointer casting [cstyleCast] triebeard/src/greedy_match.cpp:39:24: style: C-style pointer casting [cstyleCast] triebeard/src/greedy_match.cpp:7:24: style: C-style pointer casting [cstyleCast] triebeard/src/longest_match.cpp:34:24: style: C-style pointer casting [cstyleCast] triebeard/src/longest_match.cpp:7:24: style: C-style pointer casting [cstyleCast] triebeard/src/prefix_match.cpp:40:24: style: C-style pointer casting [cstyleCast] triebeard/src/prefix_match.cpp:7:24: style: C-style pointer casting [cstyleCast] triebeard/src/prefix_match.cpp:55:83: style: Local variable 'it' shadows outer variable [shadowVariable] triebeard/src/prefix_match.cpp:42:49: note: Shadowed declaration triebeard/src/prefix_match.cpp:55:83: note: Shadow variable triebeard/src/prefix_match.cpp:20:83: style: Local variable 'it' shadows outer variable [shadowVariable] triebeard/src/prefix_match.cpp:9:49: note: Shadowed declaration triebeard/src/prefix_match.cpp:20:83: note: Shadow variable triebeard/src/str.cpp:71:24: style: C-style pointer casting [cstyleCast] triebeard/src/str.cpp:11:41: performance: Function parameter 'x' should be passed by const reference. [passedByValue] triebeard/src/str.cpp:37:43: performance: Function parameter 'val' should be passed by const reference. [passedByValue] triebeard/src/str.cpp:70:61: performance: Function parameter 'type_str' should be passed by const reference. [passedByValue] diff: DONE