Joe Groff
0348bbccf4
Take -sil-serialize-all off of CoreGraphics overlay again.
...
It causes test failures: rdar://problem/20891746
Swift SVN r28407
2015-05-11 00:42:33 +00:00
Joe Groff
bdfc83639a
CoreGraphics overlay: Provide concrete definitions of CG*Zero and CGAffineTransformIdentity.
...
These are opaque externs in C for no good reason.
Swift SVN r28399
2015-05-10 18:23:34 +00:00
Joe Groff
3ee5bbcb68
Build CoreGraphics overlay with -sil-serialize-all.
...
A more robust way to expose its definitions to inlining, for rdar://problem/20888179.
Swift SVN r28398
2015-05-10 18:23:33 +00:00
Chris Lattner
c1df892d47
improve stdlib hygiene a bit.
...
Swift SVN r28392
2015-05-10 02:55:18 +00:00
Joe Groff
1968b85a03
Revert "CoreGraphics overlay: Make most CGPoint/Size/Rect operations transparent."
...
This reverts commit r28387. It causes SIL linkage issues on the bots, and several people have noted that -sil-serialize-all is a better approach.
Swift SVN r28391
2015-05-10 00:51:08 +00:00
Joe Groff
e910c14bc2
CoreGraphics overlay: Make most CGPoint/Size/Rect operations transparent.
...
Expose constructors, ==, and other operators so they can be inlined down to their underlying C struct operations. Add overlays for CG{Point,Rect,Size}Zero and CGAffineTransformIdentity as well so we avoid having to load from the opaque extern storage of the C constants. rdar://problem/20888179
Swift SVN r28387
2015-05-09 23:44:54 +00:00
Joe Groff
0722dd26ff
stdlib: Roll the SIMD module back to C++ parity.
...
Committing on behalf of Steve Canon again. We'll hold off on innovating till we have a more complete story here.
Swift SVN r28385
2015-05-09 23:03:36 +00:00
David Farler
8c2248a482
Don't embed LLVM bitcode into the XCTest overlay
...
With bitcode enabled, the XCTest overlay fails to link because
XCTest.framework itself was not built with bitcode. For now, we should
not build this overlay with bitcode. It isn't embedded in apps.
rdar://problem/20884313
Swift SVN r28355
2015-05-09 01:28:05 +00:00
Dmitri Hrybenko
e24c262d6e
Foundation overlay: add String.stringByApplyingTransform()
...
This API is new in OS X 10.11 and iOS 9.0.
rdar://20645458
Swift SVN r28315
2015-05-08 08:36:44 +00:00
Ted Kremenek
9f9bb725cf
Rename '_ErrorType' to 'ErrorType'.
...
Swift SVN r28293
2015-05-07 21:59:29 +00:00
Dmitri Hrybenko
8b392eeea9
Revert "Remove Array.count, it is redundant with protocol extensions"
...
This reverts commit r28247 while we discuss the change.
Swift SVN r28292
2015-05-07 21:45:30 +00:00
Dmitri Hrybenko
10ab07ade5
Revert "Remove {Dictionary,Set,UnsafeMutableBufferPointer,UnsafeBufferPointer}.count"
...
This reverts commit r28248 while we discuss the change.
Swift SVN r28291
2015-05-07 21:45:28 +00:00
Ted Kremenek
7a96e55cde
Revert "Foundation overlay: add String.stringByApplyingTransform()"
...
Speculatively reverted because of iOS bot failure.
Swift SVN r28261
2015-05-07 14:00:16 +00:00
Dmitri Hrybenko
15a558f919
Foundation overlay: add String.stringByApplyingTransform()
...
This API is new in OS X 10.11 and iOS 9.0.
rdar://20645458
Swift SVN r28257
2015-05-07 06:54:15 +00:00
Dmitri Hrybenko
8ac6c7cf8f
Remove {Dictionary,Set,UnsafeMutableBufferPointer,UnsafeBufferPointer}.count
...
These APIs are redundant with APIs that come from protocol extensions.
Swift SVN r28248
2015-05-07 00:30:43 +00:00
Dmitri Hrybenko
58601fafc8
Remove Array.count, it is redundant with protocol extensions
...
Swift SVN r28247
2015-05-07 00:30:41 +00:00
Dmitri Hrybenko
c109ec9125
stdlib: protocol extensions: de-underscore count()
...
Swift SVN r28246
2015-05-07 00:30:38 +00:00
Dmitri Hrybenko
e253881b02
stdlib: protocol extensions: de-underscore indices
...
Swift SVN r28245
2015-05-07 00:30:35 +00:00
Dave Abrahams
04d6928390
[stdlib] Pinging the compiler doesn't usually help
...
Swift SVN r28225
2015-05-06 23:06:58 +00:00
Chris Lattner
37f5452d15
require -> guard.
...
Swift SVN r28223
2015-05-06 22:53:38 +00:00
Ted Kremenek
92e6051cce
Revert "[stdlib] NSStringAPI: add stringByApplyingTransform"
...
Right now this is breaking our iOS bots. Let's temporarily revert while we investigate.
Swift SVN r28201
2015-05-06 15:58:05 +00:00
Dmitri Hrybenko
0453656f31
Adapt to Foundation API modernization: NSRectEdge is now an enum
...
This commit adds the initializers requested in rdar://20169260.
Swift SVN r28185
2015-05-05 22:50:59 +00:00
Dave Abrahams
a3270c105c
[stdlib] NSStringAPI: add stringByApplyingTransform
...
Swift SVN r28171
2015-05-05 17:35:43 +00:00
Doug Gregor
6e114e3cfe
Reinstate r26814: Allow 'var' parameters in @objc methods.
...
'var' parameters affect the definition of the method itself, not its
signature. Fixes rdar://problem/20543054.
Swift SVN r28167
2015-05-05 16:34:09 +00:00
Dmitri Hrybenko
3c30738fc1
Adjust to SpriteKit nullability annotations in the new SDKs
...
Swift SVN r28136
2015-05-04 23:18:14 +00:00
Dmitri Hrybenko
5d96abc4a2
Revert "Adjust SpriteKit overlay to SDK change."
...
This reverts commit r28117. A complete commit (paired w/EPOCH) to
follow, to make it easier to cherry-pick the change.
Swift SVN r28135
2015-05-04 23:18:13 +00:00
Dmitri Hrybenko
33b74a0976
GLKit depends on simd through ModelKit
...
Swift SVN r28124
2015-05-04 18:28:18 +00:00
Ted Kremenek
c3302be282
Adjust SpriteKit overlay to SDK change.
...
Swift SVN r28117
2015-05-04 16:19:55 +00:00
Chris Lattner
d834f44830
more let/else -> require to help out the bot.
...
Swift SVN r28100
2015-05-03 22:03:24 +00:00
Joe Groff
a18b016eee
stdlib: Make SceneKit and SpriteKit overlays depend on simd.
...
Swift SVN r28090
2015-05-02 16:02:01 +00:00
Joe Groff
11fcbda0e9
Add Steve Canon's simd module to the stdlib.
...
Swift SVN r28088
2015-05-02 15:46:38 +00:00
Ted Kremenek
bde7daa23d
Revert "[stdlib] NSStringAPI: add stringByApplyingTransform"
...
This is breaking NSStringAPI.swift on the bots.
Swift SVN r28084
2015-05-02 07:16:48 +00:00
Dave Abrahams
af07713820
[stdlib] NSStringAPI: add stringByApplyingTransform
...
Swift SVN r28082
2015-05-02 05:52:28 +00:00
John McCall
ac50cbc801
Enable error-handling in import by default.
...
Swift SVN r28048
2015-05-01 20:35:28 +00:00
Joe Groff
3cad008353
stdlib: Comment out NSArray: CollectionType conformance.
...
Dmitri notes that this should be API reviewed.
Swift SVN r28002
2015-04-30 22:26:13 +00:00
Joe Groff
b66675237a
stdlib: Uncomment FIXME'd NSArray: CollectionType conformance.
...
Swift SVN r27999
2015-04-30 21:59:44 +00:00
Enrico Granata
2151cf84c5
UIViewMirror should factor in device scale factor
...
Fixes rdar://20444163
Swift SVN r27997
2015-04-30 21:57:53 +00:00
Chris Lattner
31c01eab73
Change the meaning of "if let x = foo()" back to Xcode 6.4 semantics. The compiler
...
includes a number of QoI things to help people write the correct code. I will commit
the testcase for it as the next patch.
The bulk of this patch is moving the stdlib, testsuite and validation testsuite to
the new syntax. I moved a few uses of "as" patterns back to as? expressions in the
stdlib as well.
Swift SVN r27959
2015-04-30 04:38:13 +00:00
Dmitri Hrybenko
dbf1daeb0a
Finish the SceneKit overlay for -[SCNSceneSource entryWithIdentifier:withClass:]
...
rdar://20384835
Swift SVN r27899
2015-04-29 02:22:31 +00:00
Dmitri Hrybenko
5ae502d1f5
Revert "NSStringAPI: Remove useless forced cast"
...
This reverts commit r27809. We're still building with SDKs that
requires the cast.
Swift SVN r27815
2015-04-27 19:39:33 +00:00
Slava Pestov
0de6e67a2f
NSStringAPI: Remove useless forced cast
...
Swift SVN r27809
2015-04-27 18:55:49 +00:00
Dave Abrahams
e2c6c7e90d
[stdlib] Fix "#" parameter warnings due to new rules
...
Swift SVN r27807
2015-04-27 18:15:34 +00:00
Dmitri Hrybenko
44ef30a5af
stdlib: fix grammar in an error message
...
Swift SVN r27734
2015-04-26 00:08:13 +00:00
Dmitri Hrybenko
bc50b2f58d
stdlib: stop using CFSetCreateCopy() in set bridging
...
Use -[NSSet copyWithZone:] instead.
CFSetCreateCopy() is buggy in OSes that ship today: it copies the set
unconditionally, even if it is immutable, resulting in O(n) bridging.
Swift SVN r27733
2015-04-26 00:08:13 +00:00
Dmitri Hrybenko
ba6920e69d
stdlib: stop using CFDictionaryCreateCopy() in dictionary bridging
...
Use -[NSDictionary copyWithZone:] instead.
CFDictionaryCreateCopy() is buggy in OSes that ship today: it copies the
dictionary unconditionally, even if it is immutable, resulting in O(n)
bridging.
Swift SVN r27732
2015-04-26 00:08:12 +00:00
Dmitri Hrybenko
309bc89e83
stdlib: update overlay code for Foundation nullability audit
...
Swift SVN r27731
2015-04-26 00:08:11 +00:00
David Farler
9e28dc777a
Update standard library doc comments to Markdown
...
rdar://problem/20180478
Swift SVN r27726
2015-04-26 00:07:11 +00:00
Doug Gregor
5b767efe72
Fix three unintended API changes from the argument label defaults change.
...
Swift SVN r27705
2015-04-24 20:31:41 +00:00
Doug Gregor
793b3326af
Implement the new rules for argument label defaults.
...
The rule changes are as follows:
* All functions (introduced with the 'func' keyword) have argument
labels for arguments beyond the first, by default. Methods are no
longer special in this regard.
* The presence of a default argument no longer implies an argument
label.
The actual changes to the parser and printer are fairly simple; the
rest of the noise is updating the standard library, overlays, tests,
etc.
With the standard library, this change is intended to be API neutral:
I've added/removed #'s and _'s as appropriate to keep the user
interface the same. If we want to separately consider using argument
labels for more free functions now that the defaults in the language
have shifted, we can tackle that separately.
Fixes rdar://problem/17218256.
Swift SVN r27704
2015-04-24 19:03:30 +00:00
Dmitri Hrybenko
971598e430
Revert "stdlib: fix a warning"
...
This reverts commit r27570. The SDK on buildbots is too old.
Swift SVN r27572
2015-04-22 07:17:56 +00:00