| 516 | } |
| 517 | |
| 518 | static std::string arithmeticTypeString(const Token *tok) |
| 519 | { |
| 520 | if (tok && tok->str()[0] == '-') |
| 521 | return "subtraction"; |
| 522 | if (tok && tok->str()[0] == '+') |
| 523 | return "addition"; |
| 524 | return "arithmetic"; |
| 525 | } |
| 526 | |
| 527 | void CheckNullPointerImpl::pointerArithmeticError(const Token* tok, const ValueFlow::Value *value, bool inconclusive) |
| 528 | { |
no test coverage detected