Merge branch 'main' into elsh/pkg-sil-verify

This commit is contained in:
Ellie Shin
2024-04-17 22:46:55 -07:00
committed by GitHub
604 changed files with 9702 additions and 3715 deletions

View File

@@ -1279,6 +1279,11 @@ void collectParsedExportedImports(const ModuleDecl *M,
llvm::SmallDenseMap<ModuleDecl *, SmallPtrSet<Decl *, 4>, 4> &QualifiedImports,
llvm::function_ref<bool(AttributedImport<ImportedModule>)> includeImport = nullptr);
/// If the import that would make the given declaration visibile is absent,
/// emit a diagnostic and a fix-it suggesting adding the missing import.
bool diagnoseMissingImportForMember(const ValueDecl *decl,
const DeclContext *dc, SourceLoc loc);
} // end namespace swift
#endif