| 1236 | } |
| 1237 | |
| 1238 | bool Library::isnullargbad(const Token *ftok, int argnr) const |
| 1239 | { |
| 1240 | const ArgumentChecks *arg = getarg(ftok, argnr); |
| 1241 | if (!arg) { |
| 1242 | // scan format string argument should not be null |
| 1243 | const std::string funcname = getFunctionName(ftok); |
| 1244 | const auto it = utils::as_const(mData->mFunctions).find(funcname); |
| 1245 | if (it != mData->mFunctions.cend() && it->second.formatstr && it->second.formatstr_scan) |
| 1246 | return true; |
| 1247 | } |
| 1248 | return arg && arg->notnull; |
| 1249 | } |
| 1250 | |
| 1251 | bool Library::isuninitargbad(const Token *ftok, int argnr, int indirect, bool *hasIndirect) const |
| 1252 | { |