Max Moiseev
d610fa0d1c
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-10 10:29:52 -08:00
Dmitri Gribenko
f3ecc3cdc5
transcode(..., stopOnError:) => transcode(..., stoppingOnError:)
2015-12-09 17:18:55 -08:00
Dmitri Gribenko
9ca2775aa1
String.appendContentsOf() => .append()
...
We don't want to imply that String argument is a collection of anything.
2015-12-09 17:18:33 -08:00
Dmitri Gribenko
b7f3d54f4d
removeAll(keepCapacity:) => removeAll(keepingCapacity:)
2015-12-09 17:18:08 -08:00
Dmitri Gribenko
f846ef6fd1
RangeReplaceableCollection.removeRange() => .removeSubrange()
2015-12-09 17:17:51 -08:00
Dmitri Gribenko
727f011314
RangeReplaceableCollection.insert(_:atIndex:) => .insert(_:at:)
2015-12-09 17:17:41 -08:00
Dmitri Gribenko
9a9ff305f1
RangeReplaceableCollection.replaceRange() => .replaceSubrange()
2015-12-09 17:17:34 -08:00
Maxim Moiseev
844b81c46b
SequenceType => Sequence
2015-12-09 17:16:56 -08:00
Maxim Moiseev
c678a839dc
IndexType => Index
2015-12-09 17:16:42 -08:00
Dmitri Gribenko
5a07f89297
Remove 'generator' from names of test functions and local variables
2015-12-09 17:15:11 -08:00
Dmitri Gribenko
4b1be0e78f
removeAtIndex() => removeAt()
2015-12-09 17:15:01 -08: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
Dmitri Gribenko
d72b5ab575
func SequenceType.enumerate() => var SequenceType.enumerated
2015-12-09 17:13:21 -08:00
Maxim Moiseev
7e2466c14e
CollectionType => Collection
2015-12-09 17:12:48 -08:00
Dmitri Gribenko
feacbc4433
Rename ErrorType to ErrorProtocol
2015-12-09 17:12:19 -08:00
Dmitri Gribenko
99d3f96c6d
Rename IndexingGenerator to CollectionDefaultIterator
2015-12-09 17:12:07 -08:00
Dmitri Gribenko
1c0047829a
Rename SequenceType.generate() to SequenceType.iterator()
2015-12-09 17:11:17 -08:00
Dmitri Gribenko
2cf172160c
Rename SequenceType.Generator associated type to SequenceType.Iterator
2015-12-09 17:11:05 -08:00
David Walter
dacd6834a6
Merge remote-tracking branch 'apple/master'
2015-12-08 20:28:54 +01:00
Nadav Rotem
a652945d9a
Revert "A small step towards removing C-style loops"
...
This reverts commit 0d001480a9 .
The commit that changed the iteration style from c-based loops into for-each
loops caused major regressions in our string benchmarks. Arnold believes that we
are making a different inlining decision in the for-each loops. We should
reapply this patch after we fix the optimizer
The regression was detected in rdar://23776732.
2015-12-08 09:17:17 -08:00
Arnold Schwaighofer
4b22a31154
ArraySemantics: Remove getArrayPropertyIsNative - we are only using
...
hoistableIsNativeTypeChecked these days.
2015-12-08 07:34:25 -08:00
Dmitri Gribenko
31598d41bf
Rename GeneratorType to IteratorProtocol
2015-12-07 17:08:32 -08:00
Max Moiseev
d0e1cb3a0e
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-07 16:43:20 -08:00
David Walter
4d80d1001b
Reverted unnecessary changes
2015-12-07 02:47:17 +01:00
David Walter
e178c513fd
Removed C-style loops and postincrements
...
Removed some C-style loops and postincrements
2015-12-06 16:38:47 +01:00
Dmitri Gribenko
4b8fff424b
Merge pull request #270 from hamin/cleaning-up-cstyle-loops
...
A small step towards removing C-style loops
2015-12-05 22:47:26 -08:00
Haris Amin
0d001480a9
A small step towards removing C-style loops
2015-12-06 01:07:24 -05:00
Inari
199ac1585d
Fix potentially inconsiderate/inaccurate naming
2015-12-05 18:31:53 +01:00
Inari
0e8a37bdee
Properly fix potentially inconsiderate naming
2015-12-05 01:01:53 +01:00
Erik Eckstein
0b8025430f
stdlib tests: Fix linker error on linux
2015-12-04 12:58:38 -08:00
Joe Groff
f97b46170f
Typo
2015-12-04 10:42:41 -08:00
pcbro
8bda440bb9
Fix inconsiderate naming
2015-12-04 10:01:57 +00:00
Roger Z
741a31bf57
whitespace
2015-12-03 16:41:15 -05:00
Dmitri Gribenko
174d475833
stdlib: Remove unavavailable APIs that were left as migration aids
...
These APIs are from the Swift 1.2 => Swift 2.0 transition, and are not
relevant anymore.
Removing them reduces the surface area of the library that needs to be
reviewed.
2015-12-02 01:19:50 -08:00
Erik Eckstein
461cf5359b
tests: Improve comment for StdlibUnittest-import workaround.
2015-11-30 13:11:00 -08:00
Erik Eckstein
308f39fe56
stdlib tests: add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.
...
rdar://problem/18917405
2015-11-19 15:18:18 -08:00
Michael Gottesman
45308f68b1
Try apply insts can also have guaranteed parameters.
...
This was a piece of code that was not updated with FullApplySite when try_apply
was added.
rdar://23505191
2015-11-19 08:33:56 -08:00
Chris Lattner
b219c9b9ee
Update validation test to reflect diagnostic changes. Have I ever mentioned
...
that it doesn't make sense for validation tests to be checking diagnostics?
2015-11-17 21:34:15 -08:00
Joe Groff
fbd2e4d872
Rename @asmname to @_silgen_name.
...
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
2015-11-17 14:13:48 -08:00
Xin Tong
6b1328d059
Reapply XFAIL OpenCLSDKOverlay.swift to appease the bots for now. Bug tracked in rdar//23505191
2015-11-14 06:43:42 -08:00
Xin Tong
670c105a9e
Revert "Reapply XFAIL OpenCLSDKOverlay.swift to appease the bots for now. Bug tracked in rdar//23505191"
...
This reverts commit 8c55907efd .
Committed some of my local changes.
2015-11-14 06:42:23 -08:00
Xin Tong
8c55907efd
Reapply XFAIL OpenCLSDKOverlay.swift to appease the bots for now. Bug tracked in rdar//23505191
2015-11-14 06:35:55 -08:00
Jordan Rose
bdc42e71d9
Revert several commits working around the autolinking breakage.
...
Swift was failing to autolink frameworks in the new text-based SDKs.
Clang r253060 fixes the underlying issue, so we can go back to relying
on autolinking for these.
This reverts the following commits (newest to oldest):
f658841
59092a3
7ea9d54
e52ef22
rdar://problem/23511008
2015-11-13 20:21:04 -08:00
Ted Kremenek
216e6d238f
Remove tests for SwiftPrivateSerialization (which was removed).
2015-11-13 15:21:07 -08:00
Michael Gottesman
f658841a5f
Just disable the GameplayKit test and do not link against GameplayKit everywhere.
...
Looks like there is a discrepency in between the public/private SDK with the
safety of just including GameplayKit everywhere.
rdar://23527707
2015-11-12 17:23:34 -08:00
Michael Gottesman
59092a3fa3
Disable a test until rdar23505191 is fixed.
2015-11-12 17:03:00 -08:00
David Farler
8f2fbdc93a
Make function parameters and refutable patterns always immutable
...
All refutable patterns and function parameters marked with 'var'
is now an error.
- Using explicit 'let' keyword on function parameters causes a warning.
- Don't suggest making function parameters mutable
- Remove uses in the standard library
- Update tests
rdar://problem/23378003
2015-11-09 16:56:13 -08:00
Ted Kremenek
fe93ae2879
Revert "Disable SwiftPrivateSerializationMsgPack.swift to appease the bots for now."
...
This reverts commit 34ac867eb7 .
2015-11-08 09:28:54 -08:00
Xin Tong
34ac867eb7
Disable SwiftPrivateSerializationMsgPack.swift to appease the bots for now.
...
Issue tracked in rdar://23456019. Will enable once problem fixed.
2015-11-08 09:11:39 -08:00
Erik Eckstein
6cca63cc67
Prevent dead code elimination in fixed point arithmetic trap test.
...
This is needed after commit [2504257 ] DeadCodeElimination: remove dead overflow producing operations together with the cond_fail which handles the overflow.
2015-11-04 15:01:11 -08:00