Dmitri Hrybenko
dc2f89fe44
stdlib: fix coding style in Unmanaged.swift
...
Swift SVN r29642
2015-06-24 20:42:10 +00:00
Dmitri Hrybenko
0d954c3b24
stdlib: rename the generic parameter from T to Instance on Unmanaged
...
Part of rdar://21429126
Swift SVN r29641
2015-06-24 20:42:09 +00:00
Dmitri Hrybenko
4e9b6b803d
stdlib: rename generic parameters from T to Bound on intervals
...
Changes HalfOpenInterval and ClosedInterval.
Part of rdar://21429126
Swift SVN r29640
2015-06-24 20:42:08 +00:00
Dmitri Hrybenko
4cdf37a68b
stdlib: rename the generic parameter from T to Element on unsafe pointers
...
Fixed AutoreleasingUnsafeMutablePointer, UnsafePointer,
UnsafeMutablePointer.
Part of rdar://21429126
Swift SVN r29637
2015-06-24 20:42:04 +00:00
Dmitri Hrybenko
ba208cd672
stdlib: rename zip generator and collection to a common naming convention
...
// Renamed from `ZipGenerator2`.
struct Zip2Generator<Generator1 : GeneratorType, Generator2 : GeneratorType> { ... }
// Renamed from `Zip2`.
struct Zip2Sequence<Sequence1 : SequenceType, Sequence2 : SequenceType> { ... }
Part of rdar://21429126
Swift SVN r29636
2015-06-24 20:42:03 +00:00
Dmitri Hrybenko
60ba7be3d1
stdlib: rename the generic parameter from T to Element on GeneratorSequence
...
Part of rdar://21429126
Swift SVN r29635
2015-06-24 20:42:02 +00:00
Dmitri Hrybenko
71022a46c1
stdlib: rename mapping sequence and collection wrappers to a common naming convention
...
struct ReverseIndex<Base : BidirectionalIndexType> { ... }
struct ReverseRandomAccessIndex<Base : RandomAccessIndexType> { ... }
// Renamed from `BidirectionalReverseView`.
struct ReverseCollection<Base : CollectionType where T.Index : BidirectionalIndexType> { ... }
// Renamed from `RandomAccessReverseView`.
struct ReverseRandomAccessCollection<Base : CollectionType where T.Index : RandomAccessIndexType> { ... }
Also fixed a bug (found by the new tests I added in this commit) in
LazyRandomAccessCollection.reverse(), which mistakenly returned a bidirectional
reversed collection.
Part of rdar://21429126
Swift SVN r29634
2015-06-24 20:42:01 +00:00
Dmitri Hrybenko
deac6d7020
stdlib: rename generic parameters from T to Element
...
... for LazySequence, LazyForwardCollection, LazyBidirectionalCollection,
LazyRandomAccessCollection.
Part of rdar://21429126
Swift SVN r29633
2015-06-24 20:42:01 +00:00
Dmitri Hrybenko
c2162f097f
stdlib: rename mapping sequence and collection wrappers to a common naming convention
...
// Renamed from `MapSequenceGenerator`.
struct MapGenerator<Base : GeneratorType, Element> { ... }
// Renamed from `MapSequenceView`.
struct MapSequence<Base : SequenceType, Element> { ... }
// Renamed from `MapCollectionView`.
struct MapCollection<Base : CollectionType, Element> { ... }
Part of rdar://21429126
Swift SVN r29632
2015-06-24 20:42:00 +00:00
Dmitri Hrybenko
6be11fe711
stdlib: rename filtering sequence and collection wrappers to a common naming convention
...
// Renamed from `FilterSequenceView`.
struct FilterSequence<Base : SequenceType> { ... }
// Renamed from `FilterCollectionViewIndex`.
struct FilterCollectionIndex<Base : CollectionType> { ... }
// Renamed from `FilterCollectionView`.
struct FilterCollection<Base : CollectionType> { ... }
Part of rdar://21429126
Swift SVN r29630
2015-06-24 20:41:59 +00:00
Dmitri Hrybenko
fdd73a57b4
stdlib: add tests for generic parameter names on EnumerateGenerator,
...
EnumerateSequence
Part of rdar://21429126
Swift SVN r29629
2015-06-24 20:41:58 +00:00
Dmitri Hrybenko
9dff1aa407
stdlib: rename generic parameters from T to Element
...
... for AnyGenerator, AnySequence, AnyForwardCollection,
AnyBidirectionalCollection, AnyRandomAccessCollection.
Part of rdar://21429126
Swift SVN r29628
2015-06-24 20:41:57 +00:00
Dmitri Hrybenko
bd9995782a
stdlib: rename generic parameters from T to Element
...
... for StrideToGenerator, StrideTo, StrideThroughGenerator, StrideThrough.
Part of rdar://21429126
Swift SVN r29627
2015-06-24 20:41:57 +00:00
Dmitri Hrybenko
5b8837fe1a
stdlib: change Range.{startIndex,endIndex} into stored properties
...
Previously, they were computed properties that just wrapped stored
properties. NFC.
Swift SVN r29626
2015-06-24 20:41:56 +00:00
Dmitri Hrybenko
585553ad04
stdlib: Range: remove declarations that can be inferred
...
Swift SVN r29625
2015-06-24 20:41:56 +00:00
Dmitri Hrybenko
f11f4946cb
stdlib: rename generic parameters from T to Element
...
... for Range and RangeGenerator.
Part of rdar://21429126
Swift SVN r29624
2015-06-24 20:41:55 +00:00
Dmitri Hrybenko
09ab3c17dc
stdlib: rename generic parameters from T to Element
...
... for UnsafeBufferPointerGenerator, UnsafeBufferPointer,
UnsafeMutableBufferPointer.
Part of rdar://21429126
Swift SVN r29623
2015-06-24 20:41:54 +00:00
Dmitri Hrybenko
d3dff3e3a5
stdlib: rename generic parameters from T to Element
...
... for EmptyGenerator and EmptyCollection.
Part of rdar://21429126
Swift SVN r29622
2015-06-24 20:41:53 +00:00
Dmitri Hrybenko
d013644588
stdlib: rename generic parameters from T to Element
...
... for GeneratorOfOne and CollectionOfOne.
Part of rdar://21429126
Swift SVN r29621
2015-06-24 20:41:52 +00:00
Dmitri Hrybenko
a884263c8a
stdlib: rename Repeat's generic parameter from T to Element
...
Part of rdar://21429126
Swift SVN r29620
2015-06-24 20:41:51 +00:00
Dmitri Hrybenko
d9726efbb2
stdlib: rename Set's generic parameter from T to Element
...
Same for SetGenerator and SetIndex.
Part of rdar://21429126
Swift SVN r29619
2015-06-24 20:41:51 +00:00
Dmitri Hrybenko
51e236c609
stdlib: rename Array's generic parameter from T to Element
...
Same for ArraySlice and ContiguousArray.
Part of rdar://21429126
Swift SVN r29618
2015-06-24 20:41:49 +00:00
Dmitri Hrybenko
57d85f70d7
stdlib: eliminate redundant implementations of 'generate()'
...
Swift SVN r29617
2015-06-24 20:41:47 +00:00
Dmitri Hrybenko
d396eb9772
stdlib: fix a spelling mistake in a doc comment
...
rdar://21496703
Swift SVN r29616
2015-06-24 20:41:44 +00:00
Dmitri Hrybenko
de937eb0d1
stdlib: add unavailable String.{count,subscript()} APIs
...
The doc comments on these APIs are meant to steer the users toward the
right API for the use case. Suggested by Anna Zaks.
Swift SVN r29615
2015-06-24 20:41:43 +00:00
Doug Gregor
17884f173a
Stop declaring function parameters without names, e.g., "func f(Int)".
...
Swift SVN r29607
2015-06-24 16:01:31 +00:00
Dmitri Hrybenko
491e774f41
stdlib: redeclare requirements from underscored protocols in public protocols
...
... and remove the warning in comments that encouranged users to read
the declarations inside underscored protocols.
Swift SVN r29500
2015-06-19 01:04:05 +00:00
Dave Abrahams
f0fac67917
Revert "[stdlib] join() => protocol extension"
...
This reverts r29467; it hasn't passed through API review yet.
Swift SVN r29470
2015-06-17 23:21:14 +00:00
Dave Abrahams
3299e1be4c
[stdlib] join() => protocol extension
...
Also, un-constrain it so that the type of the sequences passed as an
argument does not have to match the type of the method target.
Swift SVN r29467
2015-06-17 23:16:56 +00:00
Joe Groff
5cdc9f3fd1
Runtime/stdlib: Slightly better implementations of errorInMain and unexpectedError.
...
Implement these backstops in the stdlib instead of the runtime, where we can at least interpolate the error value and give a slightly more informative error. Could still be improved by handing the source location down from the point of the crash instead of using the location from the stdlib source. Somewhat addresses rdar://problem/20807523.
Swift SVN r29401
2015-06-16 18:57:09 +00:00
Dave Abrahams
b034468ebb
[stdlib] Fix indentation
...
Swift SVN r29392
2015-06-15 23:40:07 +00:00
Joe Groff
d7b9ae72aa
Sema: Require '.init' when constructing from a dynamic metatype.
...
This makes it clearer that expressions like "foo.myType.init()" are creating new objects, instead of invoking a weird-looking method. The last part of rdar://problem/21375845.
Swift SVN r29375
2015-06-14 19:50:06 +00:00
Joe Groff
62f51285f4
Remove stale comment too.
...
Swift SVN r29335
2015-06-06 04:53:35 +00:00
Joe Groff
93ca4101c1
Enable a _sanityCheck that doesn't appear to cause leaks anymore.
...
Swift SVN r29334
2015-06-06 04:35:09 +00:00
Dmitri Hrybenko
93881c9535
stdlib: fix grammar inside of a comment
...
Swift SVN r29297
2015-06-04 09:09:06 +00:00
Greg Parker
fe303f13e1
[stdlib] Fix vararg processing on armv7k.
...
rdar://21142268
Swift SVN r29243
2015-06-02 18:21:04 +00:00
Argyrios Kyrtzidis
212989e3cd
[stdlib] Underscore a parameter name to hide its initializer from the interface.
...
Verified by Dmitri.
Swift SVN r29196
2015-06-01 00:26:47 +00:00
Dave Abrahams
f2b5056c51
[stdlib] Touch files with missing build dependencies
...
Swift SVN r29085
2015-05-27 22:10:45 +00:00
Dave Abrahams
1175d3602c
[stdlib] Underscore the legacy Reflectable protocol
...
We don't want anyone using this and hope to remove it before GM, so
let's at least make its imminent death more obvious.
Swift SVN r29075
2015-05-27 20:59:24 +00:00
Dave Abrahams
d65f696344
Kill off [_]RawOptionSetType
...
Now that we are using OptionSetType for option sets, all the support for
doing things the old way can die.
Note: the fix-it that used to apply to RawOptionSetType, it seemed to me,
should still apply to OptionSetType, so I switched it over instead of
removing it.
Swift SVN r29066
2015-05-27 15:55:54 +00:00
Dave Abrahams
8efffef57b
[stdlib] Remove now-unneeded implementation hack
...
Thanks for the feature, Doug!
Swift SVN r29065
2015-05-27 15:16:47 +00:00
Dmitri Hrybenko
418f9b398c
stdlib: remove bogus code that claims to be avoiding optimizations
...
Not only it does not achieve what the comment says (_storage has the
type _ContiguousArrayStorageBase), but optimizations that would break
semantics of this code would be invalid anyway.
Swift SVN r29056
2015-05-27 03:40:37 +00:00
Dmitri Hrybenko
6a975f2190
stdlib: remove dead code from ArrayBuffer
...
Swift SVN r29055
2015-05-27 03:40:36 +00:00
Dmitri Hrybenko
acdd8772be
stdlib: update the doc comment to the new 'as!' syntax
...
Swift SVN r29054
2015-05-27 03:40:33 +00:00
Greg Parker
6c812d0751
[stdlib] Reinstate r29043 "strip final from protocol extensions".
...
This reverts r29050. This wasn't the change that broke the SourceKit tests.
Swift SVN r29052
2015-05-27 01:52:17 +00:00
Greg Parker
16a3b8ebd7
[stdlib] Revert "strip final from protocol extensions".
...
SourceKit tests need to be updated.
Swift SVN r29050
2015-05-27 01:34:45 +00:00
Dave Abrahams
1f1643221d
[stdlib] strip final from protocol extensions
...
Now that we've lifted the requirement
Swift SVN r29043
2015-05-26 23:52:36 +00:00
Dmitri Hrybenko
77c76071f2
stdlib: fix coding style
...
Swift SVN r29012
2015-05-25 19:16:18 +00:00
Dmitri Hrybenko
ba25a872cf
stdlib: fix code that should be rejected by the complier
...
Compiler bug filed as rdar://21097259.
Swift SVN r29008
2015-05-25 18:38:28 +00:00
Dave Abrahams
ed6c0dd49a
[stdlib] ~>_distanceTo() => method
...
Swift SVN r29004
2015-05-25 04:59:04 +00:00