2025-11-21 08:33 ftp://ftp.de.debian.org/debian/pool/main/f/foonathan-memory/foonathan-memory_0.7.4.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 223 223 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: foonathan-memory-79d054c/example/allocator_storage.cpp:65:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/joint_allocation.cpp:102:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/using_allocators.cpp:78:45: debug: Scope::checkVariable found variable 'storage' with varid 0. [varid0] foonathan-memory-79d054c/example/tracking.cpp:25:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clog [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/tracking.cpp:32:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clog [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/tracking.cpp:38:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clog [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/tracking.cpp:43:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clog [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/cmake/get_node_size.cpp:46:27: style: struct member 'is_same::value' is never used. [unusedStructMember] foonathan-memory-79d054c/example/using_allocators.cpp:30:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/tracking.cpp:23:14: style:inconclusive: Technically the member function 'main::tracker::on_node_allocation' can be const. [functionConst] foonathan-memory-79d054c/example/tracking.cpp:29:14: style:inconclusive: Technically the member function 'main::tracker::on_array_allocation' can be const. [functionConst] foonathan-memory-79d054c/example/tracking.cpp:36:14: style:inconclusive: Technically the member function 'main::tracker::on_node_deallocation' can be const. [functionConst] foonathan-memory-79d054c/example/tracking.cpp:41:14: style:inconclusive: Technically the member function 'main::tracker::on_array_deallocation' can be const. [functionConst] foonathan-memory-79d054c/example/tracking.cpp:23:39: style: Parameter 'mem' can be declared as pointer to const [constParameterPointer] foonathan-memory-79d054c/example/tracking.cpp:29:40: style: Parameter 'mem' can be declared as pointer to const [constParameterPointer] foonathan-memory-79d054c/example/tracking.cpp:36:41: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] foonathan-memory-79d054c/example/tracking.cpp:41:42: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] foonathan-memory-79d054c/src/detail/align.cpp:21:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_alignment [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/taking_allocators.cpp:305:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/taking_allocators.cpp:293:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/taking_allocators.cpp:59:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/taking_allocators.cpp:81:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/taking_allocators.cpp:105:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/taking_allocators.cpp:127:34: style:inconclusive: Either there is a missing 'override', or the member function 'using_std_allocator::deep_copy_ptr < int , std :: allocator < int > >::operator->' can be const. [functionConst] foonathan-memory-79d054c/example/taking_allocators.cpp:189:9: style: Class 'deep_copy_ptr < int , memory :: default_allocator >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] foonathan-memory-79d054c/example/taking_allocators.cpp:35:9: style: Class 'deep_copy_ptr < int , std :: allocator < int > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] foonathan-memory-79d054c/example/taking_allocators.cpp:95:28: error: Unhandled exception thrown in function declared not to throw exceptions. [throwInNoexceptFunction] foonathan-memory-79d054c/example/taking_allocators.cpp:300:51: warning: Access of moved variable 'b'. [accessMoved] foonathan-memory-79d054c/example/taking_allocators.cpp:299:14: note: Calling std::move(b) foonathan-memory-79d054c/example/taking_allocators.cpp:300:51: note: Access of moved variable 'b'. foonathan-memory-79d054c/example/taking_allocators.cpp:197:49: warning:inconclusive: Access of moved variable 'other'. [accessMoved] foonathan-memory-79d054c/example/taking_allocators.cpp:197:25: note: Calling std::move(other) foonathan-memory-79d054c/example/taking_allocators.cpp:197:49: note: Access of moved variable 'other'. foonathan-memory-79d054c/src/heap_allocator.cpp:73:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/example/taking_allocators.cpp:199:13: warning:inconclusive: Access of moved variable 'other'. [accessMoved] foonathan-memory-79d054c/example/taking_allocators.cpp:197:25: note: Calling std::move(other) foonathan-memory-79d054c/example/taking_allocators.cpp:199:13: note: Access of moved variable 'other'. foonathan-memory-79d054c/example/taking_allocators.cpp:47:50: warning:inconclusive: Access of moved variable 'other'. [accessMoved] foonathan-memory-79d054c/example/taking_allocators.cpp:47:26: note: Calling std::move(other) foonathan-memory-79d054c/example/taking_allocators.cpp:47:50: note: Access of moved variable 'other'. foonathan-memory-79d054c/example/taking_allocators.cpp:49:13: warning:inconclusive: Access of moved variable 'other'. [accessMoved] foonathan-memory-79d054c/example/taking_allocators.cpp:47:26: note: Calling std::move(other) foonathan-memory-79d054c/example/taking_allocators.cpp:49:13: note: Access of moved variable 'other'. foonathan-memory-79d054c/example/taking_allocators.cpp:85:30: warning:inconclusive: Access of moved variable 'other'. [accessMoved] foonathan-memory-79d054c/example/taking_allocators.cpp:84:43: note: Calling std::move(other) foonathan-memory-79d054c/example/taking_allocators.cpp:85:30: note: Access of moved variable 'other'. foonathan-memory-79d054c/example/taking_allocators.cpp:86:17: warning:inconclusive: Access of moved variable 'other'. [accessMoved] foonathan-memory-79d054c/example/taking_allocators.cpp:84:43: note: Calling std::move(other) foonathan-memory-79d054c/example/taking_allocators.cpp:86:17: note: Access of moved variable 'other'. foonathan-memory-79d054c/src/memory_pool.cpp:12:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/memory_arena.cpp:15:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/memory_arena.cpp:23:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable head_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/memory_arena.cpp:35:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable head_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/memory_arena.cpp:42:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable head_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/memory_arena.cpp:54:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable head_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/memory_pool_collection.cpp:12:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/memory_stack.cpp:12:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/new_allocator.cpp:18:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/new_allocator.cpp:26:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nothrow [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/static_allocator.cpp:14:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/static_allocator.cpp:22:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/static_allocator.cpp:31:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cur_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/static_allocator.cpp:41:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cur_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/static_allocator.cpp:48:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:23:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chunk_base [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:36:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chunk_memory_offset [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:42:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_nodes [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:57:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable first_free [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:72:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable capacity [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:83:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable capacity [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:101:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chunk_max_nodes [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:175:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:233:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_alignment [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:283:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chunk_memory_offset [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:294:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alloc_chunk_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:307:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:331:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:336:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alloc_chunk_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:365:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/small_free_list.cpp:378:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dealloc_chunk_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/temporary_allocator.cpp:31:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tracker_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/temporary_allocator.cpp:39:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tracker_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/temporary_allocator.cpp:45:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/temporary_allocator.cpp:56:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_alignment [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/temporary_allocator.cpp:260:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable prev_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/temporary_allocator.cpp:269:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable prev_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/temporary_allocator.cpp:285:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shrink_to_fit_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/temporary_allocator.cpp:291:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable top_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:14:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:147:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virtual_memory_page_size [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:154:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virtual_memory_page_size [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:167:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:176:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virtual_memory_page_size [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:192:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virtual_memory_page_size [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:202:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable virtual_memory_page_size [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:215:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:220:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:232:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cur_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/virtual_memory.cpp:240:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOONATHAN_MEMORY_LOG_PREFIX [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:172:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable capacity_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:182:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:200:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable capacity_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:209:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:220:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:225:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:368:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable last_dealloc_prev_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:438:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable capacity_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:460:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:491:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:507:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:521:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:526:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_size_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:548:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable begin_proxy_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list.cpp:554:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end_proxy_ [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/allocator_traits.cpp:169:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/allocator_traits.cpp:301:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_alignment [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/allocator_traits.cpp:380:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/allocator_traits.cpp:54:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/detail/align.cpp:69:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_alignment [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/allocator_traits.cpp:299:25: performance:inconclusive: Technically the member function 'TEST_CASE::::with_alignment::max_alignment' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/allocator_traits.cpp:309:25: performance:inconclusive: Technically the member function 'TEST_CASE::::with_node::max_node_size' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/allocator_traits.cpp:319:25: performance:inconclusive: Technically the member function 'TEST_CASE::::with_array::max_array_size' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/allocator_traits.cpp:361:15: performance:inconclusive: Technically the member function 'TEST_CASE::min_composable_allocator::allocate_node' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/allocator_traits.cpp:366:14: performance:inconclusive: Technically the member function 'TEST_CASE::min_composable_allocator::deallocate_node' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/allocator_traits.cpp:27:10: performance:inconclusive: Technically the member function 'std_allocator_construct < int >::construct' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/detail/align.cpp:31:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] foonathan-memory-79d054c/test/detail/align.cpp:34:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] foonathan-memory-79d054c/test/detail/align.cpp:38:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] foonathan-memory-79d054c/test/detail/align.cpp:40:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] foonathan-memory-79d054c/test/detail/align.cpp:50:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] foonathan-memory-79d054c/test/detail/align.cpp:53:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] foonathan-memory-79d054c/test/detail/align.cpp:58:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] foonathan-memory-79d054c/test/detail/align.cpp:62:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] foonathan-memory-79d054c/test/allocator_traits.cpp:92:13: style: struct member 'non_empty_raw::i' is never used. [unusedStructMember] foonathan-memory-79d054c/test/allocator_traits.cpp:106:13: style: struct member 'explicit_stateless_raw::i' is never used. [unusedStructMember] foonathan-memory-79d054c/test/detail/debug_helpers.cpp:17:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable freed_memory [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/detail/debug_helpers.cpp:33:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable freed_memory [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/detail/debug_helpers.cpp:51:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_magic [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/detail/debug_helpers.cpp:38:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] foonathan-memory-79d054c/test/detail/debug_helpers.cpp:17:12: style: Consider using std::fill or std::generate algorithm instead of a raw loop. [useStlAlgorithm] foonathan-memory-79d054c/test/detail/debug_helpers.cpp:33:12: style: Consider using std::fill or std::generate algorithm instead of a raw loop. [useStlAlgorithm] foonathan-memory-79d054c/test/detail/free_list_array.cpp:76:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable min_element_size [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/src/detail/free_list_utils.hpp:48:27: style: Local variable 'i' shadows outer argument [shadowArgument] foonathan-memory-79d054c/src/detail/free_list_utils.hpp:41:63: note: Shadowed declaration foonathan-memory-79d054c/src/detail/free_list_utils.hpp:48:27: note: Shadow variable foonathan-memory-79d054c/src/detail/free_list.cpp:32:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] foonathan-memory-79d054c/src/detail/free_list.cpp:83:55: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] foonathan-memory-79d054c/src/detail/free_list_utils.hpp:47:22: style: Variable 'mem' can be declared as pointer to const [constVariablePointer] foonathan-memory-79d054c/src/detail/small_free_list.cpp:51:32: style:inconclusive: Boolean expression 'begin<=node' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] foonathan-memory-79d054c/src/detail/small_free_list.cpp:49:14: style: Variable 'begin' can be declared as pointer to const [constVariablePointer] foonathan-memory-79d054c/src/detail/small_free_list.cpp:60:18: style: Variable 'cur_mem' can be declared as pointer to const [constVariablePointer] foonathan-memory-79d054c/test/detail/memory_stack.cpp:39:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_alignment [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/iteration_allocator.cpp:53:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_alignment [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/test_allocator.hpp:83:5: warning: Member variable 'test_allocator::last_allocated_' is not initialized. [uninitMemberVarPrivate] foonathan-memory-79d054c/test/test_allocator.hpp:46:17: performance:inconclusive: Technically the member function 'test_allocator::max_node_size' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/test_allocator.hpp:51:10: style:inconclusive: Technically the member function 'test_allocator::last_deallocation_valid' can be const. [functionConst] foonathan-memory-79d054c/test/test_allocator.hpp:61:17: performance: Function 'last_allocated()' should return member 'last_allocated_' by const reference. [returnByReference] foonathan-memory-79d054c/test/memory_arena.cpp:27:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_alignment [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/memory_arena.cpp:156:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/memory_arena.cpp:216:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/memory_arena.cpp:144:17: performance:inconclusive: Technically the member function 'test_block_allocator < 10 >::next_block_size' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/memory_arena.cpp:125:5: style: Struct 'test_block_allocator < 10 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] foonathan-memory-79d054c/test/memory_resource_adapter.cpp:53:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node_allocated [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/joint_allocator.cpp:259:26: style: Variable 'input' can be declared as const array [constVariable] foonathan-memory-79d054c/test/joint_allocator.cpp:27:14: warning: Access of moved variable 'ptr'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:68:21: note: Calling std::move(ptr1) foonathan-memory-79d054c/test/joint_allocator.cpp:69:21: note: Calling function 'verify_null', 1st argument 'ptr1' value is foonathan-memory-79d054c/test/joint_allocator.cpp:27:14: note: Access of moved variable 'ptr'. foonathan-memory-79d054c/test/joint_allocator.cpp:28:13: warning:inconclusive: Access of moved variable 'ptr'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:68:21: note: Calling std::move(ptr1) foonathan-memory-79d054c/test/joint_allocator.cpp:69:21: note: Calling function 'verify_null', 1st argument 'ptr1' value is foonathan-memory-79d054c/test/joint_allocator.cpp:28:13: note: Access of moved variable 'ptr'. foonathan-memory-79d054c/test/joint_allocator.cpp:29:14: warning:inconclusive: Access of moved variable 'ptr'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:68:21: note: Calling std::move(ptr1) foonathan-memory-79d054c/test/joint_allocator.cpp:69:21: note: Calling function 'verify_null', 1st argument 'ptr1' value is foonathan-memory-79d054c/test/joint_allocator.cpp:29:14: note: Access of moved variable 'ptr'. foonathan-memory-79d054c/test/joint_allocator.cpp:69:21: warning: Access of moved variable 'ptr1'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:68:21: note: Calling std::move(ptr1) foonathan-memory-79d054c/test/joint_allocator.cpp:69:21: note: Access of moved variable 'ptr1'. foonathan-memory-79d054c/test/joint_allocator.cpp:72:31: warning: Access of moved variable 'ptr1'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:68:21: note: Calling std::move(ptr1) foonathan-memory-79d054c/test/joint_allocator.cpp:72:31: note: Access of moved variable 'ptr1'. foonathan-memory-79d054c/test/joint_allocator.cpp:73:21: warning: Access of moved variable 'ptr1'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:72:21: note: Calling std::move(ptr1) foonathan-memory-79d054c/test/joint_allocator.cpp:73:21: note: Access of moved variable 'ptr1'. foonathan-memory-79d054c/test/joint_allocator.cpp:87:21: warning: Access of moved variable 'ptr2'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:86:16: note: Calling std::move(ptr2) foonathan-memory-79d054c/test/joint_allocator.cpp:87:21: note: Access of moved variable 'ptr2'. foonathan-memory-79d054c/test/joint_allocator.cpp:91:26: warning: Access of moved variable 'ptr2'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:86:16: note: Calling std::move(ptr2) foonathan-memory-79d054c/test/joint_allocator.cpp:91:26: note: Access of moved variable 'ptr2'. foonathan-memory-79d054c/test/joint_allocator.cpp:93:21: warning: Access of moved variable 'ptr2'. [accessMoved] foonathan-memory-79d054c/test/joint_allocator.cpp:91:16: note: Calling std::move(ptr2) foonathan-memory-79d054c/test/joint_allocator.cpp:93:21: note: Access of moved variable 'ptr2'. foonathan-memory-79d054c/test/memory_resource_adapter.cpp:42:17: performance:inconclusive: Technically the member function 'pmr_test_allocator::max_node_size' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/benchmark.hpp:89:5: debug: Failed to parse 'using order_func = void ( * ) ( std :: vector < void * > & ) ;'. The checking continues anyway. [simplifyUsing] foonathan-memory-79d054c/test/memory_stack.cpp:34:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_fence_size [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/smart_ptr.cpp:39:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/smart_ptr.cpp:17:11: performance:inconclusive: Technically the member function 'dummy_allocator::allocate_node' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/smart_ptr.cpp:23:10: performance:inconclusive: Technically the member function 'dummy_allocator::deallocate_node' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/test/segregator.cpp:93:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/profiling.cpp:23:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/profiling.cpp:71:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/profiling.cpp:137:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/profiling.cpp:82:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/test/profiling.cpp:32:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/test_types.hpp:81:16: debug: Failed to instantiate template "M1". The checking continues anyway. [templateInstantiation] foonathan-memory-79d054c/tool/test_types.hpp:79:12: debug: Failed to instantiate template "M1". The checking continues anyway. [templateInstantiation] foonathan-memory-79d054c/test/benchmark.hpp:50:17: style:inconclusive: Technically the member function 'single::operator()' can be const. [functionConst] foonathan-memory-79d054c/test/benchmark.hpp:66:17: style:inconclusive: Technically the member function 'single::operator()' can be const. [functionConst] foonathan-memory-79d054c/test/benchmark.hpp:47:5: style: Struct 'single' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] foonathan-memory-79d054c/test/benchmark.hpp:150:5: style: Struct 'bulk' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] foonathan-memory-79d054c/test/benchmark.hpp:160:5: style: Struct 'bulk_reversed' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] foonathan-memory-79d054c/test/benchmark.hpp:173:5: style: Struct 'butterfly' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] foonathan-memory-79d054c/test/profiling.cpp:116:26: style: Parameter 'argv' can be declared as const array [constParameter] foonathan-memory-79d054c/test/benchmark.hpp:36:61: warning:inconclusive: Access of forwarded variable 'args'. [accessForwarded] foonathan-memory-79d054c/test/benchmark.hpp:36:42: note: Calling std::forward(args) foonathan-memory-79d054c/test/benchmark.hpp:36:61: note: Access of forwarded variable 'args'. foonathan-memory-79d054c/tool/node_size_debugger.hpp:50:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:57:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:96:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:114:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:132:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:150:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:169:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:189:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:208:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value_type [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:227:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value_type [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:248:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value_type [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:269:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value_type [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:321:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:342:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Types [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.cpp:180:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.cpp:203:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] foonathan-memory-79d054c/tool/node_size_debugger.hpp:84:17: performance:inconclusive: Technically the member function 'debug_forward_list::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:90:17: performance:inconclusive: Technically the member function 'debug_forward_list::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:102:17: performance:inconclusive: Technically the member function 'debug_list::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:108:17: performance:inconclusive: Technically the member function 'debug_list::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:120:17: performance:inconclusive: Technically the member function 'debug_set::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:126:17: performance:inconclusive: Technically the member function 'debug_set::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:138:17: performance:inconclusive: Technically the member function 'debug_multiset::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:144:17: performance:inconclusive: Technically the member function 'debug_multiset::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:156:17: performance:inconclusive: Technically the member function 'debug_unordered_set::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:162:17: performance:inconclusive: Technically the member function 'debug_unordered_set::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:175:17: performance:inconclusive: Technically the member function 'debug_unordered_multiset::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:181:17: performance:inconclusive: Technically the member function 'debug_unordered_multiset::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:195:17: performance:inconclusive: Technically the member function 'debug_map::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:201:17: performance:inconclusive: Technically the member function 'debug_map::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:214:17: performance:inconclusive: Technically the member function 'debug_multimap::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:220:17: performance:inconclusive: Technically the member function 'debug_multimap::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:233:17: performance:inconclusive: Technically the member function 'debug_unordered_map::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:239:17: performance:inconclusive: Technically the member function 'debug_unordered_map::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:254:17: performance:inconclusive: Technically the member function 'debug_unordered_multimap::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:260:17: performance:inconclusive: Technically the member function 'debug_unordered_multimap::debug' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:275:17: performance:inconclusive: Technically the member function 'debug_shared_ptr_stateless::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:297:17: performance:inconclusive: Technically the member function 'debug_shared_ptr_stateful::name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.cpp:20:10: performance:inconclusive: Technically the member function 'simple_serializer::prefix' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.cpp:29:10: performance:inconclusive: Technically the member function 'simple_serializer::suffix' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.cpp:36:10: performance:inconclusive: Technically the member function 'verbose_serializer::prefix' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.cpp:46:10: performance:inconclusive: Technically the member function 'verbose_serializer::suffix' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.cpp:111:17: performance:inconclusive: Technically the member function 'code_serializer::struct_name' can be static (but you may consider moving to unnamed namespace). [functionStatic] foonathan-memory-79d054c/tool/node_size_debugger.hpp:55:5: style: Class 'node_size_debugger' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] diff: 2.18.0 foonathan-memory-79d054c/example/allocator_storage.cpp:33:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 4_KiB [valueFlowBailoutIncompleteVar] 2.18.0 foonathan-memory-79d054c/example/taking_allocators.cpp:95:28: error: Exception thrown in function declared not to throw exceptions. [throwInNoexceptFunction] head foonathan-memory-79d054c/example/taking_allocators.cpp:95:28: error: Unhandled exception thrown in function declared not to throw exceptions. [throwInNoexceptFunction] head foonathan-memory-79d054c/example/using_allocators.cpp:30:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] 2.18.0 foonathan-memory-79d054c/example/using_allocators.cpp:41:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] head foonathan-memory-79d054c/example/using_allocators.cpp:78:45: debug: Scope::checkVariable found variable 'storage' with varid 0. [varid0] DONE