MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / findTypeEnd

Function findTypeEnd

lib/token.cpp:2683–2693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2681}
2682
2683Token* findTypeEnd(Token* tok)
2684{
2685 while (Token::Match(tok, "%name%|.|::|*|&|&&|<|(|template|decltype|sizeof")) {
2686 if (Token::Match(tok, "(|<"))
2687 tok = tok->link();
2688 if (!tok)
2689 return nullptr;
2690 tok = tok->next();
2691 }
2692 return tok;
2693}
2694
2695Token* findLambdaEndScope(Token* tok)
2696{

Callers 2

compilePrecedence2Function · 0.70
findLambdaEndScopeFunction · 0.70

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected