Ben Cohen
85d190cd7d
[stdlib] Replace various uses of BlahSlice with Slice to reduce warnings ( #13263 )
...
* Kill the slice variants from the gybbed collection test types
* Handful more SDK instances
* Fix SequencesCollections.swift.gyb
2017-12-05 19:09:56 -08:00
Kim Topley
1da4b04d99
Fixes overflow trap when creating DispatchTime objects with large uptimeNanoseconds values and re-enables the tests that failed.
...
Adds some additional tests.
2017-10-16 07:09:05 -07:00
Doug Gregor
797df6e8d7
Eliminate the _*Indexable protocols.
...
The various _*Indexable protocols only exist to work around the lack of
recursive protocol constraints. Eliminate all of the *_Indexable protocols,
collapsing their requirements into the corresponding Collection protocol
(e.g., _MutableIndexable —> Collection).
This introduces a number of extraneous requirements into the various
Collection protocols to work around bugs in associated type
inference. Specifically, to work around the lack of "global" inference
of associated type witnesses. These hacks were implicitly present in
the *Indexable protocols; I've made marked them as ABI FIXMEs here so
we can remove them when associated type inference improves.
Fixes rdar://problem/21935030 and a number of ABI FIXMEs in the library.
2017-10-01 15:08:23 -07:00
ktopley-apple
0dc62017a1
Merge pull request #11927 from ktopley-apple/dispatch-time-overflows
...
Fix overflow traps in DispatchTime/DispatchWallTime/DispatchTimeInterval
2017-09-20 13:27:35 -07:00
Kim Topley
c5af2799c1
Fix overflow traps in DispatchTime/DispatchWallTime/DispatchTimeInterval.
...
rdar://problem/32678302
2017-09-20 12:16:05 -07:00
Kim Topley
9b96c0eb36
Change the fix-up for dispatch_apply() to refer to the correct replacement. Also change from "renamed" to "message" because concurrentPerform(iterations:execute:) has different arguments than dispatch_apply(), so Xcode does not handle the conversion properly.
2017-09-05 15:00:16 -07:00
Kim Topley
6194f37e1a
Fix warnings in DispatchQueue.sync() implementation when using a compiler with SE-0176 support.
2017-06-30 08:45:15 -07:00
Max Moiseev
eaf20b23ba
[overlay] Rename scheduleOneShot and scheduleRepeating
...
rdar://29587696
2017-06-26 15:38:21 -07:00
Mishal Shah
c5ff1f2cac
Update master to build with Xcode 9 beta 1, OS X 10.13, iOS 11, tvOS 11, and watchOS 4 SDKs.
2017-06-14 16:20:35 -07:00
Dave Abrahams
72f5e7c0c2
[stdlib] Eliminate _Element
2017-05-22 16:17:58 -07:00
Max Moiseev
b9fb3badc8
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-03-22 12:30:24 -07:00
ktopley-apple
2e5e1d8ee5
Makes the DispatchIO initializer that accepts a path failable, reflecting the fact that a relative or non-existent path is invalid. ( #8173 )
...
(Radar 28564226)
2017-03-20 15:32:22 -07:00
Doug Coleman
8c2bd5ae23
cmake: Initial standalone overlays builds.
...
./utils/build-overlay AVFoundation OSX macosx
rdar://problem/28707246
2017-03-14 12:51:42 -07:00
ktopley-apple
56081a24c3
Add support for UnsafeRawBufferPointer to DispatchData ( #8004 )
...
* Add support for UnsafeRawBufferPointer to DispatchData
(Radar 28503167)
* Review comments.
2017-03-10 13:59:44 -08:00
Max Moiseev
835b8809d2
Merge branch 'master' into new-integer-protocols
2017-03-07 16:18:54 -08:00
Kim Topley
fe8d8bb88a
Fix the DispatchTime.init(uptimeNanoseconds:) initializer to convert its argument to Mach absolute time instead of treating it as Mach absolute time.
...
(Radar 29660448)
2017-02-13 12:24:38 -08:00
Kim Topley
5229d1a777
Revert "Fix the DispatchTime.init(uptimeNanoseconds:) initializer to convert its argument to Mach absolute time instead of treating it as Mach absolute time."
...
This reverts commit 1377cae2b9 .
2017-02-13 12:22:06 -08:00
Kim Topley
1377cae2b9
Fix the DispatchTime.init(uptimeNanoseconds:) initializer to convert its argument to Mach absolute time instead of treating it as Mach absolute time.
...
(Radar 29660448)
2017-02-13 11:19:40 -08:00
swift-ci
fd6b9fe0ec
Merge pull request #7338 from ktopley-apple/dispatch-time-nanos
2017-02-10 13:29:49 -08:00
ktopley-apple
0cb1561035
Adding documentation to clarify the result of DispatchTime(uptimeNanoseconds: 0) ( #7342 )
...
(Radar 28814085)
(SR-2807)
2017-02-10 12:37:57 -08:00
Kim Topley
65032a6898
DispatchTime.uptimeNanoseconds returns incorrect value on some platforms.
...
(Radar 30332506)
2017-02-08 10:34:08 -08:00
Maxim Moiseev
8b95cc48de
[stdlib] Fixing compilation warnings ( #7314 )
...
<rdar://problem/30320630>
2017-02-08 10:07:49 -08:00
ktopley-apple
4854530db0
Fixes crash when DispatchData is created from an UnsafeBufferPointer<Uint8> with a nil address. ( #7194 )
...
Radar 29337927
2017-02-02 09:33:45 -08:00
Max Moiseev
0e7863129c
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-30 16:51:16 -08:00
Kim Topley
7d9ed86d8c
Fixes handling of range indices in DispatchData.copyBytes() and adds tests for the copyBytes() method (Radar 29005050)
2017-01-26 09:13:25 -08:00
Max Moiseev
b5ab7263c1
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-23 11:00:33 -08:00
Maxim Moiseev
89840c738a
[dispatch] Fix + and - operations on DispatchTime and DispatchWallTime ( #6961 )
...
... for the cases where `seconds` parameter is NaN or infinite.
Fixes <rdar://problem/29764171>
2017-01-20 21:44:47 -08:00
NachoSoto
a12e739fb8
Fix the fixits for dispatch_async and dispatch_group_async
...
They erroneously suggested `DispatchQueue.asynchronously`, but it's actually `DispatchQueue.async`.
2017-01-20 15:05:15 -08:00
Max Moiseev
d128ed42b0
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-19 14:16:32 -08:00
Slava Pestov
5accebf556
Merge pull request #5344 from karwa/clearspecific
...
[Overlay/Dispatch]: Change DispatchQueue.setSpecific to take an optional
2017-01-18 15:59:45 -08:00
Max Moiseev
27889c6376
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-06 15:54:44 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
JP Simard
65688bdc39
[gardening] replace unused closure parameters with '_' in stdlib source ( #6522 )
...
* replace unused closure parameters with '_' in stdlib source
* fold some _ closure arguments into line above
* fold more _ closure arguments into line above
2017-01-03 20:10:41 -07:00
JP Simard
ea5b665afa
prefer '-> Void' over '-> ()'
...
Apple and the Swift community has settled on this style:
https://devforums.apple.com/message/1133616#1133616
> FWIW, we've recently decided to standardize on () -> Void
> (generally, () for parameters and Void for return types) across all of our
> documentation.
2016-12-31 17:55:19 -08:00
Max Moiseev
356c15cb4a
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-12-06 10:35:27 -08:00
Jordan Rose
7d61a5e6a2
[SDK] Use an extra shims header to remove _silgen_name from Dispatch.
...
We still have a bunch of redeclarations of Dispatch functions to avoid
the automatic bridging of dispatch_data_t and dispatch_block_t, but
mostly this is a vast reduction in complexity (and increase in safety).
2016-12-01 16:06:15 -08:00
Max Moiseev
70b2343626
Merge branch 'master' into new-integer-protocols
2016-11-28 15:25:01 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Max Moiseev
953d919a22
Merge branch 'master' into new-integer-protocols
2016-11-16 14:46:31 -08:00
Doug Coleman
692bc1c031
cmake: Allow requiring minimum versions using sdk-os-version triples on
...
Darwin.
Example:
--darwin-sdk-deployment-targets=fookit-ios-8.0;barkit-tvos-9.2
2016-11-15 16:43:37 -08: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
Max Moiseev
d1cc46d7ce
Fixing Dispatch tests
2016-10-24 11:40:03 -07:00
SpringsUp
2ae2074de3
[Overlay/Dispatch]: Change DispatchQueue.setSpecific to take an optional
...
for its value
2016-10-18 13:57:02 +02: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
Doug Coleman
2747d1eed8
Overlays: Fix tool not to find os as a dependency unless it depends on
...
os/activity.h or os/log.h. Update cmake files again, hardcoding a Darwin
dependency. The script does not notice that Foundation depends on
CoreGraphics, so add that manually.
Also found that MapKit is supported on WATCHOS but we didn't have dependencies
for that.
Favor one line per supported SDK instead of catch-all dependency lines.
Distinguish from SDKs which have no dependencies vs SDKs which are
unsupported on a particular platform by printing `unsupported` to the
console and remove the line in the cmake file because it should
not exist anyway.
This full cleanup was not done before because of circularity detected by the
util, which has since been fixed.
Support directories with spaces.
2016-09-28 10:28:02 -07:00
practicalswift
fa7fbdb8b0
[gardening] Remove redundant nil-initialization of optional variable
...
From the Swift documentation:
"If you define an optional variable without providing a default value,
the variable is automatically set to nil for you."
2016-09-18 07:40:07 +02:00
Michael Ilseman
b7c9eddd11
[noescape by default] drop @noescape from stdlib
2016-08-04 16:09:01 -07:00
Michael Gottesman
06a70d3942
[cmake] Add cmake support for only applying tsan to the swift stdlib/runtime.
2016-08-03 17:53:57 -07:00