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

Search symbols also in enum scopes.

parent 3f1b45b0
......@@ -1276,7 +1276,7 @@ void CppCodeCompletion::completeNamespace(const QList<Symbol *> &candidates,
}
foreach (Scope *scope, todo) {
if (! scope->isNamespaceScope())
if (! (scope->isNamespaceScope() || scope->isEnumScope()))
continue;
addCompletionItem(scope->owner());
......@@ -1300,7 +1300,7 @@ void CppCodeCompletion::completeClass(const QList<Symbol *> &candidates,
context.expand(klass->members(), context.visibleScopes(), &todo);
foreach (Scope *scope, todo) {
if (! scope->isClassScope())
if (! (scope->isClassScope() || scope->isEnumScope()))
continue;
addCompletionItem(scope->owner());
......
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