Commit ffa66f4f authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed the global completion to include the injected class name and user types.

parent f579e266
......@@ -941,7 +941,7 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope)
if (symbols.first()->isNamespace())
completeNamespace(currentBinding);
else
completeClass(currentBinding, false);
completeClass(currentBinding);
}
}
......@@ -1440,6 +1440,8 @@ void CppCodeCompletion::completeClass(ClassOrNamespace *b, bool staticLookup)
scopesVisited.insert(scope);
addCompletionItem(scope->owner()); // add a completion item for the injected class name.
for (Scope::iterator it = scope->firstSymbol(); it != scope->lastSymbol(); ++it) {
Symbol *member = *it;
if (member->isFriend())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment