Skip to content

Commit d1d4feb

Browse files
committed
Merge pull request danmar#452 from Dmitry-Me/stopOnceFirstMatchIsFound
Don't proceed to outer scope once match is found
2 parents 561f555 + 23bfd21 commit d1d4feb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/symboldatabase.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,6 +2254,8 @@ void Function::addArguments(const SymbolDatabase *symbolDatabase, const Scope *s
22542254
break;
22552255
}
22562256
}
2257+
if (argType)
2258+
break;
22572259
parent = parent->nestedIn;
22582260
}
22592261
}

0 commit comments

Comments
 (0)