2025-07-03 14:50 ftp://ftp.de.debian.org/debian/pool/main/h/hopscotch-map/hopscotch-map_2.3.1.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 90b0e14 (2025-07-02 15:41:51 +0200) count: 32 32 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: hopscotch-map-2.3.1/tests/utils.h:55:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MOD [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/utils.h:202:15: performance: Function 'value()' should return member 'm_value' by const reference. [returnByReference] hopscotch-map-2.3.1/tests/policy_tests.cpp:91:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable length_error [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/custom_allocator_tests.cpp:60:11: performance:inconclusive: Technically the member function 'custom_allocator < std :: pair < int , int > >::address' can be static (but you may consider moving to unnamed namespace). [functionStatic] hopscotch-map-2.3.1/tests/custom_allocator_tests.cpp:62:17: performance:inconclusive: Technically the member function 'custom_allocator < std :: pair < int , int > >::address' can be static (but you may consider moving to unnamed namespace). [functionStatic] hopscotch-map-2.3.1/tests/custom_allocator_tests.cpp:64:11: performance:inconclusive: Technically the member function 'custom_allocator < std :: pair < int , int > >::allocate' can be static (but you may consider moving to unnamed namespace). [functionStatic] hopscotch-map-2.3.1/tests/custom_allocator_tests.cpp:79:8: performance:inconclusive: Technically the member function 'custom_allocator < std :: pair < int , int > >::deallocate' can be static (but you may consider moving to unnamed namespace). [functionStatic] hopscotch-map-2.3.1/tests/custom_allocator_tests.cpp:81:13: performance:inconclusive: Technically the member function 'custom_allocator < std :: pair < int , int > >::max_size' can be static (but you may consider moving to unnamed namespace). [functionStatic] hopscotch-map-2.3.1/tests/custom_allocator_tests.cpp:91:8: performance:inconclusive: Technically the member function 'custom_allocator < std :: pair < int , int > >::destroy' can be static (but you may consider moving to unnamed namespace). [functionStatic] hopscotch-map-2.3.1/tests/custom_allocator_tests.cpp:58:3: style: Class 'custom_allocator < std :: pair < int , int > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:156:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:209:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:642:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:747:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable length_error [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:1017:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out_of_range [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:1154:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:1226:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out_of_range [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:1271:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out_of_range [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:1312:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out_of_range [valueFlowBailoutIncompleteVar] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:858:12: style: Redundant initialization for 'map_move'. The initialized value is overwritten before it is read. [redundantInitialization] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:857:17: note: map_move is initialized hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:858:12: note: map_move is overwritten hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:976:13: style: Redundant initialization for 'map_copy3'. The initialized value is overwritten before it is read. [redundantInitialization] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:975:18: note: map_copy3 is initialized hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:976:13: note: map_copy3 is overwritten hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:734:14: style: Variable 'val' can be declared as reference to const [constVariableReference] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:824:3: warning: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:821:17: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:824:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:839:3: warning:inconclusive: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:837:60: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:839:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:861:3: warning: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:858:14: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:861:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:877:3: warning:inconclusive: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:875:15: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:877:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:891:3: warning:inconclusive: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:888:17: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:891:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:904:3: warning:inconclusive: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:901:19: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:904:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:921:3: warning: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:919:17: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:921:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:922:3: warning:inconclusive: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:919:17: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:922:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:949:3: warning: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:947:14: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:949:3: note: Access of moved variable 'map'. hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:950:3: warning:inconclusive: Access of moved variable 'map'. [accessMoved] hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:947:14: note: Calling std::move(map) hopscotch-map-2.3.1/tests/hopscotch_map_tests.cpp:950:3: note: Access of moved variable 'map'. diff: DONE