| 2349 | } |
| 2350 | |
| 2351 | bool isScopeBracket(const Token* tok) |
| 2352 | { |
| 2353 | if (!Token::Match(tok, "{|}")) |
| 2354 | return false; |
| 2355 | if (!tok->scope()) |
| 2356 | return false; |
| 2357 | if (tok->str() == "{") |
| 2358 | return tok->scope()->bodyStart == tok; |
| 2359 | if (tok->str() == "}") |
| 2360 | return tok->scope()->bodyEnd == tok; |
| 2361 | return false; |
| 2362 | } |
| 2363 | |
| 2364 | template<class T, REQUIRES("T must be a Token class", std::is_convertible<T*, const Token*> )> |
| 2365 | static T* getTokenArgumentFunctionImpl(T* tok, int& argn) |
no test coverage detected