Max Moiseev
d721a03d90
[stdlib][swift-3-indexing-model] fixing Index tests
2016-03-23 16:07:20 -07:00
Bliss Chapman
37e3a79877
Remove escaped spaces from the MutableCollectionType’s partition method
...
documentation.
2016-03-23 11:02:46 -05:00
Saleem Abdulrasool
84e69cc657
stdlib: disable FP80 on Windows
...
The Windows ABI does not support FP80 (it is FP32, FP64 only). Ensure that FP80
support is guarded by an OS check.
2016-03-23 08:00:30 -07:00
Dave Abrahams
8d9e62b274
[stdlib] indexing model: rename next/previous
...
I'm not too satisfied with the names for the updating: versions, but
this is a start.
2016-03-22 17:13:54 -07:00
Dmitri Gribenko
d9a2b45449
New indexing model: tighten requirements on *Collection.Indices
2016-03-22 16:37:21 -07:00
Dmitri Gribenko
55885fb5ed
New indexing model: tighten requirements on SubSequence types
2016-03-22 15:02:45 -07:00
Dmitri Gribenko
8c5d012ab4
Merge pull request #1774 from apple/use-truncatingBitPattern
...
stdlib: Use UInt8(truncatingBitPattern:) instead of an equivalent inline construct
2016-03-22 14:25:15 -07:00
Dmitri Gribenko
168e7e41a5
Merge pull request #1525 from PatrickPijnappel/utf8-rewrite
...
[stdlib] Rewrite UTF8 decoding
2016-03-22 14:24:11 -07:00
Dmitri Gribenko
2c53727bf7
stdlib: Use UInt8(truncatingBitPattern:) instead of an equivalent inline construct
2016-03-22 11:14:46 -07:00
Dave Abrahams
3b41409bb6
[stdlib] indexing model: Range indexing diagnostics
2016-03-22 09:22:58 -07:00
Patrick Pijnappel
ffe864687a
[stdlib] Clarify buffer comments in UTF8._decodeOne()
2016-03-22 22:33:13 +11:00
Dmitri Gribenko
c05afc7739
stdlib: more _stdlibAssert => _debugPrecondition renaming
2016-03-21 15:11:05 -07:00
Dmitri Gribenko
a6cd57222a
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-21 14:41:15 -07:00
Dave Abrahams
0cb009c060
[stdlib] indexing model: Bugfix
...
Thanks, Dmitri!
2016-03-21 13:09:07 -07:00
Erik Eckstein
c8d61fce9f
Add a build-script-impl option --build-sil-debugging-stdlib to compile the stdlib with SIL debug info (-gsil)
2016-03-21 12:57:05 -07:00
marcusrossel
e09b00e727
Added a missing period in a comment.
2016-03-20 18:01:02 -06:00
Xin Tong
92f2b3fb82
Merge pull request #1736 from trentxintong/PA
...
Fix thread-unsafety in Process.Argument initialization.
rdar://problem/24250684 and SR-940
2016-03-19 21:18:55 -07:00
Xin Tong
9fdcf0f433
Remove some unused enum declaration
2016-03-19 18:46:16 -07:00
Xin Tong
cb6a0328d2
Address more suggestions to Fix thread-unsafety in Process.Argument initialization
2016-03-19 18:15:39 -07:00
Xin Tong
df41e6a53c
Address more suggestions to Fix thread-unsafety in Process.Argument initialization
2016-03-19 14:06:35 -07:00
Dmitri Gribenko
e63374f2b7
stdlib: add more doc comments to MutableIndexable
2016-03-19 00:03:03 -07:00
Dmitri Gribenko
95d2e11e7e
New indexing model: add Indexable.IndexDistance
...
This is required to forward the IndexDistance typealias in Slice* types.
Unfortunately, making this change required working around a compiler
bug, so I had to split Indexable into IndexableBase and Indexable.
2016-03-18 23:50:59 -07:00
Dmitri Gribenko
3ad0fa8248
New indexing model: remove a TODO that was fixed
2016-03-18 23:25:00 -07:00
Dmitri Gribenko
59f07708ac
stdlib: add a FIXME to remove Indexable
2016-03-18 23:23:36 -07:00
Dmitri Gribenko
e7f5727751
stdlib: RangeReplaceableCollection: move a requirement to the derivable section
2016-03-18 23:03:19 -07:00
Dmitri Gribenko
941235c25e
New indexing model: remove a duplicate API
2016-03-18 23:03:19 -07:00
Dmitri Gribenko
37fb51aedd
New indexing model: generate 12 Slice types
...
We need a slice type for every combination of collection protocols, so
that a collection's SubSequence preserves all operations available on
the collection itself.
We need three index types, one for each traversal kind.
2016-03-18 23:03:19 -07:00
Dmitri Gribenko
92fe2dca0b
New indexing model: remove a FIXME that is fixed
2016-03-18 23:03:19 -07:00
Dmitri Gribenko
ea51ace6b8
New indexing model: generate three DefaultIndices types
...
We need three index types, one for each traversal kind.
2016-03-18 23:03:18 -07:00
Doug Gregor
67dad6041c
[Runtime] Use the _ObjectiveCBridgeable._ObjectiveCType type witness directly.
...
This lets us eliminate the _getObjectiveCType() value witness, which
was working around the lack of proper type witness metadata in witness
tables. Boilerplate -= 1.
2016-03-18 16:11:38 -07:00
Xin Tong
8a6fdebc38
Fix thread-unsafety in Process.Argument initialization
...
rdar://problem/24250684
2016-03-18 15:19:32 -07:00
Dave Abrahams
c793aebbe3
[stdlib] indexing model: String slicing diagnostics
...
The new range types need to be treated specially in order to get the
same old diagnostics.
2016-03-18 15:10:58 -07:00
Dave Abrahams
a9dd95c37a
[stdlib] indexing model: Generic Mutable Slicing
2016-03-18 15:08:40 -07:00
Dave Abrahams
388833831b
Balance parens in gyb file
...
It was messing with our editor's indentation to have unmatched parens in
gyb'd segments.
2016-03-18 15:05:12 -07:00
Dave Abrahams
e65787f1fa
[stdlib] indexing model: Generic removeSubrange
2016-03-18 14:07:13 -07:00
Dave Abrahams
3d7921a62c
[stdlib] indexing model: Public subscripts
...
The intended subscripting overloads for CollectionType were internal, so
not having the right effect.
Failures down to 20, 5 in stdlib.
2016-03-18 13:48:15 -07:00
Dave Abrahams
88a9f2e628
[stdlib] indexing model: Complete Interval/Range merge
...
Down to 22 failures; only 5 in stdlib tests
2016-03-18 10:04:09 -07:00
Dave Abrahams
c5031aacf2
[stdlib] indexing model: Overload bug workarounds
...
rdar://25214598
2016-03-17 14:45:15 -07:00
Dave Abrahams
d6c0c8a594
[stdlib] indexing model: Slicing overloads
...
Support slicing with all the kinds of Ranges
2016-03-17 14:45:11 -07:00
Nate Cook
afac511c19
[stdlib] Remove unavailable annotation for MutableCollection.sort()
2016-03-17 16:12:37 -05:00
Max Moiseev
03cbb49982
[stdlib] _stdlibAssert => _debugPrecondition
2016-03-17 12:16:19 -07:00
Dave Abrahams
48d33f19b6
[stdlib] indexing model: Internal Naming
...
"Pos" is no longer a good name for that generic parameter.
2016-03-17 02:59:02 -07:00
Dave Abrahams
d1241c4931
[stdlib] indexing model: prep ClosedRange separation
2016-03-17 02:54:13 -07:00
Dave Abrahams
688f917abd
[stdlib] indexing model WIP: Establish ClosedRange
2016-03-16 17:27:52 -07:00
Dave Abrahams
68d68114ca
[stdlib] indexing model: Drop redundant Range !=
...
The default is already being generated for us.
2016-03-16 17:13:36 -07:00
Dave Abrahams
3fbf6911dc
[stdlib] indexing model: Factor Range some more
2016-03-16 17:04:15 -07:00
Dave Abrahams
2d7e068401
[stdlib] indexing model: a missed next(_) for HashedCollections
2016-03-16 16:46:11 -07:00
Dave Abrahams
f49ea36820
[stdlib] indexing model: Factor Range
2016-03-16 16:46:00 -07:00
Dave Abrahams
17f841430c
Merge Range work
2016-03-16 15:59:39 -07:00
Dave Abrahams
ed3c537638
[stdlib] indexing model: Check Range invariants
2016-03-16 15:59:11 -07:00