Rename DeclContext::getLookupContext to getRedeclContext and change its semantics slightly. No functionality change in the absence of inline namespaces. Also, change a few places where inline namespaces actually make a difference to be prepared for them.
llvm-svn: 112563
This commit is contained in:
@@ -388,7 +388,7 @@ unsigned CodeCompletionResult::getPriorityFromDecl(NamedDecl *ND) {
|
||||
return CCP_Unlikely;
|
||||
|
||||
// Context-based decisions.
|
||||
DeclContext *DC = ND->getDeclContext()->getLookupContext();
|
||||
DeclContext *DC = ND->getDeclContext()->getRedeclContext();
|
||||
if (DC->isFunctionOrMethod() || isa<BlockDecl>(DC))
|
||||
return CCP_LocalDeclaration;
|
||||
if (DC->isRecord() || isa<ObjCContainerDecl>(DC))
|
||||
|
||||
Reference in New Issue
Block a user