Symbol database: Improved handling of array arguments (#4444)

This commit is contained in:
Robert Reif 2012-12-28 16:28:29 +01:00 committed by Daniel Marjamäki
parent de2c133f6a
commit 5ba2a300af
1 changed files with 4 additions and 0 deletions

View File

@ -1017,12 +1017,16 @@ bool Function::argsMatch(const Scope *scope, const Token *first, const Token *se
second = second->next();
else if (first->next()->str() == ")" && second->next()->str() != ")")
second = second->next();
else if (first->next()->str() == "[" && second->next()->str() != "[")
second = second->next();
// function missing variable name
else if (second->next()->str() == "," && first->next()->str() != ",")
first = first->next();
else if (second->next()->str() == ")" && first->next()->str() != ")")
first = first->next();
else if (second->next()->str() == "[" && first->next()->str() != "[")
first = first->next();
// argument list has different number of arguments
else if (second->str() == ")")