| 520 | } |
| 521 | |
| 522 | static bool hasUnknownType(const std::vector<const Token*>& toks) |
| 523 | { |
| 524 | if (toks.empty()) |
| 525 | return true; |
| 526 | return std::any_of(toks.begin(), toks.end(), [&](const Token* tok) { |
| 527 | if (!tok) |
| 528 | return true; |
| 529 | if (Token::Match(tok, "const|volatile|&|*|&&|%type%|::")) |
| 530 | return false; |
| 531 | if (Token::Match(tok, "%name% :: %name%")) |
| 532 | return false; |
| 533 | if (tok->type()) |
| 534 | return false; |
| 535 | return true; |
| 536 | }); |
| 537 | } |
| 538 | |
| 539 | static void stripCV(std::vector<const Token*>& toks) |
| 540 | { |
no test coverage detected