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:
@@ -626,7 +626,7 @@ bool Sema::ShouldEnterDeclaratorScope(Scope *S, const CXXScopeSpec &SS) {
|
||||
case NestedNameSpecifier::Namespace:
|
||||
// These are always namespace scopes. We never want to enter a
|
||||
// namespace scope from anything but a file context.
|
||||
return CurContext->getLookupContext()->isFileContext();
|
||||
return CurContext->getRedeclContext()->isFileContext();
|
||||
|
||||
case NestedNameSpecifier::Identifier:
|
||||
case NestedNameSpecifier::TypeSpec:
|
||||
|
||||
Reference in New Issue
Block a user