Joe Groff
d3cba67344
Runtime: Move assert implementation details to stdlib.
...
Many of the report* entry points are specific to the stdlib assert implementation, so belong in the stdlib. Keep a single `reportError` entry point in the runtime to handle the CrashReporter/ASL interface, and call down to it from the assert implementation functions.
2015-12-22 15:54:42 -08:00
Niels Andriesse
6381ec6114
[stdlib] Remove redundant +(_:_:) overload in RangeReplaceableCollectionType
2015-12-23 10:53:01 +11:00
Niels Andriesse
56a995f0df
[stdlib] Add performance optimization in RangeReplaceableCollectionType +(_:_:)
2015-12-23 10:51:37 +11:00
practicalswift
6e3b700b44
Fix typos.
2015-12-23 00:31:13 +01:00
Niels Andriesse
c333aed696
[stdlib] Fix reserveCapacity() call in RangeReplaceableCollectionType +(_:_:)
2015-12-23 10:01:36 +11:00
ken0nek
e7e70cea92
Add spaces before and after closure arrow in stdlib
2015-12-23 04:52:15 +09:00
Max Moiseev
a7339e67ac
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-22 11:36:07 -08:00
Max Moiseev
51865a17b2
_debugRequire => _stdlibAssert etc.
2015-12-22 10:18:36 -08:00
ken0nek
fcd8fcee91
Convert [Cc]an not -> [Cc]annot
2015-12-23 00:55:48 +09:00
Dmitri Gribenko
7be67b5476
Merge pull request #721 from jasonnoahchoi/prespecialized
...
Change c-style for loop to for-in loop based on proposal SE-0007
2015-12-22 03:17:39 -08:00
Suguru Kishimoto
b87782d95e
[Fix] Use count += 1 instead of count++ .
2015-12-22 18:14:20 +09:00
Jason Choi
ad1a15d0b0
Change c-style for loop to for-in loop based on proposal SE-0007
2015-12-22 01:01:11 -08:00
Chris Lattner
be53728691
Mark the ++ and -- operators in the standard library as deprecated for Swift 2.2,
...
to be removed in Swift 3.0. I plan to improve the QoI of this deprecation in a
subsequent commit.
2015-12-21 22:10:25 -08:00
Chris Lattner
66f7ef1295
Move stdlib off ++ and --
2015-12-21 18:07:36 -08:00
practicalswift
36d7072013
Remove immediately adjacent repeated words ("the the", "for for", "an an", etc.).
2015-12-21 22:16:04 +01:00
Max Moiseev
2f7b64e475
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-21 12:02:13 -08:00
Dmitri Gribenko
69b4a81896
stdlib: re-add 'anyGenerator()' as a deprecated function
...
This is done to restore source compatibility with Swift 2.0.
2015-12-21 11:43:21 -08:00
Dmitri Gribenko
2ed81bd19a
Revert "[stdlib][performance] skip copying old values during removeAll(keepCapacity: true)"
2015-12-20 22:46:56 -08:00
Dmitri Gribenko
2e0efaee69
Revert "[Performance] iterate the smaller set during Set.intersect()"
2015-12-20 22:45:30 -08:00
Dmitri Gribenko
c486a3a6e2
Merge pull request #680 from PatrickPijnappel/bit-fix
...
[stdlib] Fix bug in Bit with-overflow arithmetic
2015-12-20 18:58:42 -08:00
Dmitri Gribenko
1f950762bb
Merge pull request #613 from PatrickPijnappel/int-parse-fix
...
[stdlib] Fix Int(_:radix:) accepting unintentional cases (SR-187)
2015-12-20 18:45:53 -08:00
Patrick Pijnappel
17a5845640
[stdlib] Add terminating period to comments
2015-12-21 13:31:34 +11:00
Patrick Pijnappel
4faa43aa88
[stdlib] Adjust formatting to fit 80 colums
2015-12-21 13:23:12 +11:00
Patrick Pijnappel
f81968341d
[stdlib] Adjust formatting to fit 80 columns
2015-12-21 13:06:24 +11:00
Patrick Pijnappel
f8c155a80e
[stdlib] Refactor Bit._withOverflow()
2015-12-20 17:41:49 +11:00
Patrick Pijnappel
56ed11ee3d
[stdlib] Refactor local variables names
2015-12-20 17:29:54 +11:00
Patrick Pijnappel
9f162728f1
[stdlib] Fix bug in Bit with-overflow arithmetic
...
The original version would result in a crash for negative results.
2015-12-20 17:21:13 +11:00
Dmitri Gribenko
6f8bee17aa
Merge pull request #576 from dduan/set_intersect_optimization
...
[Performance] iterate the smaller set during Set.intersect()
2015-12-19 17:26:42 -08:00
Daniel Duan
d919f4cb5c
[stdlib] iterate the smaller set in Set.intersect()
...
This introduces a small constant in speed, but it's a big win for
worst case scenario.
2015-12-19 04:26:44 -08:00
Dmitri Gribenko
0c3f2e8b11
Merge pull request #657 from PatrickPijnappel/enums
...
[stdlib] Remove redundant CustomStringConvertible conformance
2015-12-19 03:09:25 -08:00
Patrick Pijnappel
b5c3e23c40
[stdlib] Remove redundant CustomStringConvertible conformance
...
The implementation is identical to the default string representation. The conformance and description property are never explicitly used.
2015-12-19 18:05:46 +11:00
Max Moiseev
b2277939fe
Fixing tests
2015-12-18 16:22:24 -08:00
Max Moiseev
bc942090ee
cleaning up initializePointee/deinitializePointee, error messages and comments
2015-12-18 16:22:24 -08:00
Dmitri Gribenko
7e375df888
startsWith(): other => possiblePrefix
2015-12-18 16:22:24 -08:00
Dmitri Gribenko
1e26d22d80
IteratorOverOne.init(_:) => internal
2015-12-18 16:22:24 -08:00
Dmitri Gribenko
c07056ddaf
Mirrors: T => Subject
2015-12-18 16:22:24 -08:00
Dmitri Gribenko
e7b2666118
Set: maybeSuperset => possibleSuperset in argument labels
2015-12-18 16:22:24 -08:00
Dmitri Gribenko
06577273e9
var Sequence.enumerated => func
2015-12-18 16:22:24 -08:00
Max Moiseev
5ccc258f71
func underestimatedLength() => var underestimatedLength { get }
2015-12-18 16:22:24 -08:00
Max Moiseev
b3fcc5fefa
underestimateLength() => underestimatedLength()
2015-12-18 16:22:24 -08:00
Dave Abrahams
d72932e931
Replace Unmanaged with UnsafeReference
2015-12-18 16:22:24 -08:00
Dmitri Gribenko
f6c00e8377
String: var lowercased, uppercased => func
2015-12-18 16:20:01 -08:00
Dmitri Gribenko
2245f7505f
func _unsafeUnwrap() => var _unsafelyUnwrapped
2015-12-18 16:20:01 -08:00
Dmitri Gribenko
47d48e45ba
func customPlaygroundQuickLook() => var
2015-12-18 16:20:01 -08:00
Dmitri Gribenko
117b65393b
func customMirror() => var
2015-12-18 16:20:01 -08:00
Max Moiseev
3ab767a604
func superclassMirror() => var superclassMirror {get}
2015-12-18 16:20:01 -08:00
Max Moiseev
bbfcab8734
func isEmptyInput => var isEmptyInput {get}
2015-12-18 16:20:01 -08:00
Max Moiseev
50371821fe
reverse() => reversed()
2015-12-18 16:20:01 -08:00
Max Moiseev
e175a841bf
Unmanaged<T>.toOpaque() => OpaquePointer.init<T>()
2015-12-18 16:20:01 -08:00
Max Moiseev
497b348686
turning UnicodeScalar.isASCII etc into properties
2015-12-18 16:20:01 -08:00