From 5ba2a300af6c6ce485f6f5d1c9527b06eccd93ad Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Fri, 28 Dec 2012 16:28:29 +0100 Subject: [PATCH] Symbol database: Improved handling of array arguments (#4444) --- lib/symboldatabase.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index a2e64b550..6b147fa32 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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() == ")")