forked from qt-creator/qt-creator
Fixed the return type for objc_msg_send expressions.
This commit is contained in:
@@ -669,8 +669,11 @@ bool ResolveExpression::visit(ObjCMessageExpressionAST *ast)
|
||||
}
|
||||
}
|
||||
|
||||
if (binding)
|
||||
addResults(binding->lookup(ast->selector->name));
|
||||
if (binding) {
|
||||
foreach (Symbol *s, binding->lookup(ast->selector->name))
|
||||
if (ObjCMethod *m = s->asObjCMethod())
|
||||
addResult(m->returnType(), result.scope());
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user