returns true if ftok is not a library function
| 1497 | |
| 1498 | // returns true if ftok is not a library function |
| 1499 | bool Library::isNotLibraryFunction(const Token *ftok, const Function **func) const |
| 1500 | { |
| 1501 | if (ftok->isKeyword() || ftok->isStandardType()) |
| 1502 | return true; |
| 1503 | |
| 1504 | if (ftok->function() && ftok->function()->nestedIn && ftok->function()->nestedIn->type != ScopeType::eGlobal) |
| 1505 | return true; |
| 1506 | |
| 1507 | // variables are not library functions. |
| 1508 | if (ftok->varId()) |
| 1509 | return true; |
| 1510 | |
| 1511 | return !matchArguments(ftok, getFunctionName(ftok), func); |
| 1512 | } |
| 1513 | |
| 1514 | bool Library::matchArguments(const Token *ftok, const std::string &functionName, const Function **func) const |
| 1515 | { |