practicalswift
14edeaf67a
[gardening] "Type->Type" → "Type -> Type" in Swift code
2016-04-13 10:51:53 +02:00
Max Moiseev
316c1b088b
[stdlib][swift-3-indexing-model] implementing missing methods in Reverse
...
... and un-xfailing corresponding validation tests.
2016-04-12 16:13:02 -07:00
practicalswift
c760f6dfbf
[gardening] Add whitespace: "foo,bar" → "foo, bar"
2016-04-12 22:31:46 +02:00
Jordan Rose
315761c4cf
[ClangImporter] Don't assume inner pointers are nullable.
...
Some inner pointers are explicitly annotated as _Nonnull, and we
should believe that. This is important when passing, say, pointers
to arrays.
2016-04-11 20:06:41 -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
Max Moiseev
0124bd261f
[stdlib][swift-3-indexing-model] un-commenting and un-spliting .lazy usages
2016-04-11 17:58:52 -07:00
Dmitri Gribenko
d52cbab5c2
Merge commit '0ff3239b962218267d37307e53906b31315a1cfc' into swift-3-indexing-model
...
This commit is the parent of the commit that implemented SE-0046
Establish consistent label behavior across all parameters including
first labels
2016-04-09 16:18:33 -07:00
Dmitri Gribenko
f4987d02ec
stdlib: new indexing model: Forward more methods in AnyCollection
2016-04-08 20:29:10 -07:00
Dmitri Gribenko
a200c7ad8e
stdlib: new indexing model: implement slicing on AnyCollection
2016-04-08 20:27:44 -07:00
Dmitri Gribenko
9169c37802
Use check*AssociatedTypes() on Set and Dictionary
2016-04-08 18:46:00 -07:00
Dmitri Gribenko
d18775e91d
Make ExistentialCollection.swift test slightly easier for the type checker
2016-04-08 17:40:39 -07:00
Max Moiseev
fee941fc00
[stdlib][swift-3-indexing-model] fixing usages of successor/predecessor that have recently became internal
2016-04-08 17:03:29 -07:00
Max Moiseev
2e75c815e3
[stdlib][swift-3-indexing-model] speeding up compilation of Concatenate test
2016-04-08 16:44:17 -07:00
Max Moiseev
e6b36434c3
[stdlib][swift-3-indexing-model] fixing ObjectiveC_without_Foundation test
2016-04-08 16:16:54 -07:00
Max Moiseev
1a875cb922
[stdlib][swift-3-indexing-model] speeding up the compilation
2016-04-08 11:06:05 -07:00
Max Moiseev
590f62f3bd
[stdlib][swift-3-indexing-model] introducing new LazyCollections
...
- Instead of just one there are now three:
- LazyCollection
- LazyBidirectionalCollection
- LazyRandomAccessCollection
- ReversedCollection now conforms to BidirectionalCollection
- Lazy tests compile and run (#if'ed pieces that don't typecheck)
2016-04-08 11:06:05 -07:00
Chris Willmore
73d5077bae
Add API notes for Foundation following internal Swift 3 naming audit.
2016-04-07 20:35:18 -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
Max Moiseev
b7a1b1d1e0
Revert "[stdlib][swift-3-indexing-model] introducing new LazyCollections"
...
This reverts commit 5ad441f35a .
2016-04-06 13:07:31 -07:00
Max Moiseev
5ad441f35a
[stdlib][swift-3-indexing-model] introducing new LazyCollections
...
- Instead of just one there are now three:
- LazyCollection
- LazyBidirectionalCollection
- LazyRandomAccessCollection
- ReversedCollection now conforms to BidirectionalCollection
- Lazy tests compile and run (#if'ed pieces that don't typecheck)
2016-04-06 10:11:30 -07:00
Max Moiseev
8209749489
[stdlib][swift-3-indexing-model] fixing CoreAudio tests
2016-04-06 10:11:30 -07:00
Max Moiseev
42732de835
[stdlib][swift-3-indexing-model] fixing CollectionDiagnostics test
2016-04-06 10:11:30 -07:00
Jordan Rose
5f04b8c4fe
[test] Speculative fix for failing WatchKit test.
2016-04-06 09:16:39 -07:00
Dmitri Gribenko
af92162f6b
Migrate validation-test/stdlib/NewArray.swift.gyb to LifetimeTracked
2016-04-05 15:39:30 -07:00
Dmitri Gribenko
65044f2d29
New indexing model: fix validation-test/stdlib/NewArray.swift.gyb
2016-04-05 15:39:30 -07:00
Dmitri Gribenko
d5911124cf
New indexing model: fix validation-test/stdlib/RangeReplaceable.swift.gyb
2016-04-05 15:39:30 -07:00
Dmitri Gribenko
cc417c160c
Validation tests: remove tests that are duplicate with validation-test/stdlib/Collection
2016-04-04 18:53:04 -07:00
Dmitri Gribenko
9c392bfdcb
StdlibCollectionUnittest: generalize MutableCollection.SubSequence.subscript(_: Range)/Set tests
2016-04-04 18:38:11 -07:00
Dmitri Gribenko
1fe5f04ce5
New indexing model: fix the validation-test/stdlib/Sort.swift.gyb test
2016-04-04 16:13:45 -07:00
Dmitri Gribenko
3e8dd1fa7c
New indexing model: fix the validation-test/stdlib/String.swift test
2016-04-04 15:43:29 -07:00
Dmitri Gribenko
536107c35f
New indexing model: fix the validation-test/stdlib/StringViews.swift test
2016-04-04 14:23:18 -07:00
Dmitri Gribenko
8965e53907
New indexing model: fix the validation-test/stdlib/UnicodeTrie.swift.gyb test
2016-04-04 12:59:28 -07:00
Dmitri Gribenko
6985b958fd
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-04 11:42:17 -07:00
practicalswift
abfecfde17
[gardening] if ([space]…[space]) → if (…), for(…) → for (…), while(…) → while (…), [[space]x, y[space]] → [x, y]
2016-04-04 16:22:11 +02:00
Mike Ferris
a3b880a9bf
<rdar://problem/25034414> Enable unit tests for test methods that throw once the open source CI is on 7.3
2016-04-02 07:26:55 -07:00
Dmitri Gribenko
a5ad2b802c
Remove a test that was migrated to StdlibCollectionUnittest
2016-04-02 02:50:12 -07:00
Dmitri Gribenko
6830edd210
New indexing model: fix validation-test/stdlib/Unicode.swift
2016-04-02 02:45:35 -07:00
Dmitri Gribenko
7d82037309
Slice tests: update expectations: creating out of bounds indices traps now
2016-04-01 14:14:56 -07:00
Dmitri Gribenko
37c4d70eb9
Split collection tests for better parallelism
2016-04-01 14:14:56 -07:00
Dmitri Gribenko
4066326c6c
Move GenerateSliceTests.py to utils/split-generated-tests, it will be used for other tests, too
2016-04-01 14:12:19 -07:00
Max Moiseev
171169b01f
[stdlib][swift-3-indexing-model] fixing Arrays tests
2016-04-01 14:12: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
Max Moiseev
2fd41315d2
[stdlib][swift-3-indexing-model] fixing SequenceType tests
2016-04-01 14:11:54 -07:00
Dmitri Gribenko
8fbe94fe01
New indexing model: make validation-test/stdlib/CollectionType.swift.gyb compile (but not pass yet)
2016-04-01 14:11:53 -07:00
Dmitri Gribenko
dcf919c2a2
New indexing model: fix validation-test/stdlib/Join.swift.gyb
2016-04-01 14:11:53 -07:00
Dmitri Gribenko
4750f3ba50
New indexing model: fix validation-test/stdlib/Index.swift.gyb
2016-04-01 14:11:52 -07:00
Dmitri Gribenko
208e34275f
New indexing model: fix test/1_stdlib/Collection.swift
2016-04-01 14:11:52 -07:00
Dmitri Gribenko
7e0661b31f
New indexing model: re-generate Slice* tests
2016-04-01 14:11:50 -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
Dmitri Gribenko
c5a11b0dc0
stdlib testing: make PRNG from SwiftPrivate deterministic
2016-03-30 19:35:23 -07:00