Janek Spaderna
d5e1819416
[stdlib] Don't try to construct invalid UnicodeScalars
...
When inserting a closed range/creating a CharacterSet from a closed
range we must not try to convert this range to a half open one by
incrementing the upperBound UnicodeScalar because not all integer values
are valid values for UnicodeScalar
Fixes SR-2988
2016-11-02 12:20:31 +01:00
Slava Pestov
f63dff16c7
AST: Don't allow @_transparent on extensions
...
Quiz: What does @_transparent on an extension actually *do*?
1) Make all members @_transparent?
2) Allow your members to be @_transparent?
3) Some other magical effect that has nothing to do with members?
The correct answer is 1), however a few places in the stdlib defined
a @_transparent extension and then proceeded to make some or all members
also @_transparent, and in a couple of places we defined a @_transparent
extension with no members at all.
To avoid cargo culting and confusion, remove the ability to make
@_transparent extensions altogether, and force usages to be explicit.
2016-11-01 21:14:09 -07:00
Max Moiseev
76e0a99a37
Merge branch 'master' into new-integer-protocols
2016-10-31 09:29:19 -07:00
practicalswift
2024316e38
[gardening] Remove accidental trailing whitespace (" " and "\t")
2016-10-30 10:59:02 +01:00
practicalswift
f44686d825
[gardening] Fix trailing whitespace in *.cfg.in, *.html, *.mm and *.sil files
2016-10-29 14:06:43 +02:00
practicalswift
cc852042c9
[gardening] Fix accidental trailing whitespace.
2016-10-29 10:22:58 +02:00
Max Moiseev
3d4f00091d
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-10-28 15:55:40 -07:00
Kevin Perry
6f83a82d14
Ensure directory URL enumerator error handler block is invoked with non-nil URL
2016-10-26 16:18:51 -07:00
Max Moiseev
d1cc46d7ce
Fixing Dispatch tests
2016-10-24 11:40:03 -07:00
Max Moiseev
8912dc09a8
Merge branch 'master' into new-integer-protocols
2016-10-20 13:55:03 -07:00
Jordan Rose
222811a27a
Merge pull request #5309 from jrose-apple/overlays-and-silgen_name
...
Remove _silgen_name from all Apple overlays except Dispatch and Foundation.
2016-10-19 09:21:48 -07:00
Kevin Perry
66ae38c5e0
1. Use correct URLs in thunk
...
2. Pass NSString? to thunk, not String?
3. Use proper Objective-C out parameter coding practices
4. Use correct nullability decorator in thunk for backupItemName parameter
rdar://problem/28755011
2016-10-18 16:40:46 -07:00
Max Moiseev
b2fecd241b
Merge branch 'master' into new-integer-protocols
2016-10-18 11:00:46 -07:00
SpringsUp
2ae2074de3
[Overlay/Dispatch]: Change DispatchQueue.setSpecific to take an optional
...
for its value
2016-10-18 13:57:02 +02:00
Slava Pestov
2b1bfe3270
Foundation overlay: Don't rely on URL struct being a single reference
...
If the struct is resilient, it is passed indirectly. Even if we decide to
make it fixed layout, it's best to remove as many implicit ABI assumptions
as possible from @_silgen_name function calls.
Fixes <rdar://problem/28673618>.
2016-10-17 18:10:37 -07:00
swift-ci
781ee82cf6
Merge pull request #5085 from phausler/Foundation_cleanup
2016-10-17 11:45:36 -07:00
Max Moiseev
8d1155c2b9
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-10-17 11:29:07 -07:00
Jordan Rose
1589ca1b8d
[SDK] Use an extra shims header to remove _silgen_name from the XPC overlay.
2016-10-15 14:59:29 -07:00
Jordan Rose
26e24f7bee
[SDK] Use an extra shim header to remove _silgen_name from SafariServices.
2016-10-15 14:59:28 -07:00
Jordan Rose
cb59b94135
[SDK] Use an extra shim header to eliminate _silgen_name from ObjectiveC.
2016-10-15 14:59:28 -07:00
Jordan Rose
c97451f851
[SDK] Use existing NS_REFINED_FOR_SWIFT to remove _silgen_name from SceneKit.
2016-10-15 14:59:28 -07:00
Jordan Rose
7b0b2d6de2
[SDK] Use perform(_:with:) to remove _silgen_name from GameplayKit.
...
This does require a dummy protocol for now; hopefully we can take it out
later.
2016-10-15 14:59:28 -07:00
Jordan Rose
244cf50c0c
[SDK] Use an extra shims header to remove _silgen_name from the os overlay.
2016-10-15 14:59:27 -07:00
Jordan Rose
2e560b0319
[SDK] Use an extra shim header to remove _silgen_name from XCTest.
2016-10-15 14:59:27 -07:00
Jordan Rose
3778c79dc4
[SDK] Use SwiftPrivate to remove _silgen_name from the AppKit overlay.
2016-10-15 09:35:09 -07:00
swift-ci
4532e20021
Merge pull request #5125 from parkera/parkera/url_quarantine_fix
2016-10-13 12:29:14 -07:00
Kevin Ballard
301510e9d4
Fix dispatch time comparisons ( #5078 )
...
* [Dispatch] Don't crash when comparing DispatchWallTimes with <
* [Dispatch] Make comparisons with distantFuture work as expected
2016-10-13 11:32:24 -07:00
Max Moiseev
2190819e99
Breaking up complex expression to improve compilation time
2016-10-12 15:04:54 -07:00
Max Moiseev
9a0f3ba1e1
Revert "Adding specific versions of arithmetics operators for CGFloat to speed up compilation"
...
This reverts commit c91dce7394 .
2016-10-12 11:54:19 -07:00
Max Moiseev
c91dce7394
Adding specific versions of arithmetics operators for CGFloat to speed up compilation
2016-10-11 16:21:41 -07:00
Xiaodi Wu
7041b4b2bf
[SR-2503] Implement subtraction for CharacterSet ( #5201 )
...
* Implement CharacterSet.subtracting(_:)
* Add test for CharacterSet.subtract(_:)
* Expand on test for CharacterSet.subtract(_:)
* Address reviewer comment (CharacterSet tests)
* Improve documentation for CharacterSet set algebra
2016-10-11 15:26:56 -07:00
Max Moiseev
5cc2c8cb5a
Operators as static funcs for Arithmetic (see SE-0091)
2016-10-10 14:04:11 -07:00
Max Moiseev
99837a47a5
Merge branch 'master' into new-integer-protocols
2016-10-05 15:26:37 -07:00
Tony Parker
15d5875bf3
Fix quarantineProperty in URLResourceValues
...
NSURL has an odd behavior around the quarantine dictionary URL resource
value - if you want to clear it, you should pass NSNull instead of the
NSDictionary. We need to accomodate that in the overlay code with a
special case.
<rdar://problem/28575806> Cannot remove Quarantine attribute in Swift 3
2016-10-04 15:58:57 -07:00
Tony Parker
1a08dc87a3
Fix a few documentation errors in struct Locale
2016-10-03 15:51:44 -07:00
Philippe Hausler
2ffc3d52f2
[Foundation] Extract NSURL extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
b9da412ddd
[Foundation] Extract NSDate extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
da84c29707
[Foundation] Extract NSCoder/NSKeyed(Un)Archiver extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
d1ebf836c9
[Foundation] Extract NSUndoManager extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
1050bc4f1d
[Foundation] Extract NSExpression extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
16dce5a76f
[Foundation] Extract NSPredicate extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
ae45b2daac
[Foundation] Extract NSError extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
c3f87ce097
[Foundation] Extract geometry extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
8017c7abc0
[Foundation] Extract NSRange extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
91f3bb4f55
[Foundation] Extract NSIndexSet extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
cb5b894ac0
[Foundation] Extract NSEnumerator/NSFastEnumeration extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
3522fa8f6e
[Foundation] Extract NSSet extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
574f1d068c
[Foundation] Extract NSTextCheckingResult extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
c3bcd0dc18
[Foundation] Extract NSDictionary extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00
Philippe Hausler
5d28920d8e
[Foundation] Extract NSArray extensions into a seperate file
...
Non functional change; purely organization/gardening
2016-10-03 12:37:25 -07:00