forked from qt-creator/qt-creator
C++: Fix highlighting of member on indirect specialization typedef
Missed a spot in ad4cb444fb
Task-number: QTCREATORBUG-14141
Change-Id: I1a6a25ce3e9c2a680e1b8eebec01a17749cdb026
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
e335fd4c13
commit
33d270976e
@@ -1222,16 +1222,19 @@ LookupScopePrivate *LookupScopePrivate::findNestedType(const Name *name, LookupS
|
||||
Declaration *decl = typedefit->second;
|
||||
if (_alreadyConsideredTypedefs.contains(decl))
|
||||
return 0;
|
||||
LookupScopePrivate *binding = 0;
|
||||
_alreadyConsideredTypedefs.insert(decl);
|
||||
if (const NamedType *namedTy = decl->type()->asNamedType()) {
|
||||
if (LookupScope *e = q->lookupType(namedTy->name()))
|
||||
return e->d;
|
||||
if (origin) {
|
||||
if (LookupScope *e = q->lookupType(namedTy->name())) {
|
||||
binding = e->d;
|
||||
} else if (origin) {
|
||||
if (LookupScope *e = origin->q->lookupType(namedTy->name()))
|
||||
return e->d;
|
||||
binding = e->d;
|
||||
}
|
||||
}
|
||||
_alreadyConsideredTypedefs.remove(decl);
|
||||
if (binding)
|
||||
return binding;
|
||||
}
|
||||
|
||||
auto it = _nestedScopes.find(name);
|
||||
|
||||
Reference in New Issue
Block a user