2025-05-07 16:30 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 --library=bsd --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-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: 3726ace (2025-05-07 13:02:19 +0200) count: 67 67 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: 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/r_trie.h:74:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/alter.cpp:12:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/alter.cpp:28:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/alter.cpp:44:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] triebeard/src/alter.cpp:60:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_LOGICAL [valueFlowBailoutIncompleteVar] 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/greedy_match.cpp:81:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/greedy_match.cpp:90:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/greedy_match.cpp:98:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] triebeard/src/greedy_match.cpp:106:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/greedy_match.cpp:55:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/greedy_match.cpp:21:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/length.cpp:5:24: style: C-style pointer casting [cstyleCast] triebeard/src/longest_match.cpp:68:97: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/longest_match.cpp:76:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/longest_match.cpp:84:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] triebeard/src/longest_match.cpp:92:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/longest_match.cpp:46:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/longest_match.cpp:18:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] 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/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/prefix_match.cpp:81:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/prefix_match.cpp:89:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/prefix_match.cpp:97:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] triebeard/src/prefix_match.cpp:105:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/prefix_match.cpp:57:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/prefix_match.cpp:22:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] triebeard/src/str.cpp:16:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/str.cpp:30:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_LOGICAL [valueFlowBailoutIncompleteVar] triebeard/src/str.cpp:38:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] triebeard/src/str.cpp:44:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/str.cpp:52:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] triebeard/src/str.cpp:58:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] triebeard/src/str.cpp:78:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] 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