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

Method nextArgumentBeforeCreateLinks2

lib/token.cpp:838–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836}
837
838const Token* Token::nextArgumentBeforeCreateLinks2() const
839{
840 for (const Token* tok = this; tok; tok = tok->next()) {
841 if (tok->str() == ",")
842 return tok->next();
843 if (tok->link() && Token::Match(tok, "(|{|["))
844 tok = tok->link();
845 else if (tok->str() == "<") {
846 const Token* temp = tok->findClosingBracket();
847 if (temp)
848 tok = temp;
849 } else if (Token::Match(tok, ")|;"))
850 return nullptr;
851 }
852 return nullptr;
853}
854
855const Token* Token::nextTemplateArgument() const
856{

Callers 2

getFunctionArgumentsFunction · 0.80
setVarIdPass1Method · 0.80

Calls 3

nextMethod · 0.80
strMethod · 0.45
findClosingBracketMethod · 0.45

Tested by

no test coverage detected