Jordan Rose
a4a4a80ac4
[CMake] Don't pass -sil-serialize-all under SWIFT_STDLIB_ENABLE_RESILIENCE.
...
Thanks, Slava!
2016-02-10 10:29:01 -08:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Dmitri Hrybenko
28792f40b3
stdlib: add an API AnySequence.init(() -> Generator)
...
No objections on API review.
rdar://20720454
Swift SVN r28886
2015-05-21 20:56:38 +00:00
Dmitri Hrybenko
41fedd9183
stdlib: add an API AnySequence.init(() -> Generator)
...
This API is required for parity with SequenceOf.
Swift SVN r28808
2015-05-20 01:00:45 +00:00
Dave Abrahams
5c55682d8b
[stdlib] Capitalize keywords in doc comments
...
Again, the text is a lot more readable that way.
Swift SVN r28472
2015-05-12 16:59:13 +00:00
Dave Abrahams
106b39a497
[stdlib] Indent bullet continuations in doc comments
...
The text is a lot more readable that way.
Swift SVN r28471
2015-05-12 16:59:08 +00:00
Dave Abrahams
d576eb9e63
[stdlib] Merge experimental inheritance support for mirrors
...
Swift SVN r27934
2015-04-29 22:21:46 +00:00
Ted Kremenek
ea498e9fef
Revert "[stdlib] Merge experimental inheritance support for mirrors"
...
This is breaking the Jenkins build.
Swift SVN r27919
2015-04-29 20:27:36 +00:00
Dave Abrahams
9407cc5ab8
[stdlib] Merge experimental inheritance support for mirrors
...
Swift SVN r27918
2015-04-29 20:13:49 +00:00
Enrico Granata
4781414e7a
Remove SwiftExperimental.dump() - I am iterating on this as part of LLDB
...
Swift SVN r27882
2015-04-28 21:12:00 +00:00
David Farler
9e28dc777a
Update standard library doc comments to Markdown
...
rdar://problem/20180478
Swift SVN r27726
2015-04-26 00:07:11 +00:00
Dmitri Hrybenko
8a3e78f3a7
Mirrors can be compiled on non-ObjC runtime
...
Swift SVN r27716
2015-04-25 03:45:01 +00:00
Dave Abrahams
ccffa33dbe
[stdlib] Apply class Mirror review feedback
...
* Updated and fixed comments
* Use CustomLeafReflectable conformance rather than an argument to the
mirror constructor to denote class cluster roots
* Provide access to the subject type of the mirror
Swift SVN r27708
2015-04-24 20:51:03 +00:00
Doug Gregor
793b3326af
Implement the new rules for argument label defaults.
...
The rule changes are as follows:
* All functions (introduced with the 'func' keyword) have argument
labels for arguments beyond the first, by default. Methods are no
longer special in this regard.
* The presence of a default argument no longer implies an argument
label.
The actual changes to the parser and printer are fairly simple; the
rest of the noise is updating the standard library, overlays, tests,
etc.
With the standard library, this change is intended to be API neutral:
I've added/removed #'s and _'s as appropriate to keep the user
interface the same. If we want to separately consider using argument
labels for more free functions now that the defaults in the language
have shifted, we can tackle that separately.
Fixes rdar://problem/17218256.
Swift SVN r27704
2015-04-24 19:03:30 +00:00
Enrico Granata
2218118cd9
This is a version of dump() based on the new Mirror API
...
This is meant as both a porting effort and as an experimental bench for things the debugger might want dump() to do
Swift SVN r27697
2015-04-24 18:28:25 +00:00
Dave Abrahams
2a1ce9fca8
[stdlib] Mirror: minor pre-review cleanups
...
Swift SVN r27640
2015-04-23 19:52:38 +00:00
Chris Lattner
cd74bbd49b
convert some as? bindings in if/let patterns to use 'as' patterns, suggested by Joe. NFC.
...
Swift SVN r27628
2015-04-23 04:35:52 +00:00
Dave Abrahams
f82b18e1e5
[stdlib] Mirror: descendant class suppression
...
Swift SVN r27593
2015-04-22 17:23:59 +00:00
Dave Abrahams
d3f52de076
[stdlib] Mirror: handle chaining
...
Swift SVN r27592
2015-04-22 17:23:58 +00:00
Dave Abrahams
5f30f6bf23
[stdlib] Mirror: internal renaming
...
Swift SVN r27591
2015-04-22 17:23:57 +00:00
Dave Abrahams
877056f1fb
[stdlib] Mirror: store descendant representation
...
Swift SVN r27590
2015-04-22 17:23:56 +00:00
Dave Abrahams
45d72b9a02
[stdlib] Reorder Mirror parameters to match docs
...
Swift SVN r27589
2015-04-22 17:23:55 +00:00
Dave Abrahams
d955f0fae3
[stdlib] Revise Mirror initializer documentation
...
...explaining how the ancestor and descendant representation options
affect the result. NFC.
Swift SVN r27588
2015-04-22 17:23:55 +00:00
Dave Abrahams
ee72b0dc2f
[stdlib] Mirror: internal factorization
...
Swift SVN r27587
2015-04-22 17:23:54 +00:00
Dave Abrahams
90c7832264
[stdlib] Mirror: store the subjectType
...
We'll need this to properly handle CustomReflectable classes that don't
override customMirror().
Swift SVN r27504
2015-04-20 21:58:27 +00:00
Dave Abrahams
a711b508cc
[stdlib] SuperMirror renaming
...
also changed superclassMirror into a method, since I don't have any
confidence it's going to be O(1).
Swift SVN r27503
2015-04-20 21:58:26 +00:00
Dave Abrahams
702900eb87
[stdlib] Basic support for chained super-mirrors
...
Does not yet inject synthesized mirrors for intermediate classes.
Swift SVN r27502
2015-04-20 21:58:25 +00:00
Dave Abrahams
38f0dce7ba
[stdlib] Synthesized and Suppressed Super-Mirrors
...
Next up: chaining to the mirror for a customized base class
Swift SVN r27501
2015-04-20 21:58:25 +00:00
Dave Abrahams
62d958e322
[stdlib] Supply base class mirrors, v2
...
Swift SVN r27499
2015-04-20 21:58:23 +00:00
Dave Abrahams
60ba4d49f7
[stdlib] s/baseClass/superclass/ in Mirrors
...
Swift SVN r27498
2015-04-20 21:58:22 +00:00
Dave Abrahams
e905e7dc31
[stdlib] Supply base class mirrors
...
Swift SVN r27497
2015-04-20 21:58:22 +00:00
Dave Abrahams
0c8a717896
[stdlib] Don't report base as a Mirror child
...
This results in silly infinite recursions. We need an API change to
access the base instance mirror.
Swift SVN r27496
2015-04-20 21:58:21 +00:00
Dave Abrahams
d31a01e2ca
[stdlib] Mirror: s/instance/subject/ where possible
...
"Subject" is a little more specific about the role it plays in the mirror.
Swift SVN r27495
2015-04-20 21:58:20 +00:00
Dave Abrahams
754414c02d
[stdlib] Copy mirrors back to SwiftExperimental
...
So we can do API-breaking work
Swift SVN r27494
2015-04-20 21:58:19 +00:00
Dmitri Hrybenko
f1de46300a
stdlib: move readLine() API to the core standard library
...
This API has passed API review.
rdar://15911365
Swift SVN r27287
2015-04-14 20:30:12 +00:00
Dmitri Hrybenko
9c03811987
stdlib: add initializers from String to integer and floating-point types
...
rdar://17232531
Swift SVN r27159
2015-04-09 03:20:41 +00:00
Dave Abrahams
367b2e40f0
[stdlib] Mirror -> public/core
...
The new mirror design passed our API review and blocking bugs have been
fixed/worked-around, so integrating it into the core standard library.
Swift SVN r27082
2015-04-07 15:33:49 +00:00
Dave Abrahams
4ba169ae16
[stdlib] ExistentialCollection -> public/core
...
It passed our API review so integrating it into the core standard
library.
Swift SVN r27079
2015-04-07 15:12:10 +00:00
Dmitri Hrybenko
ff2dd6320a
stdlib: fix coding style
...
When colon specifies is-a relationship between types, we put spaces on
both sides of the colon.
Swift SVN r27016
2015-04-05 05:54:55 +00:00
Ben Langmuir
0c120e5914
Reapply r26926 after fixing SourceKit test
...
r26926 was reverted in r26930 because of a SourceKit failure, that was
fixed in r26945.
Swift SVN r26946
2015-04-03 19:04:50 +00:00
Greg Parker
f9ca55df0f
Revert r26926 which broke a SourceKit test.
...
Swift SVN r26930
2015-04-03 03:54:12 +00:00
Dave Abrahams
17de46f1c9
[stdlib] ExistentialCollection: perf de-regression
...
The performance regression that occurred when ++ and -- were added as
requirements to the Index protocols was due to the fact that it caused a
dubious hack of mine to be bypassed: when treated as indices, integer
types are incremented and decremented without overflow checking. While
technically justifiable (see the r20576 commit message), this makes the
standard library extremely fragile and makes successor() and
predecessor() mathematically unsafe. We really should see what the
optimizer team can do to make that hack unnecessary.
In the meantime, instead of dispatching through ++ and --, use a
special, defaulted _[successor|predecessor]InPlace() method to give
indices their own, customizable in-place inc/dec-rement path.
Swift SVN r26926
2015-04-03 02:39:40 +00:00
Dave Abrahams
35652f2d8d
[stdlib] Mirror: Nix ObjectiveCObject DisplayStyle
...
Enrico has agreed that it's no longer needed.
Swift SVN r26920
2015-04-03 00:22:16 +00:00
Dave Abrahams
2ccf038237
[stdlib] Mirror comment: add missing example
...
Swift SVN r26919
2015-04-03 00:16:41 +00:00
Dave Abrahams
44bd9c0c46
[stdlib] Mirror: Tweaks in response to API review
...
* Use "reflecting:" rather than "reflect:" as an argument label. It
reads more sensibly.
* Unify toString()/toDebugString() with other reflection APIs by converting
them into String initalizers, and by renaming Printable/DebugPrintable to
CustomStringConvertible and CustomDebugStringConvertible.
* Drop "make" prefix from "makeCustomMirror" and
"makeCustomPlaygroundQuickLook". It is not, as we had thought,
mandated by Cocoa naming guidelines.
Swift SVN r26918
2015-04-02 23:52:11 +00:00
Michael Gottesman
d53bff777b
Revert "[stdlib] ExistentialCollection -> public/core"
...
This reverts commit r26888. Trying to fix the build.
Swift SVN r26911
2015-04-02 22:55:29 +00:00
Chris Willmore
690daa539a
Back out changes for in-place methods/operators from Xcode 7.
...
This reverts commits r26508, r26545, and r26576.
Swift SVN r26900
2015-04-02 21:14:28 +00:00
Dave Abrahams
910c895346
[stdlib] ExistentialCollection -> public/core
...
It passed our API review so integrating it into the core standard
library.
Swift SVN r26888
2015-04-02 20:17:53 +00:00
Dave Abrahams
e0a0113333
[stdlib] ExistentialCollection: rename a parameter
...
Any name of the form 'nextXXX' is apt to be interpreted as "the next
XXX," which isn't appropriate here.
Swift SVN r26887
2015-04-02 20:04:17 +00:00
Dave Abrahams
e93a3e30db
[stdlib] ExistentialCollection: fix up comments
...
Swift SVN r26886
2015-04-02 20:04:16 +00:00