Davide Italiano
f1b3965586
[stdlib] Port StdlibUnittest to FreeBSD.
2016-01-07 21:05:32 +00:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
Ling Wang
bb7119f4ae
Add O(1) contains() implementation for Range with Comparable Element
2016-01-01 19:43:01 -06:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Dmitri Gribenko
9b15d03b73
StdlibUnittest: don't pass the name of the executable on the command line
...
Also, add a test for the command line of the child process.
2015-12-24 02:27:57 -08:00
Arsen Gasparyan
9203f36630
Refactoring
2015-12-24 12:18:59 +03:00
Arsen Gasparyan
31750a1690
Pass env variable through StdlibUnittest
2015-12-24 11:55:01 +03:00
Dmitri Gribenko
3877d04a73
Merge pull request #731 from ken0nek/add-spaces-before-and-after-arrow
...
Add spaces before and after closure arrow
2015-12-23 10:53:22 -08:00
Max Moiseev
200be71583
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-23 10:28:04 -08:00
Doug Gregor
5b35c786b8
Standard library unit testing: use static "#if" for OS kind determination.
...
There is absolutely no point in making this a runtime check, because
the library will be built differently on the different platforms
anyway. We only need to determine the version at runtime.
2015-12-22 16:18:28 -08: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
ken0nek
fcd8fcee91
Convert [Cc]an not -> [Cc]annot
2015-12-23 00:55:48 +09:00
Chris Lattner
b85992eeb5
fix typo from the previous commit that led to validation test failures.
2015-12-21 20:57:15 -08:00
Chris Lattner
685b4ede1f
Reapply: Remove the last uses of ++/-- from the stdlib directory.
...
This reverts commit fc6a406a56 .
2015-12-21 20:54:28 -08:00
Chris Lattner
d5dba4eda2
Move stdlib/private off ++/--
2015-12-21 18:07:36 -08:00
Michael Gottesman
fc6a406a56
Revert "Remove the last uses of ++/-- from the stdlib directory."
...
This reverts commit 0caebf2fb4 .
2015-12-21 19:21:38 -06:00
Chris Lattner
0caebf2fb4
Remove the last uses of ++/-- from the stdlib directory.
2015-12-21 15:11:49 -08:00
Max Moiseev
2f7b64e475
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-21 12:02:13 -08:00
Pavel Mazurin
1dae128c83
Gets rid of for-loop deprecation compiler warnings in stdlib/private
2015-12-19 09:37:03 +01: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
Max Moiseev
50371821fe
reverse() => reversed()
2015-12-18 16:20:01 -08:00
Dmitri Gribenko
8f7c9ae3fd
Collection.sort() => .sorted()
2015-12-18 16:20:01 -08:00
Max Moiseev
f4aaece75e
revisiting CString related String extensions
2015-12-17 17:27:29 -08:00
Dmitri Gribenko
ebb3e45886
Sequence.{min,max}Element() => .min(), .max()
2015-12-17 17:07:01 -08:00
Dmitri Gribenko
15a9649062
Repeated(repeating:length:) => repeatElement(_:count:)
2015-12-17 16:24:47 -08:00
Dmitri Gribenko
86f1258810
Repeat => Repeated
2015-12-17 16:24:11 -08:00
Dmitri Gribenko
73ce9ae7e9
Collection.count => .length
...
And other API changes that naturally fall out from this, like
Array(repeating:count:) => Array(repeating:length:).
2015-12-17 15:55:29 -08:00
Maxim Moiseev
e6468a0eca
_precondition => _require
2015-12-16 17:19:01 -08:00
Maxim Moiseev
9d0c912c70
Merging UnsafePointer.deinitializePointee
...
An optimization should be added in order for the new one to be
efficient, i.e. if the `count` value is equal to `1`, the underlying
`Builtin.destroy` should be called, instead of
`Builtin.destroyArray`.
2015-12-16 17:15:00 -08:00
Maxim Moiseev
6c50752aed
UnsafePointer: initializeMemory and deinitializePointee
2015-12-16 17:11:57 -08:00
Maxim Moiseev
0e54467bfa
Final bulk removal of Type suffix
2015-12-16 17:06:19 -08:00
Dmitri Gribenko
f1dbe205a3
UnsafeMutablePointer.dealloc(_:) => .deallocateCapacity(_:)
2015-12-16 15:47:58 -08:00
Dmitri Gribenko
1f70e25899
UnsafeMutablePointer.alloc(_:) => UnsafeMutablePointer(allocatingCapacity:)
2015-12-16 15:45:48 -08:00
Maxim Moiseev
2c95bb6d51
BooleanType => Boolean
2015-12-10 14:56:32 -08:00
Dmitri Gribenko
b7f3d54f4d
removeAll(keepCapacity:) => removeAll(keepingCapacity:)
2015-12-09 17:18:08 -08:00
Dmitri Gribenko
f846ef6fd1
RangeReplaceableCollection.removeRange() => .removeSubrange()
2015-12-09 17:17:51 -08:00
Dmitri Gribenko
727f011314
RangeReplaceableCollection.insert(_:atIndex:) => .insert(_:at:)
2015-12-09 17:17:41 -08:00
Dmitri Gribenko
9a9ff305f1
RangeReplaceableCollection.replaceRange() => .replaceSubrange()
2015-12-09 17:17:34 -08:00
Dmitri Gribenko
ab0a2a6044
Rename 'subrange' to 'bounds' in non-API arguments
2015-12-09 17:17:20 -08:00
Maxim Moiseev
844b81c46b
SequenceType => Sequence
2015-12-09 17:16:56 -08:00
Maxim Moiseev
c678a839dc
IndexType => Index
2015-12-09 17:16:42 -08:00
Maxim Moiseev
6f4335ddc6
_ReverseCollectionType => _ReverseCollection
2015-12-09 17:16:31 -08:00
Dmitri Gribenko
4b1be0e78f
removeAtIndex() => removeAt()
2015-12-09 17:15:01 -08:00
Dmitri Gribenko
df17ddbc9b
init(count: Int, repeatedValue: Element) => init(repeating:count:)
...
Affected types: _ArrayType, Array, ArraySlice, ContiguousArray, Repeat,
String (initializers from Character and UnicodeScalar)
2015-12-09 17:14:37 -08:00
Dmitri Gribenko
d72b5ab575
func SequenceType.enumerate() => var SequenceType.enumerated
2015-12-09 17:13:21 -08:00
Maxim Moiseev
09a6913622
RangeReplaceableCollectionType => RangeReplaceableCollection
2015-12-09 17:13:08 -08:00
Maxim Moiseev
7e2466c14e
CollectionType => Collection
2015-12-09 17:12:48 -08:00