Merge pull request #25419 from harlanhaskins/property-reprs

[ModuleInterface] Qualify all types in module interfaces
This commit is contained in:
Harlan Haskins
2019-06-14 14:23:08 -07:00
committed by GitHub
32 changed files with 300 additions and 203 deletions

View File

@@ -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);