Skip to content

Commit 9ef8790

Browse files
Merge pull request #3070 from practicalswift/syntax-fixes
[gardening] Fix some spacing inconsistencies.
2 parents b45cdd3 + 4ae4e37 commit 9ef8790

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

stdlib/public/SDK/Dispatch/Dispatch.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static void _dispatch_overlay_constructor() {
156156
// DISPATCH_RUNTIME_STDLIB_INTERFACE
157157
// extern "C" dispatch_queue_t
158158
// _swift_apply_current_root_queue() {
159-
// return DISPATCH_APPLY_CURRENT_ROOT_QUEUE;
159+
// return DISPATCH_APPLY_CURRENT_ROOT_QUEUE;
160160
// }
161161

162162
#define SOURCE(t) \

stdlib/public/SDK/Foundation/Boxing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ internal enum _MutableUnmanagedWrapper<ImmutableType : NSObject, MutableType : N
6969

7070
internal protocol _SwiftNativeFoundationType : class {
7171
associatedtype ImmutableType : NSObject
72-
associatedtype MutableType : NSObject, NSMutableCopying
72+
associatedtype MutableType : NSObject, NSMutableCopying
7373
var __wrapped : _MutableUnmanagedWrapper<ImmutableType, MutableType> { get }
7474

7575
init(unmanagedImmutableObject: Unmanaged<ImmutableType>)

stdlib/public/SDK/Foundation/DataThunks.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
extern const NSDataDeallocator NSDataDeallocatorNone;
2020

2121
void __NSDataInvokeDeallocatorVM(void *mem, NSUInteger length) {
22-
NSDataDeallocatorVM(mem, length);
22+
NSDataDeallocatorVM(mem, length);
2323
}
2424

2525
void __NSDataInvokeDeallocatorUnmap(void *mem, NSUInteger length) {
26-
NSDataDeallocatorUnmap(mem, length);
26+
NSDataDeallocatorUnmap(mem, length);
2727
}
2828

2929
void __NSDataInvokeDeallocatorFree(void *mem, NSUInteger length) {
30-
NSDataDeallocatorFree(mem, length);
30+
NSDataDeallocatorFree(mem, length);
3131
}

stdlib/public/SDK/Foundation/Notification.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public struct Notification : ReferenceConvertible, Equatable, Hashable {
5050
}
5151

5252
public var description: String {
53-
return "name = \(name.rawValue), object = \(object), userInfo = \(userInfo)"
53+
return "name = \(name.rawValue), object = \(object), userInfo = \(userInfo)"
5454
}
5555

5656
public var debugDescription: String {

stdlib/public/SDK/Foundation/NotificationThunks.m

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
NSString *NS_RELEASES_ARGUMENT __nonnull name,
1818
id NS_RELEASES_ARGUMENT __nullable object,
1919
NSDictionary *NS_RELEASES_ARGUMENT __nullable userInfo) {
20-
NSNotification *notif = [[NSNotification alloc] initWithName:name object:object userInfo:userInfo];
21-
[name release];
22-
[object release];
23-
[userInfo release];
24-
return notif;
20+
NSNotification *notif = [[NSNotification alloc] initWithName:name object:object userInfo:userInfo];
21+
[name release];
22+
[object release];
23+
[userInfo release];
24+
return notif;
2525
}
2626

2727
extern NS_RETURNS_RETAINED __nullable id
2828
__NSNotificationUserInfo(
29-
NSNotification *NS_RELEASES_ARGUMENT __nonnull notif) {
30-
return [notif.userInfo retain]; // avoid the copy here since this is fetching the stored dictionary and copying it might destroy it's type
31-
}
29+
NSNotification *NS_RELEASES_ARGUMENT __nonnull notif) {
30+
return [notif.userInfo retain]; // avoid the copy here since this is fetching the stored dictionary and copying it might destroy it's type
31+
}

stdlib/public/SDK/XPC/XPC.mm

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@
1515
__attribute__((visibility("hidden")))
1616
extern "C" xpc_type_t
1717
_swift_xpc_get_type(xpc_object_t object) {
18-
return xpc_get_type(object);
18+
return xpc_get_type(object);
1919
}
2020

2121
__attribute__((visibility("hidden")))
2222
extern "C" xpc_object_t
2323
_swift_xpc_bool_true() {
24-
return XPC_BOOL_TRUE;
24+
return XPC_BOOL_TRUE;
2525
}
2626

2727
__attribute__((visibility("hidden")))
2828
extern "C" xpc_object_t
2929
_swift_xpc_bool_false() {
30-
return XPC_BOOL_FALSE;
30+
return XPC_BOOL_FALSE;
3131
}
3232

3333
#define TYPE(t) \
34-
__attribute__((visibility("hidden"))) \
35-
extern "C" xpc_type_t \
36-
_swift_xpc_type_##t(void) { \
37-
return XPC_TYPE_##t; \
38-
}
34+
__attribute__((visibility("hidden"))) \
35+
extern "C" xpc_type_t \
36+
_swift_xpc_type_##t(void) { \
37+
return XPC_TYPE_##t; \
38+
}
3939

4040
TYPE(CONNECTION)
4141
TYPE(ENDPOINT)
@@ -58,17 +58,17 @@
5858
__attribute__((visibility("hidden")))
5959
extern "C" xpc_object_t
6060
_swift_xpc_connection_interrupted(void) {
61-
return XPC_ERROR_CONNECTION_INTERRUPTED;
61+
return XPC_ERROR_CONNECTION_INTERRUPTED;
6262
}
6363

6464
__attribute__((visibility("hidden")))
6565
extern "C" xpc_object_t
6666
_swift_xpc_connection_invalid(void) {
67-
return XPC_ERROR_CONNECTION_INVALID;
67+
return XPC_ERROR_CONNECTION_INVALID;
6868
}
6969

7070
__attribute__((visibility("hidden")))
7171
extern "C" xpc_object_t
7272
_swift_xpc_connection_termination_imminent(void) {
73-
return XPC_ERROR_TERMINATION_IMMINENT;
73+
return XPC_ERROR_TERMINATION_IMMINENT;
7474
}

test/1_stdlib/Intents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
33

4-
// Intents is only public on OSX and iOS
4+
// Intents is only public on OS X and iOS
55
// UNSUPPORTED: OS=watchos OS=tvos
66

77
// FIXME: un-XFAIL the test once the build bots have been updated to the

0 commit comments

Comments
 (0)