Doug Gregor
17c15932fa
Foundation overlay: stringByAppendingFormat -> appendingFormat.
...
This API didn't get updated to match the Swift 3 name of this
method. Thanks to Nate Cook for finding the error!
2016-03-21 10:38:37 -07:00
Doug Gregor
67dad6041c
[Runtime] Use the _ObjectiveCBridgeable._ObjectiveCType type witness directly.
...
This lets us eliminate the _getObjectiveCType() value witness, which
was working around the lack of proper type witness metadata in witness
tables. Boilerplate -= 1.
2016-03-18 16:11:38 -07:00
Doug Gregor
d92ae77076
Eliminate most remaining uses of _convertNSFooToFoo and _convertFooToNSFoo.
...
Generalized bridging has fully subsumed most of these. NSError is
still special, and _convertStringToNSString remains for the the
runtime's implementation of SwiftObject's -description method.
2016-03-18 11:42:00 -07:00
Dave Abrahams
f493b54e44
[stdlib] indexing model: Interval/Range merge
...
This is step 1; we still need to introduce ClosedRange.
2016-03-16 15:59:10 -07:00
Doug Gregor
1d90b044fb
Really reinstate "[SILGen] Implement NSString -> String bridging through _ObjectiveCBridgeable."
...
This reverts commit 052d2d0a69 .
The only actual issue with the original change was a missing change to
the UIApplicationMain SILGen test, which needs to build SILGen
overlays to execute properly; -enable-source-import doesn't suffice.
2016-03-15 15:44:07 -07:00
Doug Gregor
052d2d0a69
Revert "Reinstate [SILGen] Implement NSString -> String bridging through _ObjectiveCBridgeable."
...
This reverts commit b25019c259 . The
builders are failing in ways that are clearly related to my changes
but I'm unable to replicate locally.
2016-03-15 15:00:31 -07:00
Doug Gregor
b25019c259
Reinstate [SILGen] Implement NSString -> String bridging through _ObjectiveCBridgeable.
...
This reverts commit 01fe7e4848 .
2016-03-15 11:38:06 -07:00
Doug Gregor
01fe7e4848
Revert "[SILGen] Implement NSString -> String bridging through _ObjectiveCBridgeable."
...
This reverts commit aa9cc23743 .
2016-03-15 06:52:27 -07:00
Doug Gregor
efede5c1c5
Revert "[SILGen] Enable protocol extension version of _unconditionallyBridgeToObjectiveC"
...
This reverts commit 16a5e044d9 .
2016-03-15 06:51:59 -07:00
Dmitri Gribenko
85d955b788
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-15 01:27:03 -07:00
Doug Gregor
16a5e044d9
[SILGen] Enable protocol extension version of _unconditionallyBridgeToObjectiveC
2016-03-14 15:45:31 -07:00
Doug Gregor
aa9cc23743
[SILGen] Implement NSString -> String bridging through _ObjectiveCBridgeable.
...
Introduce a new entrypoint to _ObjectiveCBridgeable,
_unconditionallyBridgeFromObjectiveC, which handles unconditional
bridging from an optional Objective-C object (e.g., an NSString) to
its bridged Swift type. Use it in SILGen to perform NSString -> String
bridging rather than the custom entry point.
Another small step toward generalized bridging.
2016-03-14 11:17:46 -07:00
Dmitri Gribenko
3cde854287
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-12 01:11:32 -08:00
Daniel Duan
276370b599
[stdlib] apply SE-0040 to stdlib
2016-03-11 16:01:41 -08:00
Dmitri Gribenko
e8bc77e5b8
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-11 00:20:34 -08:00
Shawn Erickson
e6f3f35869
New indexing model: updated NSStringAPI
2016-03-10 08:09:47 -08:00
Shawn Erickson
b097b55f1a
New indexing model: fix RNG and addition of RandomAccess to UTF16View on foundation load
2016-03-10 07:29:41 -08:00
practicalswift
5b028d0651
[gardening] Fix recently introduced typo: " " → " "
...
[gardening] Fix recently introduced typo: "a initializer" → "an initializer"
[gardening] Fix recently introduced typo: "charaters" → "characters"
[gardening] Fix recently introduced typo: "fullfilled" → "fulfilled"
[gardening] Fix recently introduced typo: "initalizer" → "initializer"
[gardening] Fix recently introduced typo: "peoperty" → "property"
[gardening] Fix recently introduced typo: "reparing" → "repairing"
[gardening] Fix recently introduced typo: "spilt" → "split"
2016-03-10 11:52:02 +01:00
Max Moiseev
4da439d406
copy(withZone:) => copy(with:) in ShadowProtocols
2016-03-08 15:50:59 -08:00
Max Moiseev
859db53d87
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-01 12:56:26 -08:00
Max Moiseev
a49dab6bf8
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-29 12:08:52 -08:00
Daniel Duan
2bc78b8c09
[stdlib] update for 'inout' adjustment (SE-0031)
2016-02-26 12:02:29 -08:00
Jordan Rose
f922084180
stdlib: Rename miscellaneous enum cases and static vars.
2016-02-24 17:46:14 -08:00
Jordan Rose
1a5f23e424
stdlib: Adjust names of hand-imported NSCocoaError/NSURLError cases.
2016-02-24 17:46:11 -08:00
Jordan Rose
81905be8dd
Rename _BridgedNSError._NSErrorDomain to _nsErrorDomain.
...
This isn't strictly necessary, since it's an implementation detail, but
it's consistent with the following changes.
2016-02-24 17:46:10 -08:00
Chris Willmore
e9212d40a7
stdlib: Unavailable decls for renamed NSStringAPI methods
2016-02-23 20:16:23 -08:00
Chris Willmore
6f0a1adb0a
stdlib: Update NSStringAPI.swift to match NSString under Swift 3 naming rules.
2016-02-23 17:52:00 -08:00
Dave Abrahams
ece87787e0
stdlib: merge swift 3 UnsafePointer migrations
2016-02-23 15:45:45 -08:00
Dave Abrahams
d96b051d28
stdlib: initializePointee(_) => initialize(with:)
...
Tacking "Pointee" on just for unary operations (and especially
operations with an optional count) created inconsistency.
2016-02-23 15:15:23 -08:00
Max Moiseev
42d5f30d3a
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-api-guidelines
2016-02-23 14:45:21 -08:00
Max Moiseev
0b759a409c
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-23 14:26:14 -08:00
Dmitri Gribenko
f0633ce5a9
stdlib: Sequence.iterator() => .makeIterator()
2016-02-23 13:52:30 -08:00
Dmitri Gribenko
63481be8bd
stdlib: lowercase cases of the PlaygroundQuickLook enum
2016-02-20 00:55:35 -08:00
Max Moiseev
40b1a0b7e0
[stdlib] all sorts of require renamed back to precondition
2016-02-19 18:21:29 -08:00
Dmitri Gribenko
65d840c0ae
stdlib: lowercase cases in Optional and ImplicitlyUnwrappedOptional
2016-02-18 00:40:33 -08:00
Dmitri Gribenko
dd75aed67a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-17 14:40:05 -08:00
Dmitri Gribenko
efaa39ea79
stdlib: add first argument labels and some other changes to conform to API guidelines
2016-02-15 23:47:54 -08:00
Max Moiseev
3a3984877a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-15 15:43:34 -08:00
Dmitri Gribenko
8b86dac8c1
Revert "[gardening] Fix typo: "nul-terminated" → "null-terminated""
2016-02-13 15:27:53 -08:00
Peter Friese
888d0f3fa6
[gardening] Fix typo: "nul-terminated" → "null-terminated"
2016-02-11 11:03:38 +00:00
Nate Cook
428bbbe603
Add 'ExtraStringAPIs.swift' to make list.
2016-02-05 11:03:44 -06:00
Max Moiseev
39fdbca8d0
making Swift build succesfully after the merge
2016-02-04 16:48:14 -08:00
Max Moiseev
61c837209b
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-04 16:13:39 -08:00
Austin Zheng
77918a86ac
[SR-88] Reinstate Mirror migration changes, fix test issues
...
This reverts commit 182bb7f812 .
2016-01-27 20:40:52 -08:00
Andrew Trick
182bb7f812
Revert "Merge pull request #1058 from austinzheng/az-port-mirror"
...
This pull request broke the following tests on several build configurations
(eg --preset=buildbot,tools=RA,stdlib=DA)
1_stdlib/Reflection.swift
1_stdlib/ReflectionHashing.swift
1_stdlib/UnsafePointer.swift.gyb
This reverts commit c223a3bf06 , reversing
changes made to 5c2bb09b09 .
2016-01-27 10:43:08 -08:00
Austin Zheng
10d5b23c30
[SR-88] Reinstate mirror migration commit
...
Changes:
- Reverted commit reverting original SR-88 commit
- Removed mirror children helper collections and related code
- Rewrote some tests to keep them working properly
- Wrote two more tests for the three pointer APIs to ensure no crashes if created using a value > Int64.max
This reverts commit 8917eb0e5a .
2016-01-26 19:28:32 -08:00
practicalswift
ca9e488f30
[gardening] Add "-*- swift -*-" to *.swift.gyb. Remove from *.swift.
2016-01-23 10:27:03 +01:00
Dmitri Gribenko
9bcd5a1056
Collection.length => .count
2016-01-22 18:41:19 -08:00
Mark Lacey
8917eb0e5a
Revert "[Runtime][StdLib] Migrate mirrors to use CustomReflectable API, rewrite dump()"
...
This reverts commit 9798dfd4aa because it
broke the stdlib build.
2016-01-22 08:41:07 -08:00
Dmitri Gribenko
f5153572d7
stdlib: rename count labels in underscored protocols
...
lengthInBytes => utf8CodeUnitCount
numberOfCodeUnits => utf16CodeUnitCount
2016-01-21 17:18:15 -08:00