Ada Turner
1c2a17637a
Fix typo in Bool.swift
...
Fix typo in documentation where the "Prints <result>" comment had a parenthesis at the end, probably from coping and pasting out of the code example.
2016-10-19 15:55:12 -06:00
Christian Hoffmann
ae7728cc7d
Make Bool example compileable
2016-10-18 10:19:05 +02:00
Roman Levenstein
e155caedd3
Boolean || and && operators should be declared as @_transparent.
...
This recovers the performance reported in [SR-2247](https://bugs.swift.org/browse/SR-2247 ) and rdar://27645751
2016-08-01 18:10:34 -07:00
Robert Widmann
4c2dbe1723
[stdlib][SE-0089] Finish off Lossless String Conversion ( #3761 )
...
* Rename string reflection init
* Addressing PR comments and updating some tests
* Update test suite for lossless string conversion
2016-07-28 17:13:25 -07:00
Patrick Pijnappel
2728bd0145
[stdlib] Standardize function signature spacing
2016-07-23 11:51:32 +10:00
Doug Gregor
42a3e36c15
[SE-0091 Follow-up] Move !, &&, and || onto an extension of Bool.
...
The diagnostics changes make the compiler more robust in its diagnosis
of uses of operators defined in types.
2016-07-21 12:54:27 -07:00
Dmitri Gribenko
b2fa610bef
stdlib: add a COMPILER_INTRINSIC marker
2016-07-18 02:41:19 -07:00
Chris Lattner
af30ae3222
Remove the last parts of the Boolean protocol, finishing up:
...
SE-0109: Remove the Boolean protocol.
We still love you George, even if we forgot your e.
2016-07-17 22:18:17 -07:00
Chris Lattner
a0d34852bb
Revert "Fix the build."
...
This reverts commit 932fe9d6b9 .
2016-07-17 12:35:42 -07:00
Michael Gottesman
932fe9d6b9
Fix the build.
...
This reverts commit 4242af7503 .
This reverts commit 76cf339694 .
This reverts commit e97ed133a8 .
This reverts commit 66961fcda8 .
2016-07-17 01:02:48 -07:00
Chris Lattner
76cf339694
Implement the first half of SE-0109: Remove the Boolean protocol
...
This removes conformance of DarwinBool and ObjCBool to the Boolean protocol,
and makes the &&/||/! operators be concrete w.r.t. Bool instead of abstract
on Boolean.
This fixes some outstanding bugs w.r.t diagnostics, but exposes some cases
where an existing diagnostic is not great. I'll fix that in a later patch
(tracked by rdar://27391581).
2016-07-16 23:23:45 -07:00
Robert Widmann
f97e5dcb0e
[SE-0115][1/2] Rename *LiteralConvertible protocols to ExpressibleBy*Literal. This
...
change includes both the necessary protocol updates and the deprecation
warnings
suitable for migration. A future patch will remove the renamings and
make this
a hard error.
2016-07-12 15:25:24 -07:00
Nate Cook
44b2d56a7f
[stdlib] Revise documentation for string-related types
...
This documentation revision covers a large number of types & protocols:
String, its views and their indices, the Unicode codec types and protocol,
as well as Character, UnicodeScalar, and StaticString, among others.
This also includes a few small changes across the standard library for
consistency.
2016-05-22 03:04:22 -05:00
Dmitri Gribenko
d591f9cf7a
stdlib: remove most uses of @warn_unused_result, which does nothing now
...
I kept the one on sorted(), because that one requires a less trivial
change.
2016-05-19 18:39:39 -07:00
Nate Cook
982e3d09f8
[stdlib] Revise documentation for new indexing model
...
This revises and expands on documentation for the new collection methods
for working with indices and the revised Swift 3 set APIs. In addition,
it includes documentation for the new range types.
2016-05-19 10:16:14 -05:00
Nate Cook
9f326385d6
[stdlib] Revise documentation for core types and protocols
...
This adds to and expands upon documentation for some core parts of the
standard library, including Optional, ErrorProtocol, AnyObject, and Bool.
2016-05-09 16:41:20 -05:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Jordan Rose
6dd1f0a5f9
[stdlib] Apply @_fixed_layout to various stdlib and overlay types
...
This is a staging attribute that will eventually mean "fixed-contents"
for structs and "closed" for enums, as described in
docs/LibraryEvolution.rst.
This is pretty much the minimal set of types that must be fixed-layout,
because SILGen makes assumptions about their lowering.
If desired, some SILGen refactoring can allow some of these to be
resilient. For example, bridging value types could be made to work
with resilient types.
2016-04-01 13:07:18 -07:00
Slava Pestov
7b91cbd551
stdlib: Add @_versioned attributes needed for resilient build
2016-04-01 13:07:18 -07:00
Max Moiseev
7fe6916bf6
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-07 12:10:47 -08:00
Hugh Bellamy
c1b25bb32f
[gardening] Remove double new lines from stdlib files
2016-03-05 15:44:54 +00:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Max Moiseev
2021dd5a4d
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-15 12:49:22 -08:00
Patrick Pijnappel
86e25e7e57
[stdlib] Fix word join grammar
2015-12-13 21:37:31 +11:00
Maxim Moiseev
2c95bb6d51
BooleanType => Boolean
2015-12-10 14:56:32 -08:00
Jordan Rose
cf8baedee2
Re-apply "Rename @transparent to @_transparent for now."
...
This re-applies 90fcbfe9a6 . I'll be committing
the corresponding change to Foundation momentarily.
2015-11-16 10:53:56 -08:00
Xin Tong
16843684b2
Revert "Rename @transparent to @_transparent for now."
...
This reverts commit 90fcbfe9a6 .
Seems there are still some tests that are left not modified.
2015-11-14 07:04:31 -08:00
Jordan Rose
90fcbfe9a6
Rename @transparent to @_transparent for now.
...
This feature has not been fully designed, let alone properly implemented.
For more information, see docs/TransparentAttr.rst.
2015-11-13 16:25:34 -08:00
Dmitri Hrybenko
4375a463a7
stdlib: rename Int**.value and Float**.value to _value per naming convention
...
rdar://21357661
Swift SVN r32096
2015-09-20 00:01:13 +00:00
Dmitri Hrybenko
dd3194a18c
stdlib: adopt @warn_unused_result
...
rdar://20957486
Swift SVN r31048
2015-08-06 14:53:18 +00:00
Dmitri Hrybenko
313701286b
stdlib: Various punctuation and markup improvements to the comments.
...
Patch by Brian Lanier.
Swift SVN r28659
2015-05-16 03:04:51 +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
David Farler
9e28dc777a
Update standard library doc comments to Markdown
...
rdar://problem/20180478
Swift SVN r27726
2015-04-26 00:07:11 +00:00
Dave Abrahams
ac3f047496
[stdlib] Renaming fallout from Mirror API review
...
toString(x) => String(x)
toDebugString(x) => String(reflecting: x)
Printable => CustomStringConvertible
DebugPrintable => CustomDebugStringConvertible
Also updated comments to clarify these protocols
Swift SVN r27090
2015-04-07 20:32:26 +00:00
Dmitri Hrybenko
1b9ca12c5b
stdlib: remove old declarations that were marked unavailable
...
rdar://20169533
Swift SVN r27020
2015-04-05 09:15:49 +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
Dmitri Hrybenko
350248dae5
Reorganize the directory structure under 'stdlib'
...
The standard library has grown significantly, and we need a new
directory structure that clearly reflects the role of the APIs, and
allows future growth.
See stdlib/{public,internal,private}/README.txt for more information.
Swift SVN r25876
2015-03-09 05:26:05 +00:00