Robert Widmann
6dd2dda53e
Merge pull request #6525 from jpsim/jp-omit-control-statement-parens
...
[gardening] remove superfluous parentheses in control statements in stdlib source
2017-01-03 17:27:23 -07:00
Robert Widmann
3828784768
Merge pull request #6526 from jpsim/jp-return-arrow-whitespace
...
[gardening] fix overly-spaced return arrows in XCTest.swift
2017-01-03 17:26:35 -07:00
JP Simard
83b6d3c29c
remove redundant optional nil assignment in stdlib source
...
since this appears to be the convention followed elsewhere in the code base.
2016-12-31 18:45:01 -08:00
JP Simard
2b246893c9
fix overly-spaced return arrows in XCTest.swift
2016-12-31 18:42:52 -08:00
JP Simard
7301b79342
remove superfluous parentheses in control statements in stdlib source
...
since this appears to be the convention followed elsewhere in the code base.
2016-12-31 18:40:15 -08:00
JP Simard
bb0af66904
fix mismatched closure open/close spacing in stdlib source
2016-12-31 18:21:05 -08: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
JP Simard
bd34ea5e2d
remove trailing semicolons in stdlib source
2016-12-31 17:51:18 -08:00
ben-cohen
c00485a0f7
use nil coalescing on URL.quarantineProperties { set }
2016-12-29 14:37:08 -08:00
ben-cohen
3f7adc9c22
supress warning on printing out optionals (temporarily, waiting on conditional conformance)
2016-12-29 12:57:32 -08:00
ben-cohen
1fb653cd51
Fix warning on UIImage?-as-Any
2016-12-29 12:20:52 -08:00
ben-cohen
ce0d713cd6
fixed where clauses, Optional-as-Any and unused vars
2016-12-29 07:58:12 -08:00
Doug Gregor
3e7bab1b42
Clean up some uses of "as!" that were effectively just uses of "!".
...
We're going to start diagnosing these for bridging conversions, which
we weren't doing before.
2016-12-21 13:46:13 -08:00
Doug Gregor
255fdb1d61
Fix some bogus bridging casts that were allowed in Swift 3.
...
Swift 3 unintentionally allowed collection casts from, e.g.,
Set<AnyHashable> to Set<NSObject>, when in fact the object
representation of the AnyHashable might not be an NSObject. Fix up our
tests and overlays that ran afoul of this rule.
2016-12-21 13:46:13 -08:00
Philippe Hausler
b57752a67f
[Foundation] Correct case of over-released data contents when specifying .none as a deallocator
2016-12-19 14:37:24 -08:00
Max Moiseev
3276aa5bcf
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-12-19 13:15:50 -08:00
practicalswift
16d6dce62e
[gardening] Fix recently introduced typos.
2016-12-16 21:42:09 +01:00
Max Moiseev
bfbab798b9
Merge branch 'master' into new-integer-protocols
2016-12-13 14:43:31 -08:00
Slava Pestov
30c81e862f
Foundation overlay: Fix resilient build
2016-12-12 14:05:50 -08:00
Doug Coleman
ca9026a720
[cmake]: Allow a --darwin-overlay-target=CloudKit to build one overlay
...
and its transitive closure of overlay dependencies.
[utils]:find-overlay-deps-closure.sh: Add a bash script to find the
closure of all other overlays required by a target overlay.
2016-12-09 17:00:24 -08:00
Max Moiseev
9b2f8858ec
Merge branch 'master' into new-integer-protocols
2016-12-08 09:38:38 -08:00
Philippe Hausler
e8b19d9924
Merge pull request #6098 from phausler/additional_data_refinements
...
Merge the swift-corelibs-foundation version of Data
2016-12-06 15:16:51 -08:00
practicalswift
3e31a3ade4
[gardening] Fix typos.
2016-12-06 21:42:01 +01:00
Max Moiseev
356c15cb4a
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-12-06 10:35:27 -08:00
Philippe Hausler
6134083d31
Merge the swift-corelibs-foundation version of Data in as a single source and correct initializers for copy variants as well as remove defers of _fixLifetime
2016-12-06 10:12:55 -08:00
Philippe Hausler
4c2d6e24ff
Merge pull request #5975 from phausler/data_performance
...
First draft at a new inlinable version of struct Data
2016-12-02 10:44:51 -08:00
Jordan Rose
e54ec3d2d4
Merge pull request #5854 from jrose-apple/excise-silgen_name-from-Dispatch
...
Use an extra shims header to remove _silgen_name from Dispatch.
2016-12-02 09:20:24 -08:00
Greg Parker
5001ee4645
Revert "Test and Fix: subset and superset for empty character set" ( #6021 )
2016-12-01 20:26:10 -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
Philippe Hausler
e27b2b0923
Account for nullability issues of bytes in NSData subclasses and return a placeholder value for now
2016-12-01 15:34:04 -08:00
MuhammadAnnaqeeb
e41a29a11c
Fix subset and superset for empty character set ( #6000 )
...
Fix isSubset() and isSuperset() involving the empty CharacterSet.
2016-12-01 14:43:25 -08:00
Philippe Hausler
bdafb2dac0
Handle no-copy cases and custom deallocators as inline construction of swift Data
2016-12-01 12:27:57 -08:00
Maxim Moiseev
698d25cb3d
[overlay] Fixing the incorrect type of fanSpeedPercentage ( #5992 )
...
Fixes <rdar://problem/29167201>
2016-12-01 10:29:47 -08:00
Max Moiseev
3059b3cdd1
Merge branch 'master' into new-integer-protocols
2016-11-30 10:45:10 -08:00
Tony Parker
66a1aaa8ed
Clarify a few comments on autoupdating vs current for TimeZone, Calendar, and Locale
2016-11-30 08:12:17 -08:00
Philippe Hausler
9c0951b5b2
First draft at a new inlinable version of struct Data
2016-11-29 10:53:44 -08:00
Max Moiseev
70b2343626
Merge branch 'master' into new-integer-protocols
2016-11-28 15:25:01 -08:00
practicalswift
5bc293cc09
[gardening] Add missing licensing headers.
2016-11-28 21:40:06 +01:00
Saleem Abdulrasool
f238d65a33
stdlib: use ALL_APPLE_PLATFORMS where applicable
...
Convert a few instances of fully listing all apple platforms with the special
`ALL_APPLE_PLATFORMS` value for `TARGET_SDKS`.
2016-11-27 14:33:06 -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
Jordan Rose
cc1c02f459
Merge pull request #5852 from jrose-apple/XCTest-overrelease
...
[SDK] Fix overrelease in the XCTest overlay, and re-enable the XCTest tests.
2016-11-18 10:54:05 -08:00
Max Moiseev
97981907e1
Merge branch 'master' into new-integer-protocols
2016-11-18 09:36:02 -08:00
Jordan Rose
b3124f1cad
[SDK] Fix overrelease in the XCTest overlay.
...
...introduced by me in 2e560b0 , and tracked down by Greg Parker.
Thanks, Greg!
rdar://problem/29067451
2016-11-17 17:03:20 -08:00
Tony Parker
dcb027e683
Remove a "fix-it" overload of URL.resourceValues(forKeys:).
...
Even though this overload is always unavailable, the compiler was
confusing it with the real one, causing ambiguous error messages.
Fixes SR-3144.
2016-11-17 16:28:52 -08:00
Max Moiseev
953d919a22
Merge branch 'master' into new-integer-protocols
2016-11-16 14:46:31 -08:00
Maxim Moiseev
32feae52b6
Marking .abs() method for floating point types as obsolete in Swift 4 ( #5810 )
...
* Marking .abs() method for floating point types as obsolete in Swift 4
...and deprecated in Swift 3.1
2016-11-16 14:00:10 -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
92813be403
Merge branch 'master' into new-integer-protocols
2016-11-11 16:14:57 -08:00
Tony Parker
8f8f6fd5f3
Fix AffineTransform initializer
2016-11-07 14:02:08 -08:00
swift-ci
84f7b1d84f
Merge pull request #5603 from JaSpa/CharacterSet-ClosedRange
2016-11-03 11:22:45 -07:00