Doug Gregor
f245f18a09
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-omit-needless-words
2015-12-17 11:35:58 -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
e6468a0eca
_precondition => _require
2015-12-16 17:19:01 -08:00
Maxim Moiseev
ca932fca5a
CVarArgType => CVarArg
2015-12-16 15:52:01 -08:00
Dmitri Gribenko
3d0ad16094
Unsafe[Mutable]Pointer.memory => .pointee
2015-12-16 15:50:31 -08:00
Doug Gregor
2f5f94a12c
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-omit-needless-words
2015-12-15 17:11:37 -08:00
Daniel Duan
ebb0c3a204
replaced single-line ++/-- with +=/-=
2015-12-15 09:05:37 -08:00
Max Moiseev
786e1ea2b1
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-11 15:19:02 -08:00
Doug Gregor
06c5e9cd5b
Enable "omit needless words" by default.
...
Most of this is in updating the standard library, SDK overlays, and
piles of test cases to use the new names. No surprises here, although
this shows us some potential heuristic tweaks.
There is one substantive compiler change that needs to be factored out
involving synthesizing calls to copyWithZone()/copy(zone:). Aside from
that, there are four failing tests:
Swift :: ClangModules/objc_parse.swift
Swift :: Interpreter/SDK/Foundation_test.swift
Swift :: Interpreter/SDK/archiving_generic_swift_class.swift
Swift :: Interpreter/SDK/objc_currying.swift
due to two independent remaining compiler bugs:
* We're not getting partial ordering between NSCoder's
encode(AnyObject, forKey: String) and NSKeyedArchiver's version of
that method, and
* Dynamic lookup (into AnyObject) doesn't know how to find the new
names. We need the Swift name lookup tables enabled to address this.
2015-12-11 14:46:50 -08:00
hvy
4a7a5d4335
fixed typo
2015-12-11 11:09:45 +09:00
Maxim Moiseev
844b81c46b
SequenceType => Sequence
2015-12-09 17:16:56 -08:00
Dmitri Gribenko
2cf172160c
Rename SequenceType.Generator associated type to SequenceType.Iterator
2015-12-09 17:11:05 -08:00
Nick van der Ploeg
42b4b02df3
Fixed typos in comments throughout the project.
2015-12-07 12:15:52 -06:00
Ge Sen
7c3abdf974
Add whitespaces and erase redundant whitespaces.
2015-12-04 22:04:28 +08:00
Dave Abrahams
146d2daa9d
[stdlib] Add missing nullability to reflected NSString API
...
getBytes still lacks the ability to take an optional buffer, but Ali
agrees that we can leave that off for this release in light of the fact
that we have lengthOfBytesUsingEncoding.
Swift SVN r31223
2015-08-13 20:11:40 +00:00
Dmitri Hrybenko
a067fb004c
stdlib: re-add the part of the comment that was dropped during a refactoring
...
Swift SVN r31194
2015-08-12 23:41:58 +00:00
Dave Abrahams
06bb06452b
[stdlib] String.init(data: NSData, encoding: UInt)
...
Fixes <rdar://19872780>
Swift SVN r31191
2015-08-12 21:44:13 +00:00
Dave Abrahams
a8d56c3f54
[stdlib] Shuffle methods to keep comments in sync
...
Swift SVN r31190
2015-08-12 21:44:09 +00:00
Dave Abrahams
880f28b3fd
[stdlib] Add missing 10.10 NSString APIs.
...
containsString and localizedCaseInsensitiveContainsString were
introduced in 10.10, release-noted, but never
documented (<rdar://22236574>), so we missed them.
Fixes <rdar://18776075> String.containsString doesn't work in Swift
Swift SVN r31152
2015-08-12 00:37:43 +00:00
Dmitri Hrybenko
e587ef0086
SDK overlay: adopt @warn_unused_result
...
Swift SVN r31051
2015-08-06 15:54:52 +00:00
David Farler
8febbc1095
Suggest NSURL path methods instead of NSString
...
rdar://problem/22095657
Swift SVN r30978
2015-08-04 02:59:41 +00:00
David Farler
1f2390f1c7
Drop APIs from NSPathUtilities.h on String
...
rdar://problem/18848175
Swift SVN r30507
2015-07-22 22:12:56 +00:00
Joe Groff
d6f1178568
Foundation overlay: Deprecate String "PercentEscapesUsingEncoding" methods.
...
These have been superseded by newer APIs in Foundation, and Swift should follow suit. rdar://problem/21397308
Swift SVN r30356
2015-07-18 02:25:51 +00:00
Dmitri Hrybenko
687a70428d
Fix a warning in the SDK overlay
...
This change was committed and reverted multiple times over the past
month, but now it is safe since we have bumped the minimum required
SDKs.
Swift SVN r29269
2015-06-03 03:17:30 +00:00
Dmitri Hrybenko
1058f68bc6
Foundation overlay: add overlays for new NSString APIs
...
rdar://20856757
Swift SVN r29019
2015-05-26 03:29:01 +00:00
Ted Kremenek
a2c4ea971f
Revert "Foundation overlay: add overlays for new NSString APIs"
...
Revert until our Jenkins devices support the underlying NSString API. Keeping
this blocks iOS testing.
Swift SVN r28987
2015-05-24 16:55:25 +00:00
Dmitri Hrybenko
d45413efb8
Foundation overlay: add overlays for new NSString APIs
...
Swift SVN r28984
2015-05-24 10:39:21 +00:00
Joe Groff
32fb006386
Clang Importer: Enable OptionSetType import.
...
Update the tests to match.
Swift SVN r28906
2015-05-22 05:47:37 +00:00
Dmitri Hrybenko
53f3ccf850
stdlib: change CollectionType.count() into a property
...
Swift SVN r28829
2015-05-20 09:14:43 +00:00
Ted Kremenek
62feb5c949
Change @availability to @available.
...
This came out of today's language review meeting.
The intent is to match #available with the attribute
that describes availability.
This is a divergence from Objective-C.
Swift SVN r28484
2015-05-12 20:06:13 +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
Dmitri Hrybenko
61214ec55b
stdlib: remove Sliceable conformance from String
...
Swift SVN r28442
2015-05-11 20:58:31 +00:00
Chris Lattner
c1df892d47
improve stdlib hygiene a bit.
...
Swift SVN r28392
2015-05-10 02:55:18 +00:00
Dmitri Hrybenko
e24c262d6e
Foundation overlay: add String.stringByApplyingTransform()
...
This API is new in OS X 10.11 and iOS 9.0.
rdar://20645458
Swift SVN r28315
2015-05-08 08:36:44 +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
Ted Kremenek
7a96e55cde
Revert "Foundation overlay: add String.stringByApplyingTransform()"
...
Speculatively reverted because of iOS bot failure.
Swift SVN r28261
2015-05-07 14:00:16 +00:00
Dmitri Hrybenko
15a558f919
Foundation overlay: add String.stringByApplyingTransform()
...
This API is new in OS X 10.11 and iOS 9.0.
rdar://20645458
Swift SVN r28257
2015-05-07 06:54:15 +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
Dmitri Hrybenko
c109ec9125
stdlib: protocol extensions: de-underscore count()
...
Swift SVN r28246
2015-05-07 00:30:38 +00:00
Dmitri Hrybenko
e253881b02
stdlib: protocol extensions: de-underscore indices
...
Swift SVN r28245
2015-05-07 00:30:35 +00:00
Dave Abrahams
04d6928390
[stdlib] Pinging the compiler doesn't usually help
...
Swift SVN r28225
2015-05-06 23:06:58 +00:00
Chris Lattner
37f5452d15
require -> guard.
...
Swift SVN r28223
2015-05-06 22:53:38 +00:00
Ted Kremenek
92e6051cce
Revert "[stdlib] NSStringAPI: add stringByApplyingTransform"
...
Right now this is breaking our iOS bots. Let's temporarily revert while we investigate.
Swift SVN r28201
2015-05-06 15:58:05 +00:00
Dave Abrahams
a3270c105c
[stdlib] NSStringAPI: add stringByApplyingTransform
...
Swift SVN r28171
2015-05-05 17:35:43 +00:00
Ted Kremenek
bde7daa23d
Revert "[stdlib] NSStringAPI: add stringByApplyingTransform"
...
This is breaking NSStringAPI.swift on the bots.
Swift SVN r28084
2015-05-02 07:16:48 +00:00
Dave Abrahams
af07713820
[stdlib] NSStringAPI: add stringByApplyingTransform
...
Swift SVN r28082
2015-05-02 05:52:28 +00:00
John McCall
ac50cbc801
Enable error-handling in import by default.
...
Swift SVN r28048
2015-05-01 20:35:28 +00:00
Chris Lattner
31c01eab73
Change the meaning of "if let x = foo()" back to Xcode 6.4 semantics. The compiler
...
includes a number of QoI things to help people write the correct code. I will commit
the testcase for it as the next patch.
The bulk of this patch is moving the stdlib, testsuite and validation testsuite to
the new syntax. I moved a few uses of "as" patterns back to as? expressions in the
stdlib as well.
Swift SVN r27959
2015-04-30 04:38:13 +00:00
Dmitri Hrybenko
5ae502d1f5
Revert "NSStringAPI: Remove useless forced cast"
...
This reverts commit r27809. We're still building with SDKs that
requires the cast.
Swift SVN r27815
2015-04-27 19:39:33 +00:00
Slava Pestov
0de6e67a2f
NSStringAPI: Remove useless forced cast
...
Swift SVN r27809
2015-04-27 18:55:49 +00:00