Skip to content

Commit 92fc7db

Browse files
committed
Merge pull request #1306 from practicalswift/remove-some-double-spaces
[gardening] Fix accidental double spaces
2 parents fadbd81 + 9eb2ee0 commit 92fc7db

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

test/Constraints/array_literal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct DoubleList : ArrayLiteralConvertible {
1010
init(arrayLiteral elements: Double...) {}
1111
}
1212

13-
struct IntDict : ArrayLiteralConvertible {
13+
struct IntDict : ArrayLiteralConvertible {
1414
typealias Element = (String, Int)
1515
init(arrayLiteral elements: Element...) {}
1616
}

test/DebugInfo/bbentry-location.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ActionViewController
88
{
99
var imageView: UIImageView!
1010
func viewDidLoad(inputItems: [AnyObject]) {
11-
for item: AnyObject in inputItems {
11+
for item: AnyObject in inputItems {
1212
let inputItem = item as! NSExtensionItem
1313
for provider: AnyObject in inputItem.attachments! {
1414
let itemProvider = provider as! NSItemProvider

test/Generics/associated_self_constraints.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Subject<T>: Observer, Observable {
3838
// Observable implementation
3939

4040
func subscribe<O: Observer where O.Value == T>(observer: O) -> Any {
41-
self.onNextFunc = { (item: T) -> Void in
41+
self.onNextFunc = { (item: T) -> Void in
4242
observer.onNext(item)
4343
}
4444

test/IDE/annotation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ extension C12.Inn {}
286286
// CHECK: extension <TypeAlias@[[@LINE-4]]:11>AliasC12</TypeAlias>.<TypeAlias@[[@LINE-6]]:13>AliasInn</TypeAlias> {}
287287
extension AliasC12.AliasInn {}
288288

289-
typealias AliasPH = C12
289+
typealias AliasPH = C12
290290
func testPH(x: Int) {}
291291
func testPH(x: AliasPH) {}
292292
// CHECK: <Func@[[@LINE-1]]:6>testPH</Func>(<#T##x: AliasPH##AliasPH##C12#>)

test/IDE/complete_init.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protocol I : G {
5252

5353
typealias J = A
5454

55-
struct K {
55+
struct K {
5656
typealias X = A
5757
struct Y {}
5858
}

test/Inputs/clang-importer-sdk/usr/include/Foundation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,5 +1006,5 @@ extern NSString *NSHTTPRequestKey;
10061006
-(void)messageSomeObject:(nonnull id)object selector:(SEL)selector;
10071007
@end
10081008

1009-
#define NSTimeIntervalSince1970 978307200.0
1009+
#define NSTimeIntervalSince1970 978307200.0
10101010
#define NS_DO_SOMETHING 17

test/Interpreter/generics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class Base {
102102
}
103103

104104
class D1 : Base {
105-
required init() {}
105+
required init() {}
106106
override func map() {
107107
v = 2
108108
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// RUN: %target-parse-verify-swift
22

33
// This file does not end in a trailing newline; this is deliberate!
4-
/* unterminated block comment expected-note{{comment started here}} expected-error{{unterminated '/*' comment}}{{127-127=*/}}
4+
/* unterminated block comment expected-note{{comment started here}} expected-error{{unterminated '/*' comment}}{{127-127=*/}}

test/SILGen/Inputs/usr/include/BridgeTestFoundation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ void noescapeNonnullBlock(__attribute__((noescape)) void (^_Nonnull block)(void)
8787
void escapeNonnullBlock(void (^_Nonnull block)(void));
8888

8989
void noescapeBlockAlias(__attribute__((noescape)) dispatch_block_t block);
90-
void noescapeNonnullBlockAlias(__attribute__((noescape)) _Nonnull dispatch_block_t block);
91-
void escapeBlockAlias(dispatch_block_t block);
90+
void noescapeNonnullBlockAlias(__attribute__((noescape)) _Nonnull dispatch_block_t block);
91+
void escapeBlockAlias(dispatch_block_t block);

test/SILGen/Inputs/usr/include/Gizmo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct NSRect NSMakeRect(double, double, double, double);
9696
struct NSRect NSInsetRect(struct NSRect, double, double);
9797
NSString *NSStringFromRect(struct NSRect r);
9898

99-
typedef NS_ENUM(NSInteger, NSRuncingOptions) {
99+
typedef NS_ENUM(NSInteger, NSRuncingOptions) {
100100
NSRuncingMince = 123,
101101
NSRuncingQuinceSliced = 4567,
102102
NSRuncingQuinceJulienned = 5678,

test/SILOptimizer/cast_foldings.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ sil @function_cast_throw_to_throw : $@convention(thin) <T> () -> () {
8484
// CHECK-NEXT: store %{{.*}} to %0 : $*AClass
8585
sil @function_ref_cast_promote : $@convention(thin) (@out AClass, @in AnyObject) -> () {
8686
bb0(%0 : $*AClass, %1 : $*AnyObject):
87-
unchecked_ref_cast_addr AnyObject in %1 : $*AnyObject to AClass in %0 : $*AClass
87+
unchecked_ref_cast_addr AnyObject in %1 : $*AnyObject to AClass in %0 : $*AClass
8888
%4 = tuple ()
8989
return %4 : $()
9090
}
@@ -98,7 +98,7 @@ bb0:
9898
%1 = alloc_stack $S
9999
store %0 to %1 : $*S
100100
%4 = alloc_stack $AnyObject
101-
unchecked_ref_cast_addr S in %1 : $*S to AnyObject in %4 : $*AnyObject
101+
unchecked_ref_cast_addr S in %1 : $*S to AnyObject in %4 : $*AnyObject
102102
%6 = load %4 : $*AnyObject
103103
dealloc_stack %4 : $*AnyObject
104104
dealloc_stack %1 : $*S

test/SILOptimizer/definite_init_crashes.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct Single {
3232
}
3333

3434
// CHECK-LABEL: sil @SingleTest
35-
sil @SingleTest : $@convention(method) (@inout Single, Int) -> Single {
35+
sil @SingleTest : $@convention(method) (@inout Single, Int) -> Single {
3636
bb0(%0 : $*Single, %1 : $Int):
3737
%4 = alloc_box $Single
3838
%4a = project_box %4 : $@box Single

test/SILOptimizer/escape_analysis.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ bb0(%0 : $AnyObject):
939939
// CHECK-NEXT: End
940940
sil @test_unchecked_ref_cast_addr : $@convention(thin) <T, U> (@out U, @in T, @thick U.Type) -> () {
941941
bb0(%0 : $*U, %1 : $*T, %2 : $@thick U.Type):
942-
unchecked_ref_cast_addr T in %1 : $*T to U in %0 : $*U
942+
unchecked_ref_cast_addr T in %1 : $*T to U in %0 : $*U
943943
%5 = tuple ()
944944
return %5 : $()
945945
}

test/SILOptimizer/spec_recursion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ x1.new_method(<, left: 0, right: 1)
1313

1414
struct Test<T> {
1515
init() {}
16-
func recursive(x x : T) {
16+
func recursive(x x : T) {
1717
return recursive(x: x)
1818
}
1919
}

utils/build-script-impl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,9 @@ while [[ "$1" ]] ; do
522522
if [[ "${dashless}" == *=* ]] ; then # if there's an '=', the value
523523
value="${dashless#*=}" # is everything after the first '='
524524
elif [[ "$2" ]] && [[ "${2:0:1}" != "-" ]] ; then # else if the next parameter exists
525-
value="$2" # but isn't an option, use that
525+
value="$2" # but isn't an option, use that
526526
shift
527-
else # otherwise, the value is 1
527+
else # otherwise, the value is 1
528528
value=1
529529
fi
530530

0 commit comments

Comments
 (0)