Move code completion for qualified name lookup (foo::) to

LookupVisibleDecls. Also, a function does not hide another function.

llvm-svn: 93421
This commit is contained in:
Douglas Gregor
2010-01-14 03:35:48 +00:00
parent 4700099719
commit 200c99dd1e
2 changed files with 8 additions and 1 deletions

View File

@@ -2354,7 +2354,8 @@ void Sema::CodeCompleteQualifiedId(Scope *S, const CXXScopeSpec &SS,
return;
ResultBuilder Results(*this);
CollectMemberLookupResults(Ctx, Ctx, Results);
CodeCompletionDeclConsumer Consumer(Results, CurContext);
LookupVisibleDecls(Ctx, LookupOrdinaryName, Consumer);
// The "template" keyword can follow "::" in the grammar, but only
// put it into the grammar if the nested-name-specifier is dependent.