get deallocation info for function */
| 1277 | |
| 1278 | /** get deallocation info for function */ |
| 1279 | const Library::AllocFunc* Library::getDeallocFuncInfo(const Token *tok) const |
| 1280 | { |
| 1281 | while (Token::simpleMatch(tok, "::")) |
| 1282 | tok = tok->astOperand2() ? tok->astOperand2() : tok->astOperand1(); |
| 1283 | if (!tok) |
| 1284 | return nullptr; |
| 1285 | const std::string funcname = getFunctionName(tok); |
| 1286 | return isNotLibraryFunction(tok) && mData->mFunctions.find(funcname) != mData->mFunctions.end() ? nullptr : getAllocDealloc(mData->mDealloc, funcname); |
| 1287 | } |
| 1288 | |
| 1289 | /** get reallocation info for function */ |
| 1290 | const Library::AllocFunc* Library::getReallocFuncInfo(const Token *tok) const |