mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NameLookup] Plumb source location arguments through all name lookup APIs.
This source location will be used to determine whether to add a name lookup option to exclude macro expansions when the name lookup request is constructed. Currently, the source location argument is unused.
This commit is contained in:
@@ -181,7 +181,7 @@ diagnoseIfModuleImportsShadowingDecl(ModuleInterfaceOptions const &Opts,
|
||||
SmallVector<ValueDecl *, 4> decls;
|
||||
lookupInModule(importedModule, importingModule->getName(), decls,
|
||||
NLKind::UnqualifiedLookup, ResolutionKind::TypesOnly,
|
||||
importedModule,
|
||||
importedModule, SourceLoc(),
|
||||
NL_UnqualifiedDefault | NL_IncludeUsableFromInline);
|
||||
for (auto decl : decls)
|
||||
diagnoseDeclShadowsModule(Opts, cast<TypeDecl>(decl), importingModule,
|
||||
|
||||
Reference in New Issue
Block a user