More renaming

This commit is contained in:
Arnold Schwaighofer
2020-10-14 13:10:19 -07:00
parent 96a0d0e584
commit a725955823
6 changed files with 12 additions and 10 deletions

View File

@@ -145,7 +145,7 @@ void ModuleNameLookup<LookupStrategy>::lookupInModule(
const size_t initialCount = decls.size();
size_t currentCount = decls.size();
bool includeInlineable = options & NL_IncludeUsableFromInline;
bool includeUsableFromInline = options & NL_IncludeUsableFromInline;
auto updateNewDecls = [&](const DeclContext *moduleScopeContext) {
if (decls.size() == currentCount)
@@ -157,7 +157,8 @@ void ModuleNameLookup<LookupStrategy>::lookupInModule(
if (resolutionKind == ResolutionKind::TypesOnly && !isa<TypeDecl>(VD))
return true;
if (respectAccessControl &&
!VD->isAccessibleFrom(moduleScopeContext, false, includeInlineable))
!VD->isAccessibleFrom(moduleScopeContext, false,
includeUsableFromInline))
return true;
return false;
});