Dmitri Hrybenko
65fd550aa2
stdlib: remove Doxygen markup
...
Swift SVN r22074
2014-09-18 15:30:05 +00:00
Dmitri Hrybenko
4f735794e1
stdlib: add a radar reference to a fixme
...
Swift SVN r22073
2014-09-18 14:11:06 +00:00
Dmitri Hrybenko
b64f6a48fa
stdlib: attach documentation comments to array types
...
Swift SVN r22072
2014-09-18 14:04:15 +00:00
Dmitri Hrybenko
b095339da7
stdlib/Array: implement delayed bridging
...
rdar://18191358
Swift SVN r22071
2014-09-18 13:46:39 +00:00
Dmitri Hrybenko
f9f3d26ee7
stdlib: improve comment
...
Swift SVN r22070
2014-09-18 12:41:18 +00:00
Dmitri Hrybenko
0e7e60b50b
Remove stale comment
...
Swift SVN r22069
2014-09-18 11:42:41 +00:00
Dmitri Hrybenko
2475a4ea57
stdlib: mark _stdlib_AtomicInt class 'final'
...
Swift SVN r22067
2014-09-18 09:31:52 +00:00
Dmitri Hrybenko
188f14ee9c
stdlib: fix warning about extraneous '_'
...
Swift SVN r22066
2014-09-18 09:22:37 +00:00
Dave Abrahams
cacec2666f
[stdlib] doc-comment BitwiseOperationsType
...
Swift SVN r22056
2014-09-18 00:55:49 +00:00
Dave Abrahams
52dd5d1771
[stdlib] doc-comment more public protocols
...
covers part of Policy.swift
Swift SVN r22051
2014-09-18 00:08:52 +00:00
Dave Abrahams
657e6a92eb
[stdlib] doc-comment some protocols
...
handles: Interval.swift.gyb, Join.swift, OutputStream.swift
Swift SVN r22050
2014-09-18 00:08:51 +00:00
Dave Abrahams
5ddf4dca53
[stdlib] doc-comment integer arithmetic protocols
...
Swift SVN r22043
2014-09-17 21:19:25 +00:00
Dave Abrahams
33bebac909
[stdlib] Boilerplate doc-comment wording change
...
Swift SVN r22042
2014-09-17 21:19:24 +00:00
Dave Abrahams
d206f6b0f8
[stdlib] Doc-comment floating point protocols
...
Swift SVN r22039
2014-09-17 21:02:52 +00:00
Dave Abrahams
713125fd41
[stdlib] doc-comment compiler protocols
...
Swift SVN r22038
2014-09-17 20:49:24 +00:00
Dave Abrahams
214c7bc0fd
[stdlib] Correct some ReST markup
...
Swift SVN r22037
2014-09-17 20:44:07 +00:00
Dave Abrahams
8c803f7959
[stdlib] internal-ize CharacterLiteralConvertible
...
That, and _BuiltinCharacterLiteralConvertible, are not actually useful
without special hidden switches being passed to the compiler. We don't
want to have to explain them to users.
Swift SVN r22036
2014-09-17 20:41:56 +00:00
Doug Gregor
d42563291e
Switch DictionaryLiteralConvertible over to an initializer requirement.
...
Swift SVN r22033
2014-09-17 19:42:31 +00:00
Dave Abrahams
6a40e001e1
[stdlib] doc-comment collection protocols
...
Swift SVN r22028
2014-09-17 18:11:50 +00:00
Doug Gregor
3972316d25
Switch ArrayLiteralConvertible over to an initializer requirement.
...
Swift SVN r22024
2014-09-17 17:46:26 +00:00
Roman Levenstein
275b34a890
Fix a recently introduced performance regression on StdlibSort test, which happened because new sorted() implementation was using closures.
...
rdar://18336428
Swift SVN r22022
2014-09-17 14:50:21 +00:00
Argyrios Kyrtzidis
c4ed48520b
[stdlib] Replace unicode quotes with ascii ones.
...
It is currently beneficial when displaying the interface in Xcode if it is free from non-ascii characters.
Swift SVN r22000
2014-09-17 02:40:45 +00:00
Dave Abrahams
ed36ddf74b
[stdlib] Doc-comment index protocols
...
Swift SVN r21998
2014-09-16 23:37:32 +00:00
Dave Abrahams
a134fdeaed
[stdlib] doc-comment integer protocols
...
Swift SVN r21993
2014-09-16 22:45:57 +00:00
Doug Gregor
6a19c1235e
Convert FloatLiteralConvertible to initializers
...
Swift SVN r21992
2014-09-16 22:45:09 +00:00
Dmitri Hrybenko
fad578b304
stdlib: remove ArrayBonudType
...
Swift SVN r21991
2014-09-16 22:42:33 +00:00
Dave Abrahams
b05f2528f5
[stdlib] Drop redundant factory func requirement
...
All the integers already have an init() that will narrow from Max[U]Int.
This change is consistent with our general move from factories to
initializers.
Swift SVN r21988
2014-09-16 22:41:19 +00:00
Dave Abrahams
ed52a1063f
[stdlib] doc-comment Collection.swift
...
Swift SVN r21987
2014-09-16 22:01:28 +00:00
Doug Gregor
4dca192b18
Switch IntegerLiteralConvertible over to initializers.
...
Swift SVN r21986
2014-09-16 21:59:15 +00:00
Doug Gregor
e23aa008e6
Switch CharacterLiteralConvertible over to an initializer requirement.
...
Swift SVN r21985
2014-09-16 21:59:11 +00:00
Doug Gregor
7f80e00d37
Swift NilLiteralConvertible to an initializer requirement
...
Swift SVN r21980
2014-09-16 20:43:35 +00:00
Dave Abrahams
f3d1e5f448
[stdlib] Miscellaneous comments and cleanups
...
Swift SVN r21979
2014-09-16 20:00:31 +00:00
Dmitri Hrybenko
e6e17ac7d4
stdlib: replace _CocoaArrayType with _SwiftNSArrayRequiredOverridesType
...
Swift SVN r21972
2014-09-16 12:53:00 +00:00
Dmitri Hrybenko
9b62c620a7
stdlib: remove implied default 'internal' access modifier
...
Swift SVN r21970
2014-09-16 11:14:38 +00:00
Dmitri Hrybenko
4cf865de73
stdlib: factor all _NSXXXBase classes to a single place
...
Swift SVN r21969
2014-09-16 11:13:06 +00:00
Dmitri Hrybenko
c756296373
stdlib/Array: annotate invalid bitcasts
...
Swift SVN r21968
2014-09-16 10:25:31 +00:00
Doug Gregor
d93eaed9f7
Switch BooleanLiteralConvertible over to an initializer requirement.
...
Conforming to BooleanLiteralConvertible now requires
init(booleanLiteral: Bool)
rather than
static func convertFromBooleanLiteral(value: Bool) -> Self
This posed a problem for NSNumber's conformance to
BooleanLiteralConvertible. A class needs a required initializer to
satisfy an initializer requirement, but one cannot add a required
initializer via an extension. To that end, we hack the Clang importer
to import NSNumber's initWithBool with the name
init(booleanLiteral:)
and add back the expected init(bool:) initializer in the
overlay. These tricks make NSNumber even harder to subclass, but we
don't really care: it's nearly impossible to do well anyway, and is
generally a Bad Idea.
Part of rdar://problem/18154091.
Swift SVN r21961
2014-09-15 23:59:30 +00:00
Dmitri Hrybenko
03e2717f0a
stdlib/Array: add bounds checks to NSSwiftArray.objectAtIndex()
...
rdar://18336202
Swift SVN r21945
2014-09-15 15:50:43 +00:00
Dmitri Hrybenko
df82379a65
stdlib/Array: add bounds checks in NSSwiftArray.getObjects()
...
rdar://18320164
Swift SVN r21943
2014-09-15 15:26:49 +00:00
Dmitri Hrybenko
cdbd3bae84
stdlib/Dictionary: remove workaround that is no longer needed
...
Swift SVN r21942
2014-09-15 14:08:56 +00:00
Dmitri Hrybenko
50d497c05f
stdlib/Array: fix an issue in fast enumeration
...
Array did not initialize fast enumeration state if it was empty.
Surprisingly, this did not break code that is generated by Clang
currently. (But as far as I understand fast enumeration, it may abort
the program because mutation pointer is null.)
Swift SVN r21940
2014-09-15 13:49:56 +00:00
Dmitri Hrybenko
4a1dfdb6ad
stdlib/Array: remove default parameters in bridging routines, and
...
reorder function declarations
Swift SVN r21938
2014-09-15 07:08:09 +00:00
Dmitri Hrybenko
001db58bb1
stdlib: remove trailing whitespace and fix coding style
...
Swift SVN r21906
2014-09-12 13:23:21 +00:00
Dmitri Hrybenko
d7acb06c64
stdlib/Dictionary: use 'delayed bridging' to keep pointers, returned
...
from a bridged NSDictionary, stable
We used to return a fresh pointer value every time an NSDictionary
element is requested, but, unfortunately, our SDK has bugs.
Fixes rdar://18191358 for Dictionary.
Swift SVN r21905
2014-09-12 13:20:30 +00:00
Joe Groff
8338e69c86
Actually set up the 'rawValue' argument label on derived enum initializers.
...
Somehow, protocol conformance checking didn't actually care that this was missing...
Swift SVN r21898
2014-09-12 01:29:51 +00:00
Dave Abrahams
213f59e546
[stdlib] doc-comment Arrays.swift.gyb
...
Swift SVN r21897
2014-09-12 00:35:09 +00:00
Dave Abrahams
8ec2b299f3
[stdlib] Algorithm.swift: doc-comment public API
...
Swift SVN r21890
2014-09-11 20:20:19 +00:00
Joe Groff
491e47cb83
Rename RawRepresentable.raw -> rawValue.
...
Per API review with Ali. While we're here, give the initializer a corresponding 'rawValue' argument label, and change the associated type name to RawValue to match.
Swift SVN r21888
2014-09-11 20:13:47 +00:00
Dave Abrahams
107dca088c
[stdlib] Separate Sequence type for enumerate
...
Avoids surprise in case someone makes a generator with reference
semantics
Swift SVN r21886
2014-09-11 19:57:20 +00:00
Dave Abrahams
1e9e7734f0
Revert "[stdlib] any/all algorithms, keyword for contains"
...
This reverts r21810 and r21811 due to lack of design consensus
Swift SVN r21880
2014-09-11 17:42:32 +00:00