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

Function findTypeEnd

lib/valueflow.cpp:458–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458static const Token* findTypeEnd(const Token* tok)
459{
460 while (Token::Match(tok, "%name%|::|<|(|*|&|&&") && !tok->isVariable()) {
461 if (tok->link())
462 tok = tok->link();
463 tok = tok->next();
464 }
465 return tok;
466}
467
468static std::vector<const Token*> evaluateType(const Token* start, const Token* end)
469{

Callers 1

evaluateTemplateArgsFunction · 0.70

Calls 2

isVariableMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected