2026-05-24 03:38 ftp://ftp.de.debian.org/debian/pool/main/r/ros2-ament-index/ros2-ament-index_1.14.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=googletest --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 -j4 platform: Linux-7.0.7+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: bc04c0db (2026-05-22 08:18:49 +0200) count: 24 24 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: ament-ament_index-18114f5/ament_index_cpp/src/get_package_prefix.cpp:72:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/src/get_package_prefix.cpp:48:15: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] ament-ament_index-18114f5/ament_index_cpp/src/get_resource.cpp:34:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/src/get_resource.cpp:67:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/src/has_resource.cpp:53:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/src/get_search_paths.cpp:78:12: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:155:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:164:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:173:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:184:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:195:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:279:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:284:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:289:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:296:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:32:49: performance: Function parameter 'subfolder' should be passed by const reference. [passedByValue] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:42:51: performance: Function parameter 'subfolders' should be passed by const reference. [passedByValue] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:47:13: performance: Range variable 'subfolder' should be declared as const reference. [iterateByValue] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:37:15: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] ament-ament_index-18114f5/ament_index_cpp/test/utest.cpp:153:15: style: Unused variable: content [unusedVariable] ament-ament_index-18114f5/ament_index_cpp/test/utest_deprecated.cpp:32:49: performance: Function parameter 'subfolder' should be passed by const reference. [passedByValue] ament-ament_index-18114f5/ament_index_cpp/test/utest_deprecated.cpp:42:51: performance: Function parameter 'subfolders' should be passed by const reference. [passedByValue] ament-ament_index-18114f5/ament_index_cpp/test/utest_deprecated.cpp:47:13: performance: Range variable 'subfolder' should be declared as const reference. [iterateByValue] ament-ament_index-18114f5/ament_index_cpp/test/utest_deprecated.cpp:37:15: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] diff: DONE