forked from qt-creator/qt-creator
CPlusPlus: Revert name minimization fix
This effetively reverts 87ec0f349f, which had unwanted side effects.
Change-Id: I03438c18f43b07a6560416af746132bc4471fbb7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -217,13 +217,7 @@ QList<const Name *> LookupContext::fullyQualifiedName(Symbol *symbol, InlineName
|
||||
{
|
||||
QList<const Name *> qualifiedName = path(symbol->enclosingScope(), policy);
|
||||
QList<const Name *> symbolNames;
|
||||
addNames(symbol->name(), &symbolNames, /*add all names*/ true);
|
||||
if (const UsingDeclaration * const usingDecl = symbol->asUsingDeclaration()) {
|
||||
if (!symbolNames.isEmpty())
|
||||
qualifiedName << symbolNames.last();
|
||||
} else {
|
||||
qualifiedName << symbolNames;
|
||||
}
|
||||
addNames(symbol->name(), &qualifiedName, /*add all names*/ true);
|
||||
return qualifiedName;
|
||||
}
|
||||
|
||||
@@ -818,7 +812,7 @@ void CreateBindings::lookupInScope(const Name *name, Scope *scope,
|
||||
continue; // skip using namespace directives
|
||||
else if (! id->match(s->identifier()))
|
||||
continue;
|
||||
else if (s->name() && s->name()->isQualifiedNameId() && !s->asUsingDeclaration())
|
||||
else if (s->name() && s->name()->isQualifiedNameId())
|
||||
continue; // skip qualified ids.
|
||||
|
||||
if (Q_UNLIKELY(debug)) {
|
||||
|
||||
Reference in New Issue
Block a user