mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Intro -Rmodule-recovery to remark about silent errors
Deserialization recovery silently drops errors and the affected decls. This can lead to surprises when a function from an imported module simply disappears without an explanation. This commit introduces the flag -Rmodule-recovery to report as remarks some of these previously silently dropped issues. It can be used to debug project configuration issues.
This commit is contained in:
@@ -388,7 +388,10 @@ def emit_cross_import_remarks : Flag<["-"], "Rcross-import">,
|
||||
|
||||
def remark_loading_module : Flag<["-"], "Rmodule-loading">,
|
||||
Flags<[FrontendOption, DoesNotAffectIncrementalBuild]>,
|
||||
HelpText<"Emit a remark and file path of each loaded module">;
|
||||
HelpText<"Emit remarks about loaded module">;
|
||||
def remark_module_recovery : Flag<["-"], "Rmodule-recovery">,
|
||||
Flags<[FrontendOption, DoesNotAffectIncrementalBuild]>,
|
||||
HelpText<"Emit remarks about contextual inconsistencies in loaded modules">;
|
||||
|
||||
def remark_indexing_system_module : Flag<["-"], "Rindexing-system-module">,
|
||||
Flags<[FrontendOption, DoesNotAffectIncrementalBuild]>,
|
||||
|
||||
Reference in New Issue
Block a user