Ted Kremenek
942e524285
Revert "SE-0036: Requiring Leading Dot Prefixes for Enum Instance Member Implementations" ( #2477 )
2016-05-11 11:02:37 -07:00
Alex Hoppen
0e8c69c56f
[SE-0036]: Requiring Leading Dot Prefixes for Enum Instance Member Implementations
2016-05-07 22:39:26 +02:00
Dave Abrahams
9bee5d182f
[stdlib] location/formLocation => index/formIndex
2016-04-26 17:46:16 -07:00
Dmitri Gribenko
1fd86e3988
Remove the prototype for SE-0065 "A New Model for Collections and Indices", it was implemented
2016-04-25 14:12:12 -07:00
Dmitri Gribenko
b75d2b9df4
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-25 13:50:09 -07:00
Brian Gesiak
38741f3928
[test] Add Android (and FreeBSD) to OS checks
...
Add Android to the OS checks used to determine whether to import Glibc.
These tests would pass on Android were it not for the fact that Android is not
included in the Glibc check.
Also add FreeBSD where missing.
2016-04-25 10:58:32 -04:00
Dmitri Gribenko
0984f81a50
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-22 18:56:35 -07:00
Dave Abrahams
47a870cc50
[stdlib] Use location/formLocation for all index movement
2016-04-21 17:13:41 -07:00
practicalswift
092007bf12
[gardening] Fix recently introduced typos.
2016-04-19 21:48:05 +02:00
Dmitri Gribenko
fc8d62dfbb
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-18 14:40:06 -07:00
practicalswift
db452dcbe9
[gardening] "[ a, b ]" → "[a, b]"
2016-04-17 21:26:08 +02:00
practicalswift
c2107f456c
[gardening] "[ a, b ]" → "[a, b]" ( #2227 )
2016-04-17 21:02:18 +02:00
Chris Lattner
f51fcdbbb6
stop using deprecated constructs.
2016-04-17 10:20:12 -07:00
Chris Lattner
ae5f67c5e8
stop using deprecated language/lib features in these testcases.
2016-04-16 23:33:55 -07:00
Dmitri Gribenko
2b35fea059
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-16 00:30:12 -07:00
Chris Lattner
8746676616
Move @noescape and @autoclosure to their new places in various tests, NFC.
2016-04-15 16:05:35 -07:00
Dmitri Gribenko
cfea1a3f58
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-14 17:00:46 -07:00
Dmitri Gribenko
c52787e900
Merge commit '9cdbec13eee72feccfc5f8b987882a8c52e8107b' into swift-3-indexing-model
2016-04-14 16:23:53 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
practicalswift
dc6c2aeef6
[gardening] "Type->Type" → "Type -> Type" in Swift code
2016-04-13 23:03:55 +02:00
Dave Abrahams
1c3d998951
Revert "[gardening] "Type->Type" → "Type -> Type" in Swift code"
...
This reverts commit 14edeaf67a because
it's breaking tests:
https://ci.swift.org/job/oss-swift-incremental-RA-osx/lastFailedBuild/consoleFull#1361088108ee1a197b-acac-4b17-83cf-a53b95139a76
2016-04-13 10:29:57 -07:00
practicalswift
14edeaf67a
[gardening] "Type->Type" → "Type -> Type" in Swift code
2016-04-13 10:51:53 +02:00
swift-ci
55ebfd5d3c
Merge pull request #2159 from practicalswift/add-whitespace
2016-04-12 19:02:00 -07:00
Max Moiseev
36739f7b57
[stdlib] adding divRem to Integer in the prototype
2016-04-12 13:49:04 -07:00
Max Moiseev
1747ac782b
[stdlib] doc comments on Integer initializers
2016-04-12 13:49:04 -07:00
practicalswift
c760f6dfbf
[gardening] Add whitespace: "foo,bar" → "foo, bar"
2016-04-12 22:31:46 +02:00
Max Moiseev
4fd9f8155f
[stdlib] updating integers prototype
...
* `remainder` has been removed from `Arithmetic` protocol and added to
the `Integer`, so that floating point types can use it.
* `Arithmetic` protocol now extends `Equatable` and
`IntegerLiteralConvertible`
2016-04-12 12:09:09 -07:00
Jordan Rose
bc83940301
Make pointer nullability explicit using Optional.
...
Implements SE-0055: https://github.com/apple/swift-evolution/blob/master/proposals/0055-optional-unsafe-pointers.md
- Add NULL as an extra inhabitant of Builtin.RawPointer (currently
hardcoded to 0 rather than being target-dependent).
- Import non-object pointers as Optional/IUO when nullable/null_unspecified
(like everything else).
- Change the type checker's *-to-pointer conversions to handle a layer of
optional.
- Use 'AutoreleasingUnsafeMutablePointer<NSError?>?' as the type of error
parameters exported to Objective-C.
- Drop NilLiteralConvertible conformance for all pointer types.
- Update the standard library and then all the tests.
I've decided to leave this commit only updating existing tests; any new
tests will come in the following commits. (That may mean some additional
implementation work to follow.)
The other major piece that's missing here is migration. I'm hoping we get
a lot of that with Swift 1.1's work for optional object references, but
I still need to investigate.
2016-04-11 20:06:38 -07: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
Dmitri Gribenko
6985b958fd
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-04 11:42:17 -07:00
Dmitri Gribenko
5a12349e9c
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-01 14:12:13 -07:00
Slava Pestov
49c54870c1
Serialization: Auto-linking recursively walks modules imported from -sil-serialize-all modules
2016-04-01 12:21:36 -07:00
practicalswift
ea7299493f
Enable test case Integers.swift.gyb under x86_64 (and hence Linux x86_64)
2016-03-30 22:21:45 +02:00
Dave Abrahams
8e4f85277b
Merge remote-tracking branch 'refs/remotes/origin/master' into merge
2016-03-29 09:19:34 -07:00
Dave Abrahams
da5c4036ac
func index(n: IndexDistance, stepsFrom i: Index)
...
M-x findr-query-replace
\<func advance(\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,[
]*\)by \([^(),]*\|[^(),]+([^()]*)[^(),]*\)
func index(\3\2stepsFrom \1
2016-03-28 13:23:04 -07:00
Dave Abrahams
81d3e8ca83
limit: => limitedBy:, pt 2
...
M-x findr-query-replace
\<limit: \([^(),]*\|[^(),]+([^()]*)[^(),]*\))\( *\(?:[^ -]\|-[^>]\)\)
limitedBy: \1)\2
2016-03-28 13:12:02 -07:00
Dave Abrahams
4d651f8fc0
limit: => limitedBy:, pt 1
...
M-x findr-query-replace
\(,[
]*\)limit: \([^(),]*\|[^(),]+([^()]*)[^(),]*\)) ->
\1limitedBy limit: \2) ->
2016-03-28 13:03:59 -07:00
practicalswift
fe52c768d8
[gardening] Fix recently introduced typo: "homogenous" → "homogeneous"
2016-03-28 21:52:03 +02:00
practicalswift
345b942c72
[gardening] Fix PEP 8 regression.
2016-03-28 21:52:02 +02:00
Dave Abrahams
01127b32d5
index(n, stepsFrom: i)
...
M-x findr-query-replace
\<advance(\([^:]+?\),\([
]+\)by: *\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,\(?:[
]+\)limit: *\(?:[^()]*\|[^()]+([^()]*)[^()]*\)\)?)
index(\3,\2stepsFrom: \1\4)
2016-03-25 17:54:39 -07:00
practicalswift
d00a5ef814
[gardening] Weekly gardening: typos, duplicate includes, header formatting, etc.
2016-03-24 22:41:10 +01:00
Dave Abrahams
11259d1d14
[stdlib] indexing model: rename in-place indexing
...
This time, choose something that's at least compliant with the API
guidelines.
2016-03-23 17:16:20 -07:00
Dave Abrahams
8d9e62b274
[stdlib] indexing model: rename next/previous
...
I'm not too satisfied with the names for the updating: versions, but
this is a start.
2016-03-22 17:13:54 -07:00
Max Moiseev
e2a825a95c
[stdlib] doc comments and minor edits in integers prototype
2016-03-21 15:27:46 -07:00
Max Moiseev
2191ab21c6
[stdlib] WIP a generalized DoubleWidth integer type
2016-03-21 15:27:46 -07:00
Max Moiseev
164f42fe44
[stdlib] new naming applied to arithmetic operators in the integer prototype
2016-03-21 15:26:56 -07:00
Dmitri Gribenko
a6cd57222a
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-21 14:41:15 -07:00
Dave Abrahams
85972c7a22
[stdlib] indexing model: Fix Integers Prototypes
...
Down to 21 failures; only 5 in stdlib tests
2016-03-18 13:13:07 -07:00
Dave Abrahams
f493b54e44
[stdlib] indexing model: Interval/Range merge
...
This is step 1; we still need to introduce ClosedRange.
2016-03-16 15:59:10 -07:00
Dave Abrahams
dc90fdac12
[stdlib] Kill obsolete test prototype
...
Keeping it alive was more trouble than it was worth.
2016-03-16 15:59:04 -07:00