mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add -Rcross-import option
It is an optional, user-accessible mechanism to have the compiler tell you what it’s cross-importing. Resolves rdar://problem/60381893
This commit is contained in:
@@ -914,6 +914,11 @@ void ImportResolver::findCrossImports(
|
||||
declaringImport.module.second->getName(),
|
||||
bystandingImport.module.second->getName(), name);
|
||||
|
||||
if (ctx.LangOpts.EnableCrossImportRemarks)
|
||||
ctx.Diags.diagnose(I.importLoc, diag::cross_import_added,
|
||||
declaringImport.module.second->getName(),
|
||||
bystandingImport.module.second->getName(), name);
|
||||
|
||||
LLVM_DEBUG({
|
||||
auto &crossImportOptions = unboundImports.back().options;
|
||||
llvm::dbgs() << " ";
|
||||
|
||||
Reference in New Issue
Block a user