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
Dave Abrahams
577bb7431c
stdlib: fix renaming mistake
2016-02-23 13:19:54 -08:00
Dave Abrahams
158adab721
stdlib: Add 'invoke:' label to withVaList
2016-02-23 13:14:43 -08:00
Dave Abrahams
acd97e3e88
Improve a doc comment
2016-02-23 13:14:43 -08:00
Dmitri Gribenko
dd75aed67a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-17 14:40:05 -08:00
Nate Cook
51251dc133
Convert imperative function summaries to present.
...
i.e., "Return ..." -> "Returns ..."
2016-02-12 04:20:39 -06:00
William Dillon
582c268ae9
Add support for __gnuc_va_list to ClangImporter
...
The implementation of va_list is pretty inconsistent across platforms.
On linux-arm __gnuc_va_list is the type used. This change adds that to ClangImporter.
The change to the test is optional, but it dramatically improves the error message printed to the console when the test fails.
Finally, the change to the application of alignment padding is due to the fact that all ARM platforms other than iOS need AAPCS-complient alignemnt.
2016-02-12 03:16:44 +00:00
Dmitri Gribenko
9bcd5a1056
Collection.length => .count
2016-01-22 18:41:19 -08:00
Dmitri Gribenko
74ce1ca79c
Add unavailable declarations for Swift 2.2 -> 3 migration
2016-01-19 14:32:59 -08: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
a7339e67ac
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-22 11:36:07 -08:00
Suguru Kishimoto
b87782d95e
[Fix] Use count += 1 instead of count++ .
2015-12-22 18:14:20 +09:00
Chris Lattner
66f7ef1295
Move stdlib off ++ and --
2015-12-21 18:07:36 -08:00
Doug Gregor
a97ab6dd14
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-18 10:15:47 -08:00
Dmitri Gribenko
4cd48e0f56
public class VaListBuilder => internal class _VaListBuilder
2015-12-17 16:28:39 -08:00
Dmitri Gribenko
73ce9ae7e9
Collection.count => .length
...
And other API changes that naturally fall out from this, like
Array(repeating:count:) => Array(repeating:length:).
2015-12-17 15:55:29 -08:00
Max Moiseev
3fe0c60d7f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-17 11:00:02 -08:00
Maxim Moiseev
0e54467bfa
Final bulk removal of Type suffix
2015-12-16 17:06:19 -08:00
Maxim Moiseev
ca932fca5a
CVarArgType => CVarArg
2015-12-16 15:52:01 -08:00
Daniel Duan
ebb0c3a204
replaced single-line ++/-- with +=/-=
2015-12-15 09:05:37 -08:00
Max Moiseev
806be29941
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-14 12:05:35 -08:00
T. Yamada
6773f9367a
Add withVaList() for environments without ObjC
2015-12-12 22:31:49 +09:00
Dmitri Gribenko
df17ddbc9b
init(count: Int, repeatedValue: Element) => init(repeating:count:)
...
Affected types: _ArrayType, Array, ArraySlice, ContiguousArray, Repeat,
String (initializers from Character and UnicodeScalar)
2015-12-09 17:14:37 -08:00
Maxim Moiseev
7372e9e045
COpaquePointer => OpaquePointer
2015-12-07 16:52:45 -08:00
Dmitri Hrybenko
dd3194a18c
stdlib: adopt @warn_unused_result
...
rdar://20957486
Swift SVN r31048
2015-08-06 14:53:18 +00:00
Dmitri Hrybenko
f5de8757e4
stdlib: remove Word and UWord
...
These types are leftovers from the early pre-1.0 times when Int and UInt
were always 64-bit on all platforms. They serve no useful purpose
today. Int and UInt are defined to be word-sized and should be used
instead.
rdar://18693488
Swift SVN r30564
2015-07-24 05:01:32 +00:00
Greg Parker
fe303f13e1
[stdlib] Fix vararg processing on armv7k.
...
rdar://21142268
Swift SVN r29243
2015-06-02 18:21:04 +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
Ted Kremenek
42cccf07b2
Make CFunctionPointer, GeneratorOf, SequenceOf unavailable.
...
Implements rdar://problem/20477688
Swift SVN r28459
2015-05-12 06:28:02 +00:00
Chris Lattner
c1df892d47
improve stdlib hygiene a bit.
...
Swift SVN r28392
2015-05-10 02:55:18 +00:00
Dmitri Hrybenko
8b392eeea9
Revert "Remove Array.count, it is redundant with protocol extensions"
...
This reverts commit r28247 while we discuss the change.
Swift SVN r28292
2015-05-07 21:45:30 +00:00
Dmitri Hrybenko
58601fafc8
Remove Array.count, it is redundant with protocol extensions
...
Swift SVN r28247
2015-05-07 00:30:41 +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
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
Joe Groff
cce80114fc
stdlib: Deprecate CFunctionPointer.
...
rdar://problem/20477688 is tracking making this (and other things) unavailable when Xcode 7 is released.
Swift SVN r27626
2015-04-23 04:24:34 +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
4edc305438
stdlib: change CVarArgType._encode() method into a '_cVarArgEncoding'
...
property per API review proposal that passed review
For a given type, obtaining its C vararg encoding is O(1) for any
instance.
Swift SVN r26794
2015-04-01 02:55:24 +00:00
Dmitri Hrybenko
cf912bcaae
stdlib: underscore the only requirement of CVarArgType
...
Defining conformances to CVarArgType outside of the standard library is
not supported.
Swift SVN r26793
2015-04-01 02:16:15 +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