| 1970 | } |
| 1971 | |
| 1972 | static bool isc_strConcat(const Token* tok) |
| 1973 | { |
| 1974 | if (!tok->isBinaryOp() || !Token::simpleMatch(tok, "+")) |
| 1975 | return false; |
| 1976 | for (const Token* op : { tok->astOperand1(), tok->astOperand2() }) { // NOLINT(readability-use-anyofallof) |
| 1977 | const Token* sibling = op->astSibling(); |
| 1978 | if (!sibling->valueType()) |
| 1979 | continue; |
| 1980 | if (isc_strCall(op, sibling->valueType()->container)) |
| 1981 | return true; |
| 1982 | } |
| 1983 | return false; |
| 1984 | } |
| 1985 | |
| 1986 | static bool isc_strInPlusChain(const Token* tok, const Library::Container* container) |
| 1987 | { |
no test coverage detected