Skip to content

Commit f6398cd

Browse files
author
Harlan Haskins
committed
---
yaml --- r: 340663 b: refs/heads/rxwei-patch-1 c: 57f5173 h: refs/heads/master i: 340661: 552ce32 340659: 6ecd9d0 340655: f838d5d
1 parent 04e0354 commit f6398cd

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: 889e43076f401a877f666fab1f23b13273748601
1018+
refs/heads/rxwei-patch-1: 57f517317d4c3f790a3245a5891e549e43e7e3c9
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/include/swift/Frontend/ParseableInterfaceSupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ModuleDecl;
2929
struct ParseableInterfaceOptions {
3030
/// Should we prefer printing TypeReprs when writing out types in a module
3131
/// interface, or should we fully-qualify them?
32-
bool PreserveTypesAsWrittenInModuleInterface = false;
32+
bool PreserveTypesAsWritten = false;
3333

3434
/// Copy of all the command-line flags passed at .swiftinterface
3535
/// generation time, re-applied to CompilerInvocation when reading

branches/rxwei-patch-1/include/swift/Option/FrontendOptions.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,10 @@ def build_module_from_parseable_interface :
535535
Alias<compile_module_from_interface>,
536536
ModeOpt;
537537

538-
def preserve_types_as_written_in_module_interface :
539-
Flag<["-"], "preserve-types-as-written-in-module-interface">,
540-
HelpText<"When emitting a module interface, preserve the types as they were "
541-
"written in the source, rather than fully-qualifying them.">;
538+
def module_interface_preserve_types_as_written :
539+
Flag<["-"], "module-interface-preserve-types-as-written">,
540+
HelpText<"When emitting a module interface, preserve types as they were "
541+
"written in the source">;
542542

543543
def prebuilt_module_cache_path :
544544
Separate<["-"], "prebuilt-module-cache-path">,

branches/rxwei-patch-1/lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ static void ParseParseableInterfaceArgs(ParseableInterfaceOptions &Opts,
201201
ArgList &Args) {
202202
using namespace options;
203203

204-
Opts.PreserveTypesAsWrittenInModuleInterface |=
205-
Args.hasArg(OPT_preserve_types_as_written_in_module_interface);
204+
Opts.PreserveTypesAsWritten |=
205+
Args.hasArg(OPT_module_interface_preserve_types_as_written);
206206
}
207207

208208
/// Save a copy of any flags marked as ModuleInterfaceOption, if running

branches/rxwei-patch-1/lib/Frontend/ParseableInterfaceSupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ bool swift::emitParseableInterface(raw_ostream &out,
412412
printImports(out, M);
413413

414414
const PrintOptions printOptions = PrintOptions::printParseableInterfaceFile(
415-
Opts.PreserveTypesAsWrittenInModuleInterface);
415+
Opts.PreserveTypesAsWritten);
416416
InheritedProtocolCollector::PerTypeMap inheritedProtocolMap;
417417

418418
SmallVector<Decl *, 16> topLevelDecls;

branches/rxwei-patch-1/test/ParseableInterface/preserve-type-repr.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -typecheck -emit-module-interface-path - %s -enable-library-evolution -module-name PreferTypeRepr -preserve-types-as-written-in-module-interface | %FileCheck %s --check-prefix PREFER
1+
// RUN: %target-swift-frontend -typecheck -emit-module-interface-path - %s -enable-library-evolution -module-name PreferTypeRepr -module-interface-preserve-types-as-written | %FileCheck %s --check-prefix PREFER
22
// RUN: %target-swift-frontend -typecheck -emit-module-interface-path - %s -enable-library-evolution -module-name PreferTypeRepr | %FileCheck %s --check-prefix DONTPREFER
33

44
public protocol Pet {}

0 commit comments

Comments
 (0)