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

Function getAllocDealloc

lib/library.h:483–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481 std::string getFunctionName(const Token *ftok, bool &error) const;
482
483 static const AllocFunc* getAllocDealloc(const std::map<std::string, AllocFunc> &data, const std::string &name) {
484 const auto it = data.find(name);
485 return (it == data.end()) ? nullptr : &it->second;
486 }
487
488 enum DetectContainer : std::uint8_t { ContainerOnly, IteratorOnly, Both };
489 const Library::Container* detectContainerInternal(const Token* typeStart, DetectContainer detect, bool* isIterator = nullptr, bool withoutStd = false) const;

Callers 5

getAllocFuncInfoMethod · 0.85
getDeallocFuncInfoMethod · 0.85
getReallocFuncInfoMethod · 0.85
allocIdMethod · 0.85
deallocIdMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected