Max Moiseev
52f0cf49b0
[stdlib] indexOf => index(of:)/index(where:)
2016-02-23 11:45:11 -08:00
Dmitri Gribenko
2a91bfbc63
Merge pull request #1214 from kballard/flatmap-noescape
...
Add @noescape to SequenceType.flatMap
2016-02-23 11:16:29 -08:00
Pyry Jahkola
de92e93245
Remove @warn_unused_result from |=, &= and ^=
...
These functions modify their left operand in place and return nothing but `Void`.
2016-02-23 20:27:37 +02:00
Todd Fiala
ceb58eac1e
Merge branch 'master' of ssh://github.com/apple/swift
2016-02-22 22:00:10 -08:00
Todd Fiala
8ff40a3a22
Revert "Move pre-specializations of popular types away from the standard library."
...
This reverts commit 4d4c2cdba9 .
2016-02-22 21:18:32 -08:00
Xi Ge
dd74e1c0ef
[Serialization] Add a new front-end argument to specify the path of the group info file. NFC
2016-02-22 20:28:39 -08:00
Dmitri Gribenko
7235595264
Merge pull request #1108 from tinysun212/porting-to-cygwin
...
Porting to cygwin
2016-02-22 18:53:30 -08:00
swiftix
c978092bec
Merge pull request #1392 from swiftix/wip-prespecializations-module
...
Move pre-specializations of popular types away from the stdlib to reduce the stdlib code size.
2016-02-22 18:17:57 -08:00
Dmitri Gribenko
196188b9c8
stdlib: add 'to:' label to dump()
2016-02-22 18:16:38 -08:00
Dmitri Gribenko
3085c4937f
stdlib: add argument labels to _didEnterMain
2016-02-22 18:16:38 -08:00
Dmitri Gribenko
82998a155a
stdlib: _TeeStream: unlock streams in the order opposite to locking order
2016-02-22 18:16:38 -08:00
Dmitri Gribenko
e2f5e05ec4
stdlib: Streamable.writeTo() => .write(to:)
2016-02-22 18:16:37 -08:00
Dmitri Gribenko
8c3fbc51a4
stdlib: rename Optional and IUO intrinsics
2016-02-22 18:16:37 -08:00
Max Moiseev
4b9eab6288
appendContentsOf => appendContents(of:)
2016-02-22 18:02:04 -08:00
Max Moiseev
481bcabcba
[stdlib] API naming guidelines applied to split and join
...
- `separator` label for first argument of `split`
- `join` and related types are renamed to `joined`
2016-02-22 15:43:33 -08:00
Max Moiseev
fcad164e18
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-22 12:59:57 -08:00
Xi Ge
131612d260
Module group: Add protocol group.
2016-02-22 12:47:21 -08:00
Xi Ge
bd86f41ae3
Module group: Move Bit.swift to Math.
2016-02-22 12:47:21 -08:00
Joe Groff
a44b09b6b6
stdlib: Fix handling of standard library types in _typeByName.
...
Mangling for the Swift module is 's', not 'Ss'.
2016-02-22 12:40:38 -08:00
Max Moiseev
675f457c3d
Introducing by argument label to Sequence.split
2016-02-22 12:00:27 -08:00
Xi Ge
9b4f24ef71
Module group: Add Optional and Pointer groups.
2016-02-22 11:50:34 -08:00
Xi Ge
845304a90d
Module group: Address @natecook1000 and @dabrahams's comments.
2016-02-22 11:50:34 -08:00
Roman Levenstein
4d4c2cdba9
Move pre-specializations of popular types away from the standard library.
...
Pre-specializations were only used by Onone builds, but were kept inside the standard library dylyb anyways. This commit moves all the pre-specializations into a dedicated Swift module and a dynamic library, which are only used by Onone builds.
This reduces the code size of libswiftCore.dylib by 5%.
2016-02-22 07:54:44 -08:00
Han Sangjin
e06c7136cb
Porting to Cygwin. rebased and squashed
2016-02-22 13:20:21 +09:00
Dmitri Gribenko
f27315b6f8
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-20 15:36:04 -08:00
Dmitri Gribenko
3d3d4540e1
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-20 14:37:49 -08:00
Dmitri Gribenko
835ef4186c
Merge pull request #1381 from Nirma/constant_transform_closure
...
Change _transform from variable to constant
2016-02-20 14:25:28 -08:00
Xi Ge
0fc0f6dd23
Module groups: partially address @gribozavr and @natecook1000's comments.
2016-02-20 13:10:06 -08:00
Nicholas Maccharoli
7be032b146
Unify usage of shorthand
...
Use plus-equals shorthand instead of longhand throughout index.swift
2016-02-21 02:46:11 +09:00
Nicholas Maccharoli
09e884bac9
Change _transform from variable to constant
...
Since `_transform` never changes after being given an initial value in `init` it might be best to make it a constant.
2016-02-21 02:20:27 +09:00
Chris Lattner
76b2577236
Merge pull request #1377 from WorldDownTown/refactor_zero_count_separator
...
Rewrite _copyToNativeArrayBuffer to use early return if separator count is zero
2016-02-20 09:03:20 -08:00
WorldDownTown
bb762496bb
Rewrite _copyToNativeArrayBuffer to use early return if separator count is zero
2016-02-20 21:09:55 +09:00
Dmitri Gribenko
7e88bd7b2f
stdlib: remove dead code
2016-02-20 02:30:46 -08:00
Dmitri Gribenko
a5bdf9bc32
stdlib: Optional._unsafelyUnwrapped => ._unsafelyUnwrappedUnchecked
2016-02-20 00:55:36 -08:00
Dmitri Gribenko
a6696ef996
stdlib: lowercase option set names in a comment
2016-02-20 00:55:36 -08:00
Dmitri Gribenko
9968dee759
stdlib: remove dead code
2016-02-20 00:55:36 -08:00
Dmitri Gribenko
2c14a00de2
stdlib: add labels to DictionaryLiteral.Element tuple
2016-02-20 00:55:35 -08:00
Dmitri Gribenko
63481be8bd
stdlib: lowercase cases of the PlaygroundQuickLook enum
2016-02-20 00:55:35 -08:00
Dmitri Gribenko
ad604ed7c4
Merge pull request #1367 from practicalswift/remove-redundant-nil-initialization
...
[gardening] Remove redundant assignments: "var foo: Foo? = nil" → "var foo: Foo?"
2016-02-19 20:45:46 -08:00
Max Moiseev
78ba5d5f3f
[stdlib] Requires in comments changed to Precondition
2016-02-19 18:57:26 -08:00
Max Moiseev
40b1a0b7e0
[stdlib] all sorts of require renamed back to precondition
2016-02-19 18:21:29 -08:00
Xi Ge
239c803dbb
Module group: Add a Json file to primitively group stdlib source files.
2016-02-19 17:21:28 -08:00
Dmitri Gribenko
b1ef18fb75
stdlib: lowercase cases of AncestorRepresentation and DisplayStyle enums
2016-02-19 16:06:26 -08:00
Dmitri Gribenko
380a13e98f
stdlib: lowercase cases of the _DefaultDescendantRepresentation enum
2016-02-19 15:18:55 -08:00
Dmitri Gribenko
f64f0be93a
stdlib: ManagedBuffer.create(_:) => .create(minimumCapacity:)
2016-02-19 15:04:54 -08:00
Dmitri Gribenko
08229b21f7
stdlib: fix coding style
2016-02-19 15:04:54 -08:00
practicalswift
401fe4e577
[gardening] Remove redundant assignment: "var foo: Foo? = nil" → "var foo: Foo?"
2016-02-19 19:09:08 +01:00
Dmitri Gribenko
b90470e2fe
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-19 09:51:53 -08:00
Dmitri Gribenko
d18308d82b
Merge pull request #1365 from Nirma/join_logic_simplification
...
Logic simplification of next() function in JoinGenerator Struct.
2016-02-19 08:54:12 -08:00
Dmitri Gribenko
f39b443e24
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-19 01:16:19 -08:00