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

Method nextTemplateArgument

lib/token.cpp:855–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855const Token* Token::nextTemplateArgument() const
856{
857 for (const Token* tok = this; tok; tok = tok->next()) {
858 if (tok->str() == ",")
859 return tok->next();
860 if (tok->link() && Token::Match(tok, "(|{|[|<"))
861 tok = tok->link();
862 else if (Token::Match(tok, ">|;"))
863 return nullptr;
864 }
865 return nullptr;
866}
867
868static bool isOperator(const Token *tok)
869{

Callers 4

arrayDimensionsMethod · 0.80
parsedeclFunction · 0.80
evaluateTemplateArgsFunction · 0.80
if_findMethod · 0.80

Calls 2

nextMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected