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

Method getFunction

lib/library.cpp:1700–1708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1698}
1699
1700const Library::Function *Library::getFunction(const Token *ftok) const
1701{
1702 if (isNotLibraryFunction(ftok))
1703 return nullptr;
1704 const auto it1 = utils::as_const(mData->mFunctions).find(getFunctionName(ftok));
1705 if (it1 == mData->mFunctions.cend())
1706 return nullptr;
1707 return &it1->second;
1708}
1709
1710
1711bool Library::hasminsize(const Token *ftok) const

Callers 15

getContainerFromYieldMethod · 0.95
assertWithSideEffectsMethod · 0.45
getContainerYieldFunction · 0.45
setTokenValueFunction · 0.45
isGlobalModifiedFunction · 0.45
isWritableMethod · 0.45
checkScopeMethod · 0.45
isIteratorFunction · 0.45
checkConstFuncMethod · 0.45
astFunctionYieldFunction · 0.45

Calls 1

findMethod · 0.45