forked from qt-creator/qt-creator
C++: fix support for typedef of templated typedefs
Fix: * code completion * follow symbols * find usages Task-number: QTCREATORBUG-8375 Change-Id: Ia40273fec3dead76acad4695b852a9e53065d8a7 Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
b782d191cf
commit
564c9b2842
@@ -690,8 +690,15 @@ bool ResolveExpression::visit(CallAST *ast)
|
||||
}
|
||||
|
||||
} else if (Function *funTy = ty->asFunctionType()) {
|
||||
if (maybeValidPrototype(funTy, actualArgumentCount))
|
||||
addResult(funTy->returnType().simplified(), scope);
|
||||
if (maybeValidPrototype(funTy, actualArgumentCount)) {
|
||||
LookupItem item;
|
||||
item.setType(funTy->returnType().simplified());
|
||||
item.setScope(scope);
|
||||
// we have to remember a binding because it can be a template instantiation
|
||||
item.setBinding(result.binding());
|
||||
|
||||
_results.append(item);
|
||||
}
|
||||
|
||||
} else if (Class *classTy = ty->asClassType()) {
|
||||
// Constructor call
|
||||
|
||||
Reference in New Issue
Block a user