forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.8' into HEAD
Conflicts: src/libs/cplusplus/FindUsages.cpp tests/auto/cplusplus/findusages/tst_findusages.cpp tests/auto/debugger/tst_dumpers.cpp Change-Id: I20e2002c7b25cc25d8120922fa9b52e59db498e3
This commit is contained in:
@@ -233,7 +233,15 @@ bool FindUsages::checkCandidates(const QList<LookupItem> &candidates) const
|
||||
if (scopeOfTemplEnclosingCandidateSymbol != scopeOfTemplEnclosingDeclSymbol)
|
||||
return false;
|
||||
} else if (s->enclosingScope()->isTemplate() && ! _declSymbol->isTypenameArgument()) {
|
||||
if (s->enclosingScope()->enclosingScope() != _declSymbol->enclosingScope())
|
||||
if (_declSymbol->enclosingScope()->isTemplate()) {
|
||||
if (s->enclosingScope()->enclosingScope() != _declSymbol->enclosingScope()->enclosingScope())
|
||||
return false;
|
||||
} else {
|
||||
if (s->enclosingScope()->enclosingScope() != _declSymbol->enclosingScope())
|
||||
return false;
|
||||
}
|
||||
} else if (_declSymbol->enclosingScope()->isTemplate() && s->isTemplate()) {
|
||||
if (_declSymbol->enclosingScope()->enclosingScope() != s->enclosingScope())
|
||||
return false;
|
||||
} else if (! s->isUsingDeclaration()
|
||||
&& s->enclosingScope() != _declSymbol->enclosingScope()) {
|
||||
|
||||
Reference in New Issue
Block a user