forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.14'
Change-Id: I5e138bb7883c0436fee14ca6af20e99396676af1
This commit is contained in:
@@ -8037,7 +8037,9 @@ private:
|
||||
const QList<LookupItem> localLookup = m_context.lookup(ast->name->name, scope);
|
||||
QList<const Name *> longestName;
|
||||
for (const LookupItem &item : localLookup) {
|
||||
QList<const Name *> names = m_context.fullyQualifiedName(item.declaration());
|
||||
QList<const Name *> names
|
||||
= m_context.fullyQualifiedName(item.declaration(),
|
||||
LookupContext::HideInlineNamespaces);
|
||||
if (names.length() > longestName.length())
|
||||
longestName = names;
|
||||
}
|
||||
@@ -8073,8 +8075,9 @@ private:
|
||||
|
||||
const QList<LookupItem> lookups = m_context.lookup(wantToLookup, scope);
|
||||
if (!lookups.empty()) {
|
||||
QList<const Name *> fullName = m_context.fullyQualifiedName(
|
||||
lookups.first().declaration());
|
||||
QList<const Name *> fullName
|
||||
= m_context.fullyQualifiedName(lookups.first().declaration(),
|
||||
LookupContext::HideInlineNamespaces);
|
||||
const int currentNameCount = countNames(wantToLookup);
|
||||
const bool needNamespace = needMissingNamespaces(std::move(fullName),
|
||||
currentNameCount);
|
||||
|
||||
Reference in New Issue
Block a user