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

Function getFunctionArguments

lib/templatesimplifier.cpp:742–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740}
741
742static void getFunctionArguments(const Token* nameToken, std::vector<const Token*>& args)
743{
744 const Token* functionToken = getFunctionToken(nameToken);
745 if (!functionToken)
746 return;
747
748 const Token* argToken = functionToken->next();
749
750 if (argToken->str() == ")")
751 return;
752
753 args.push_back(argToken);
754
755 while ((argToken = argToken->nextArgumentBeforeCreateLinks2()))
756 args.push_back(argToken);
757}
758
759static bool isConstMethod(const Token* nameToken)
760{

Callers 4

specMatchFunction · 0.85
simplifyTemplatesMethod · 0.85

Calls 5

getFunctionTokenFunction · 0.85
nextMethod · 0.80
strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected