| 1609 | } |
| 1610 | |
| 1611 | int 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 | |
| 1620 | bool Library::formatstr_scan(const Token* ftok) const |
| 1621 | { |
no test coverage detected