mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] Introduce remarks about the source of each decl in API
Using `-Rmodule-api-import` the compiler prints a remark about the import bringing in every decl used in public function signatures or inlinable code. It also remarks on the source of conformances where they are used and the source of typealias underlying types.
This commit is contained in:
@@ -1021,6 +1021,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
|
||||
Opts.EnableModuleLoadingRemarks = Args.hasArg(OPT_remark_loading_module);
|
||||
Opts.EnableModuleRecoveryRemarks = Args.hasArg(OPT_remark_module_recovery);
|
||||
Opts.EnableModuleApiImportRemarks = Args.hasArg(OPT_remark_module_api_import);
|
||||
Opts.EnableMacroLoadingRemarks = Args.hasArg(OPT_remark_macro_loading);
|
||||
Opts.EnableIndexingSystemModuleRemarks = Args.hasArg(OPT_remark_indexing_system_module);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user