Symbol database: Improved handling of array arguments (#4444)
This commit is contained in:
parent
de2c133f6a
commit
5ba2a300af
|
@ -1017,12 +1017,16 @@ bool Function::argsMatch(const Scope *scope, const Token *first, const Token *se
|
||||||
second = second->next();
|
second = second->next();
|
||||||
else if (first->next()->str() == ")" && second->next()->str() != ")")
|
else if (first->next()->str() == ")" && second->next()->str() != ")")
|
||||||
second = second->next();
|
second = second->next();
|
||||||
|
else if (first->next()->str() == "[" && second->next()->str() != "[")
|
||||||
|
second = second->next();
|
||||||
|
|
||||||
// function missing variable name
|
// function missing variable name
|
||||||
else if (second->next()->str() == "," && first->next()->str() != ",")
|
else if (second->next()->str() == "," && first->next()->str() != ",")
|
||||||
first = first->next();
|
first = first->next();
|
||||||
else if (second->next()->str() == ")" && first->next()->str() != ")")
|
else if (second->next()->str() == ")" && first->next()->str() != ")")
|
||||||
first = first->next();
|
first = first->next();
|
||||||
|
else if (second->next()->str() == "[" && first->next()->str() != "[")
|
||||||
|
first = first->next();
|
||||||
|
|
||||||
// argument list has different number of arguments
|
// argument list has different number of arguments
|
||||||
else if (second->str() == ")")
|
else if (second->str() == ")")
|
||||||
|
|
Loading…
Reference in New Issue