Skip to content

Commit d9d4e1a

Browse files
author
Davide Italiano
committed
---
yaml --- r: 319462 b: refs/heads/master-rebranch c: 433f6bf h: refs/heads/master
1 parent 135831d commit d9d4e1a

File tree

4 files changed

+2
-34
lines changed

4 files changed

+2
-34
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14571457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14581458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14591459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460-
refs/heads/master-rebranch: 353eed70c4494bba589a735ec243fed6b3972d48
1460+
refs/heads/master-rebranch: 433f6bf5165a16213e37e95ab79b484f3195d074

branches/master-rebranch/lib/IRGen/GenDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,7 @@ static std::string getDynamicReplacementSomeSection(IRGenModule &IGM) {
13311331
case llvm::Triple::Wasm:
13321332
sectionName = "swift5_replac2";
13331333
break;
1334+
case llvm::Triple::XCOFF:
13341335
case llvm::Triple::COFF:
13351336
sectionName = ".sw5reps$B";
13361337
break;

branches/master-rebranch/test/SourceKit/CodeFormat/indent-switch.swift

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@ func foo3() {
4141
println("It's something else")
4242
}
4343
}
44-
45-
func foo4() {
46-
var test : Int = 1
47-
switch test {
48-
case 0:
49-
print()
50-
case 1:
51-
break
52-
default:
53-
break
54-
}
55-
}
56-
5744
// RUN: %sourcekitd-test -req=format -line=3 -length=1 %s >%t.response
5845
// RUN: %sourcekitd-test -req=format -line=4 -length=1 %s >>%t.response
5946
// RUN: %sourcekitd-test -req=format -line=5 -length=1 %s >>%t.response
@@ -89,15 +76,6 @@ func foo4() {
8976
// RUN: %sourcekitd-test -req=format -line=41 -length=1 %s >>%t.response
9077
// RUN: %sourcekitd-test -req=format -line=42 -length=1 %s >>%t.response
9178

92-
// RUN: %sourcekitd-test -req=format -req-opts=indent_switch_case=1 -line=47 -length=1 %s >>%t.response
93-
// RUN: %sourcekitd-test -req=format -req-opts=indent_switch_case=1 -line=48 -length=1 %s >>%t.response
94-
// RUN: %sourcekitd-test -req=format -req-opts=indent_switch_case=1 -line=49 -length=1 %s >>%t.response
95-
// RUN: %sourcekitd-test -req=format -req-opts=indent_switch_case=1 -line=50 -length=1 %s >>%t.response
96-
// RUN: %sourcekitd-test -req=format -req-opts=indent_switch_case=1 -line=51 -length=1 %s >>%t.response
97-
// RUN: %sourcekitd-test -req=format -req-opts=indent_switch_case=1 -line=52 -length=1 %s >>%t.response
98-
// RUN: %sourcekitd-test -req=format -req-opts=indent_switch_case=1 -line=53 -length=1 %s >>%t.response
99-
// RUN: %sourcekitd-test -req=format -req-opts=indent_switch_case=1 -line=54 -length=1 %s >>%t.response
100-
10179
// RUN: %FileCheck --strict-whitespace %s <%t.response
10280

10381
// CHECK: key.sourcetext: " switch (test) {"
@@ -134,12 +112,3 @@ func foo4() {
134112
// CHECK: key.sourcetext: " default:"
135113
// CHECK: key.sourcetext: " println(\"It's something else\")"
136114
// CHECK: key.sourcetext: " }"
137-
138-
// CHECK: key.sourcetext: " switch test {"
139-
// CHECK: key.sourcetext: " case 0:"
140-
// CHECK: key.sourcetext: " print()"
141-
// CHECK: key.sourcetext: " case 1:"
142-
// CHECK: key.sourcetext: " break"
143-
// CHECK: key.sourcetext: " default:"
144-
// CHECK: key.sourcetext: " break"
145-
// CHECK: key.sourcetext: " }"

branches/master-rebranch/tools/SourceKit/lib/SwiftLang/SwiftEditor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,12 +1904,10 @@ void SwiftEditorDocument::applyFormatOptions(OptionsDictionary &FmtOptions) {
19041904
static UIdent KeyUseTabs("key.editor.format.usetabs");
19051905
static UIdent KeyIndentWidth("key.editor.format.indentwidth");
19061906
static UIdent KeyTabWidth("key.editor.format.tabwidth");
1907-
static UIdent KeyIndentSwitchCase("key.editor.format.indent_switch_case");
19081907

19091908
FmtOptions.valueForOption(KeyUseTabs, Impl.FormatOptions.UseTabs);
19101909
FmtOptions.valueForOption(KeyIndentWidth, Impl.FormatOptions.IndentWidth);
19111910
FmtOptions.valueForOption(KeyTabWidth, Impl.FormatOptions.TabWidth);
1912-
FmtOptions.valueForOption(KeyIndentSwitchCase, Impl.FormatOptions.IndentSwitchCase);
19131911
}
19141912

19151913
const CodeFormatOptions &SwiftEditorDocument::getFormatOptions() {

0 commit comments

Comments
 (0)