mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Remark on transitive dependencies
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "ModuleFormat.h"
|
||||
#include "swift/Serialization/SerializationOptions.h"
|
||||
#include "swift/Subsystems.h"
|
||||
#include "swift/AST/DiagnosticsSema.h"
|
||||
#include "swift/AST/ASTContext.h"
|
||||
#include "swift/AST/ASTMangler.h"
|
||||
#include "swift/AST/GenericSignature.h"
|
||||
@@ -197,6 +198,14 @@ Status ModuleFile::associateWithFileContext(FileUnit *file, SourceLoc diagLoc,
|
||||
ModuleLoadingBehavior transitiveBehavior =
|
||||
getTransitiveLoadingBehavior(dependency);
|
||||
|
||||
if (ctx.LangOpts.EnableModuleLoadingRemarks) {
|
||||
ctx.Diags.diagnose(diagLoc,
|
||||
diag::transitive_dependency_behavior,
|
||||
dependency.Core.getPrettyPrintedPath(),
|
||||
M->getName(),
|
||||
unsigned(transitiveBehavior));
|
||||
}
|
||||
|
||||
// Skip this dependency?
|
||||
if (transitiveBehavior == ModuleLoadingBehavior::Ignored)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user