mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #25419 from harlanhaskins/property-reprs
[ModuleInterface] Qualify all types in module interfaces
This commit is contained in:
@@ -197,6 +197,14 @@ static void PrintArg(raw_ostream &OS, const char *Arg, StringRef TempDir) {
|
||||
OS << '"';
|
||||
}
|
||||
|
||||
static void ParseParseableInterfaceArgs(ParseableInterfaceOptions &Opts,
|
||||
ArgList &Args) {
|
||||
using namespace options;
|
||||
|
||||
Opts.PreserveTypesAsWritten |=
|
||||
Args.hasArg(OPT_module_interface_preserve_types_as_written);
|
||||
}
|
||||
|
||||
/// Save a copy of any flags marked as ModuleInterfaceOption, if running
|
||||
/// in a mode that is going to emit a .swiftinterface file.
|
||||
static void SaveParseableInterfaceArgs(ParseableInterfaceOptions &Opts,
|
||||
@@ -1306,6 +1314,7 @@ bool CompilerInvocation::parseArgs(
|
||||
return true;
|
||||
}
|
||||
|
||||
ParseParseableInterfaceArgs(ParseableInterfaceOpts, ParsedArgs);
|
||||
SaveParseableInterfaceArgs(ParseableInterfaceOpts, FrontendOpts,
|
||||
ParsedArgs, Diags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user