Dmitri Hrybenko
a85422d04a
Use the correct gyb expansion in the documentation for sort()
...
Patch by Brian Lanier.
Swift SVN r28868
2015-05-21 06:23:26 +00:00
Dmitri Hrybenko
fe239e3d03
stdlib: de-underscore sort() and partition() methods
...
Swift SVN r28839
2015-05-20 19:34:36 +00:00
Dmitri Hrybenko
2e67af546b
Add the file I forgot to commit in r28833
...
Swift SVN r28837
2015-05-20 18:31:26 +00:00
Dmitri Hrybenko
3cc2161e6f
SDK overlay: add generic API overlays for NSUndoManager
...
Patch by Michael J LeHew Jr.
Swift SVN r28833
2015-05-20 18:02:00 +00:00
Dmitri Hrybenko
8c41d4d4ca
SDK overlay: actually request new APIs from CoreImage
...
Swift SVN r28831
2015-05-20 17:36:07 +00:00
Doug Gregor
077f3d3a36
WatchKit needs to be weak-linked due to missing availability info in the headers.
...
Swift SVN r28830
2015-05-20 17:25:08 +00:00
Dmitri Hrybenko
53f3ccf850
stdlib: change CollectionType.count() into a property
...
Swift SVN r28829
2015-05-20 09:14:43 +00:00
Doug Gregor
1ae67e338c
Explicitly weak-link the Contacts framework into its overlay.
...
Fixes rdar://problem/21030937, which came about because CNErrorDomain
is missing availability information, so we generate a normal external
reference rather than a weak one.
Swift SVN r28824
2015-05-20 05:08:21 +00:00
Dmitri Hrybenko
4a677190eb
stdlib: move partition() to a protocol extension
...
Swift SVN r28816
2015-05-20 03:12:55 +00:00
Chris Lattner
66e1047b73
revert two changes I didn't intend.
...
Swift SVN r28805
2015-05-20 00:28:07 +00:00
Chris Lattner
20d161cfbf
fix <rdar://problem/18123596> unexpected error on self. capture inside class method
...
We no do not require "self." for closures capturing self in static/class methods.
While we do actually capture the metatype more than we should (rdar://21030087),
this doesn't matter to the developer, since this capture cannot cause a cycle
in the reference graph that they should have to reason about.
Swift SVN r28804
2015-05-20 00:27:34 +00:00
Doug Gregor
36a0c434ea
Generalize _BridgedNSError to RawRepresentable types with any integral RawValue.
...
Part of rdar://problem/20577517, which will depend on this protocol.
Swift SVN r28795
2015-05-19 22:40:15 +00:00
Dmitri Hrybenko
004c02adff
stdlib: doc comment: use monospaced font for code
...
Fixes new issues in rdar://problem/20843980
Patch by Brian Lanier.
Swift SVN r28780
2015-05-19 20:26:16 +00:00
Arnold Schwaighofer
1cf4974ad7
Remove a noescape and bitcast that were causing extra thunks to hang around
...
We were generating two reabstraction thunks from
(Generator.Element, Generator.Element) -> Bool
back to
(Generator.Element, Generator.Element) -> Bool
for the let bitcast.
rdar://21022339
Swift SVN r28778
2015-05-19 18:51:12 +00:00
Doug Gregor
94aafe1f33
De-underscore _MachError, _POSIXError, _NSCocoaError, _NSURLError.
...
Turns rdar://problem/20536610 into API, per scattered but positive API
review feedback.
Swift SVN r28756
2015-05-19 05:53:36 +00:00
Doug Gregor
bddf134a87
Factor _NSCocoaError into a struct whose values are split across frameworks.
...
The Cocoa error domain is comprised on error codes from Foundation,
CoreData, and AppKit. Rather than try to collect all of the error
codes into a single enum in Foundation, use a struct that conforms to
ErrorType. Part of rdar://problem/20536610.
Swift SVN r28755
2015-05-19 05:53:34 +00:00
Dmitri Hrybenko
f37b768292
GameKit depends on SceneKit
...
Swift SVN r28746
2015-05-19 04:28:59 +00:00
Dmitri Hrybenko
4f13143919
Update SDK overlay for nullability annotations in the new SDK
...
Swift SVN r28739
2015-05-19 01:55:31 +00:00
Dmitri Hrybenko
abc7677337
GameplayKit overlay: adjust to SDK changes
...
Swift SVN r28738
2015-05-19 01:55:30 +00:00
Dmitri Hrybenko
47595ee1db
stdlib: change sort() and sorted() into protocol extensions
...
Swift SVN r28736
2015-05-19 01:55:29 +00:00
Dmitri Hrybenko
0295b24a5c
stdlib: don't use doc comment markup for non-doc comments
...
rdar://problem/20976063
Swift SVN r28726
2015-05-18 21:52:48 +00:00
Dmitri Hrybenko
17cafb6b3a
Revert "stdlib: don't use doc comment markup for non-doc comments"
...
This reverts commit 28724. It contains unintended changes.
Swift SVN r28725
2015-05-18 21:51:53 +00:00
Dmitri Hrybenko
e964eb7384
stdlib: don't use doc comment markup for non-doc comments
...
rdar://problem/20976063
Swift SVN r28724
2015-05-18 21:50:24 +00:00
Devin Coughlin
5aee5e70aa
[Runtime] Enable run-time availability checks on watchOS.
...
Add the necessary build-configuration disjunct to enable run-time
availability checks on watchOS.
The std lib tests for this on the watch simulator currently fail for unrelated
reasons <rdar://problem/20932146>. I have tested this manually with the
simulator.
rdar://problem/20774229
Swift SVN r28718
2015-05-18 20:04:58 +00:00
Dmitri Hrybenko
7556a124f1
SpriteKit depends on AVFoundation
...
Swift SVN r28701
2015-05-18 08:00:56 +00:00
Chris Lattner
796fa37545
Remove a bit of ugliness that went it to silence a var->let warning,
...
now that we don't warn in this case.
Swift SVN r28666
2015-05-16 23:10:03 +00:00
Dmitri Hrybenko
6aa84e164d
stdlib: clean up some FIXMEs for protocol extensions
...
Swift SVN r28661
2015-05-16 04:26:21 +00:00
Dmitri Hrybenko
4c80e21350
Fix the syntax error that I just introduced.
...
Swift SVN r28660
2015-05-16 03:14:28 +00:00
Dmitri Hrybenko
313701286b
stdlib: Various punctuation and markup improvements to the comments.
...
Patch by Brian Lanier.
Swift SVN r28659
2015-05-16 03:04:51 +00:00
Dmitri Hrybenko
891ac31b43
Remove availability information from WatchKitErrorCode because
...
The SDK does not have it either, and the compiler does not handle
conditionally-available conformances.
Swift SVN r28657
2015-05-16 01:20:38 +00:00
Dmitri Hrybenko
6048306d3d
Add availability information to the WatchKit overlay
...
Swift SVN r28656
2015-05-16 01:04:10 +00:00
Dmitri Hrybenko
ba4c959f1a
stdlib: correct the comment on Unsafe{,Mutable}Pointer.memory
...
Patch by Alex Martini.
Swift SVN r28655
2015-05-16 00:51:40 +00:00
Dmitri Hrybenko
a2096f187c
Add the WatchKit overlay
...
rdar://20438380
Swift SVN r28654
2015-05-16 00:32:42 +00:00
Dmitri Hrybenko
8476af5582
Don't build SDK overlays for frameworks that don't exist on watchOS
...
Swift SVN r28644
2015-05-15 22:16:37 +00:00
Doug Gregor
1d6602ed73
Add bridging for the Mach error domain.
...
Swift SVN r28626
2015-05-15 16:53:29 +00:00
Doug Gregor
af6d4c5b6f
Map the NSError POSIX domain into our error-handling scheme.
...
More of rdar://problem/20536610. _POSIXError is underscored because
this work needs to go to API review still.
Now with a proper build condition for _POSIXError on Darwin.
Swift SVN r28625
2015-05-15 16:22:20 +00:00
John McCall
312a9c1f6e
Clean up correctly if a variadic argument throws.
...
rdar://20942603
Swift SVN r28622
2015-05-15 08:20:36 +00:00
Ted Kremenek
2c3d0308a3
Revert "Map the NSError POSIX domain into our error-handling scheme."
...
This is breaking the bots.
Swift SVN r28615
2015-05-15 06:01:48 +00:00
Doug Gregor
1fa59f475a
Map the NSError POSIX domain into our error-handling scheme.
...
More of rdar://problem/20536610. _POSIXError is underscored because
this work needs to go to API review still.
Swift SVN r28613
2015-05-15 05:31:25 +00:00
Dmitri Hrybenko
bb0ab47805
Add more missing dependencies for SDK overlays
...
Swift SVN r28612
2015-05-15 05:26:17 +00:00
Doug Gregor
c98995047f
Add missing WebKit -> AppKit dependency.
...
Swift SVN r28609
2015-05-15 04:47:51 +00:00
Dmitri Hrybenko
7500da41c7
WatchKit depends on UIKit and CoreGraphics
...
Swift SVN r28608
2015-05-15 03:59:48 +00:00
Dmitri Hrybenko
d8d50e1815
stdlib: in Array bridging code, use the same pattern as Set and Dictionary use
...
Also, simplify the code by removing an unused parameter. NFC.
Swift SVN r28607
2015-05-15 03:44:37 +00:00
Dmitri Hrybenko
db7857c5af
GameKit depends on AppKit and UIKit
...
Swift SVN r28606
2015-05-15 03:37:44 +00:00
Dmitri Hrybenko
9c87e392e9
EventKit depends on AppKit
...
Swift SVN r28605
2015-05-15 03:27:55 +00:00
Dmitri Hrybenko
815816f4f7
Add more dependencies between SDK overlays
...
Swift SVN r28603
2015-05-15 02:02:08 +00:00
Dmitri Hrybenko
0d569c8e2d
AVFoundation depends on CoreMedia
...
Swift SVN r28602
2015-05-15 01:50:49 +00:00
Dmitri Hrybenko
8d055ef793
CloudKit depends on CoreLocation
...
Swift SVN r28601
2015-05-15 01:50:49 +00:00
Dmitri Hrybenko
25d9a4fe32
stdlib: protocol extensions: de-underscore filter()
...
The API was adjusted according to the API review previously.
Swift SVN r28592
2015-05-15 00:37:01 +00:00
Dmitri Hrybenko
7c8a394cb1
Move NSObject extensions to the ObjectiveC overlay
...
NSObject is defined in the ObjectiveC module, not in Foundation.
rdar://20526438
Swift SVN r28591
2015-05-15 00:34:25 +00:00