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

Method hasminsize

lib/library.cpp:1711–1721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1709
1710
1711bool Library::hasminsize(const Token *ftok) const
1712{
1713 if (isNotLibraryFunction(ftok))
1714 return false;
1715 const auto it = utils::as_const(mData->mFunctions).find(getFunctionName(ftok));
1716 if (it == mData->mFunctions.cend())
1717 return false;
1718 return std::any_of(it->second.argumentChecks.cbegin(), it->second.argumentChecks.cend(), [](const std::pair<const int, Library::ArgumentChecks>& a) {
1719 return !a.second.minsizes.empty();
1720 });
1721}
1722
1723Library::ArgumentChecks::Direction Library::getArgDirection(const Token* ftok, int argnr, int indirect) const
1724{

Callers 1

bufferOverflowMethod · 0.80

Calls 2

findMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected