| 991 | |
| 992 | private: |
| 993 | static bool isCast(const Token* tok) { |
| 994 | if (Token::Match(tok, "( %name% ) (|%name%|%num%")) |
| 995 | return !tok->tokAt(3)->isKeyword(); |
| 996 | if (Token::Match(tok, "< %name% > (") && tok->previous() && endsWith(tok->strAt(-1), "_cast", 5)) |
| 997 | return true; |
| 998 | return false; |
| 999 | } |
| 1000 | |
| 1001 | static Token* insertTokens(Token* to, std::pair<Token*,Token*> range) { |
| 1002 | for (const Token* from = range.first; from != range.second; from = from->next()) { |