From 4bbb9219e9c29af8abad5eedc394dc9472d67e29 Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Tue, 8 Dec 2009 11:05:57 +0100 Subject: [PATCH] Fixed completion when a typedef symbol is used as class name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For example std::string, which is a typedef of std::basic_string. Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> --- src/libs/cplusplus/ResolveExpression.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/cplusplus/ResolveExpression.cpp b/src/libs/cplusplus/ResolveExpression.cpp index 9333d064e91..46403036ae2 100644 --- a/src/libs/cplusplus/ResolveExpression.cpp +++ b/src/libs/cplusplus/ResolveExpression.cpp @@ -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; } } -- GitLab