Skip to content
Snippets Groups Projects
Commit 9898a5e0 authored by Christian Kamm's avatar Christian Kamm
Browse files

C++: Fix bug in findMatchingDefinition.

In strict mode, don't give up after the first Document with candidates.

Change-Id: I62ba59708a3501b31f79d979b1a85bede875eccb
Reviewed-on: http://codereview.qt-project.org/5142


Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent cccad743
No related branches found
No related tags found
No related merge requests found
......@@ -844,9 +844,11 @@ Symbol *Snapshot::findMatchingDefinition(Symbol *declaration, bool strict) const
}
}
if (!strict && ! best)
best = viableFunctions.first();
if (strict && ! best)
continue;
if (! best)
best = viableFunctions.first();
return best;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment