SymbolDatabase::findFunction: Use getArguments utility function

This commit is contained in:
Daniel Marjamäki 2019-07-29 21:17:15 +02:00
parent 24ad434c52
commit cccbfaa0e4
1 changed files with 1 additions and 6 deletions

View File

@ -4098,12 +4098,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
if (!end)
return nullptr;
std::vector<const Token *> arguments;
// find all the arguments for this function call
for (const Token *arg = tok->tokAt(2); arg && arg != end; arg = arg->nextArgument()) {
arguments.push_back(arg);
}
const std::vector<const Token *> arguments = getArguments(tok);
std::vector<const Function *> matches;