forked from qt-creator/qt-creator
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:
committed by
Thorbjørn Lindeijer
parent
9839dea6bc
commit
4bbb9219e9
@@ -645,6 +645,7 @@ ResolveExpression::resolveBaseExpression(const QList<Result> &baseResults, int a
|
|||||||
foreach (Symbol *typedefCandidate, typedefCandidates) {
|
foreach (Symbol *typedefCandidate, typedefCandidates) {
|
||||||
if (typedefCandidate->isTypedef() && typedefCandidate->type()->isNamedType()) {
|
if (typedefCandidate->isTypedef() && typedefCandidate->type()->isNamedType()) {
|
||||||
ty = typedefCandidate->type();
|
ty = typedefCandidate->type();
|
||||||
|
lastVisibleSymbol = typedefCandidate;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user