sema: diagnose importation from disallowed modules

This commit is contained in:
Xi Ge
2022-11-25 22:22:50 -08:00
parent 67bbab7e02
commit c3db946517
5 changed files with 54 additions and 0 deletions

View File

@@ -424,6 +424,7 @@ public:
ArrayRef<Identifier> getAllowableClientNames() const {
return allowableClientNames;
}
bool allowImportedBy(ModuleDecl *importer) const;
private:
/// An array of module names that are allowed to import this one.