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

Method formatstr_argno

lib/library.cpp:1611–1618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1609}
1610
1611int Library::formatstr_argno(const Token* ftok) const
1612{
1613 const std::map<int, Library::ArgumentChecks>& argumentChecksFunc = mData->mFunctions.at(getFunctionName(ftok)).argumentChecks;
1614 auto it = std::find_if(argumentChecksFunc.cbegin(), argumentChecksFunc.cend(), [](const std::pair<const int, Library::ArgumentChecks>& a) {
1615 return a.second.formatstr;
1616 });
1617 return it == argumentChecksFunc.cend() ? -1 : it->first - 1;
1618}
1619
1620bool Library::formatstr_scan(const Token* ftok) const
1621{

Callers 2

parseFunctionCallMethod · 0.80

Calls 1

atMethod · 0.80

Tested by

no test coverage detected