| 2720 | } |
| 2721 | |
| 2722 | static bool isOperator(const Token *tokenDef) |
| 2723 | { |
| 2724 | if (!tokenDef) |
| 2725 | return false; |
| 2726 | if (tokenDef->isOperatorKeyword()) |
| 2727 | return true; |
| 2728 | const std::string &name = tokenDef->str(); |
| 2729 | return name.size() > 8 && startsWith(name,"operator") && std::strchr("+-*/%&|~^<>!=[(", name[8]); |
| 2730 | } |
| 2731 | |
| 2732 | static bool isTrailingReturnType(const Token* tok) |
| 2733 | { |
no test coverage detected