MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / allocId

Method allocId

lib/library.cpp:2025–2029  ·  view source on GitHub ↗

cppcheck-suppress unusedFunction

Source from the content-addressed store, hash-verified

2023
2024// cppcheck-suppress unusedFunction
2025int Library::allocId(const char name[]) const
2026{
2027 const AllocFunc* af = getAllocDealloc(mData->mAlloc, name);
2028 return af ? af->groupId : 0;
2029}
2030
2031int Library::deallocId(const char name[]) const
2032{

Callers 3

memoryMethod · 0.80
memory2Method · 0.80
resourceMethod · 0.80

Calls 1

getAllocDeallocFunction · 0.85

Tested by 3

memoryMethod · 0.64
memory2Method · 0.64
resourceMethod · 0.64