get reallocation info for function */
| 1288 | |
| 1289 | /** get reallocation info for function */ |
| 1290 | const Library::AllocFunc* Library::getReallocFuncInfo(const Token *tok) const |
| 1291 | { |
| 1292 | while (Token::simpleMatch(tok, "::")) |
| 1293 | tok = tok->astOperand2() ? tok->astOperand2() : tok->astOperand1(); |
| 1294 | if (!tok) |
| 1295 | return nullptr; |
| 1296 | const std::string funcname = getFunctionName(tok); |
| 1297 | return isNotLibraryFunction(tok) && mData->mFunctions.find(funcname) != mData->mFunctions.end() ? nullptr : getAllocDealloc(mData->mRealloc, funcname); |
| 1298 | } |
| 1299 | |
| 1300 | /** get allocation id for function */ |
| 1301 | int Library::getAllocId(const Token *tok, int arg) const |
no test coverage detected