Commit f3a3bf78 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

C++: Fixed crash.

Change-Id: Idec56cfced6e6eb2e0a78c4f242e7c81fec08692
Reviewed-by: default avatarTobias Hunger <>
parent efc428d3
......@@ -217,6 +217,9 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context,
QList<Declaration *> *argumentCountMatch,
QList<Declaration *> *nameMatch)
if (!functionType)
Scope *enclosingScope = functionType->enclosingScope();
while (! (enclosingScope->isNamespace() || enclosingScope->isClass()))
enclosingScope = enclosingScope->enclosingScope();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment