Fixed completion when a typedef symbol is used as class name

For example std::string, which is a typedef of std::basic_string.

Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
Roberto Raggi
2009-12-08 11:05:57 +01:00
committed by Thorbjørn Lindeijer
parent 9839dea6bc
commit 4bbb9219e9

View File

@@ -645,6 +645,7 @@ ResolveExpression::resolveBaseExpression(const QList<Result> &baseResults, int a
foreach (Symbol *typedefCandidate, typedefCandidates) {
if (typedefCandidate->isTypedef() && typedefCandidate->type()->isNamedType()) {
ty = typedefCandidate->type();
lastVisibleSymbol = typedefCandidate;
break;
}
}