C++: Better resolution for typedef when resolving expr.

Example:
struct Bar { int m; };
typedef Bar *pBar;
pBar b;
b-> // completes correctly now

Change-Id: I97cc67579b955fe47c68ab6c35be9a054b6d1be9
Done-by: ckamm
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Leandro Melo
2011-11-17 12:42:02 +01:00
parent 38d90e58d0
commit cb45971778
2 changed files with 41 additions and 5 deletions

View File

@@ -485,8 +485,6 @@ void CreateBindings::lookupInScope(const Name *name, Scope *scope,
const TemplateNameId *templateId,
ClassOrNamespace *binding)
{
Q_UNUSED(templateId);
if (! name) {
return;