Arnold Schwaighofer
37b789007d
Disable Dictionary/Set.swift tests that fail in optimize mode
...
Disable the tests in optimize mode until we have fix to unblock builders.
rdar://27547957
2016-07-27 07:50:32 -07:00
Joe Groff
f1c0334d29
Autoreleasepool NSDictionary conversions in Dictionary validation tests.
...
Not sure if this is by design (cc @gribozavr), but the test harness counts the bridged values in these dictionaries as "leaks" if they aren't popped early.
2016-07-25 07:25:47 -07:00
Joe Groff
21c15d8fe9
Update validation tests for id-as-Any.
2016-07-25 06:40:37 -07:00
Andrew Trick
5a8271c621
Rename UnsafePointer allocate & deallocate. ( #3608 )
...
As proposed in SE-0107: UnsafeRawPointer:
Rename 'init(allocatingCapacity:)' to 'UnsafeMutablePointer.allocate(capacity:)'
Rename 'deallocateCapacity' to 'deallocate(capacity:)'
`allocate` should not be an initializer. It's primary function is to allocate
memory, not initialize a pointer.
2016-07-19 11:48:18 -07:00
Austin Zheng
d8b5a2a4fd
[stdlib] Improving Dictionary/Set tests to use fewer unsafeBitCasts
...
NFC
2016-06-24 10:12:16 -07:00
Mishal Shah
87b7bcfd3e
Update master to build with Xcode 8 beta 1, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs.
2016-06-14 14:53:55 -07:00
Rintaro Ishizaki
1bdce7ced6
[lit] Add substitutions: %utils and %line-directive
...
%utils => ${SWIFT_SOURCE_DIR}/utils
%line-directive => ${SWIFT_SOURCE_DIR}/utils/line-directive
2016-06-11 02:41:15 +09:00
Rintaro Ishizaki
4d686a424f
[Parser] Don't report AttrsRequiringFoundation in inactive config block
...
Fixes rdar://problem/23487944
2016-05-26 02:43:21 +09:00
swift-ci
9af514f994
Merge pull request #2544 from rintaro/test-nondarwin-1
2016-05-16 21:30:10 -07:00
Dmitri Gribenko
0868b6f70c
stdlib: Dictionary, Set: allow querying for a mismatched type when bridged
...
Swift's Dictionary and Set are typed, but when bridged to NSDictionary
and NSSet they should behave accordingly, that is, allow querying for
keys of arbitrary types.
rdar://problem/23679193
2016-05-16 15:30:44 -07:00
Rintaro Ishizaki
52ecb88256
[stdlib] Enable Dicitionary validation test on non-Darwin platforms
2016-05-17 03:06:58 +09:00
Ted Kremenek
d3c41c4668
Revert "Revert "SE-0072: Fully eliminate implicit bridging conversions from Swift"" ( #2441 )
2016-05-06 23:26:45 -07:00
Ted Kremenek
4df003c291
Revert "SE-0072: Fully eliminate implicit bridging conversions from Swift" ( #2440 )
2016-05-06 23:22:56 -07:00
Joe Pamer
6af546e89e
Merge pull request #2419 from apple/se-0072
...
SE-0072: Fully eliminate implicit bridging conversions from Swift
2016-05-06 22:14:13 -07:00
Joe Pamer
ca1b5256d1
Update another test for explicit bridging conversions.
2016-05-06 21:26:42 -07:00
Dmitri Gribenko
0562763c7b
stdlib tests: remove unnecessary argument labels
2016-05-06 14:52:30 -07: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
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
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
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
9169c37802
Use check*AssociatedTypes() on Set and Dictionary
2016-04-08 18:46:00 -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
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
Slava Pestov
49c54870c1
Serialization: Auto-linking recursively walks modules imported from -sil-serialize-all modules
2016-04-01 12:21:36 -07:00
Max Moiseev
a43a46c8ba
[stdlib][swift-3-indexing-model] making Dictionary validation tests pass
2016-03-22 12:05:22 -07:00
Doug Gregor
d92ae77076
Eliminate most remaining uses of _convertNSFooToFoo and _convertFooToNSFoo.
...
Generalized bridging has fully subsumed most of these. NSError is
still special, and _convertStringToNSString remains for the the
runtime's implementation of SwiftObject's -description method.
2016-03-18 11:42:00 -07:00
Slava Pestov
55519871e0
validation-tests: Don't use AnyObject dispatch in Dictionary.swift
...
Fixes <rdar://problem/25023473>.
2016-03-11 13:25:54 -08:00
Max Moiseev
7fe6916bf6
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-07 12:10:47 -08:00
Max Moiseev
859db53d87
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-01 12:56:26 -08:00
Emanuel Zephir
a4e8ee04e0
[StdLib] Refactor DictionaryKeyValueTypes test input data
...
Split the input file into a pure Swift and Objective-C interop files in
anticipation of refactoring tests to remove XFAILs on Linux.
2016-02-29 22:49:35 -08:00
Jordan Rose
e45dfe09c6
stdlib: Rename 'Native'/'Cocoa' representations inside Dictionary/Set.
...
...and then because of a compiler bug (SR-806), rename the helper
properties to 'asNative' and 'asCocoa'.
None of this is API, so there is no migration information.
2016-02-24 17:46:12 -08:00
Max Moiseev
bb3eaaf308
Merging in latest master
2016-02-24 15:10:25 -08:00
Janosch Hildebrand
3c4bb1d657
[stdlib] Replace uses of ++ in validation tests
2016-02-24 01:59:18 +01:00
Max Moiseev
42d5f30d3a
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-api-guidelines
2016-02-23 14:45:21 -08:00
Max Moiseev
0b759a409c
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-23 14:26:14 -08:00
Dmitri Gribenko
f0633ce5a9
stdlib: Sequence.iterator() => .makeIterator()
2016-02-23 13:52:30 -08:00
Max Moiseev
52f0cf49b0
[stdlib] indexOf => index(of:)/index(where:)
2016-02-23 11:45:11 -08:00
Dmitri Gribenko
65d840c0ae
stdlib: lowercase cases in Optional and ImplicitlyUnwrappedOptional
2016-02-18 00:40:33 -08:00
Dmitri Gribenko
dd75aed67a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-17 14:40:05 -08:00
Dmitri Gribenko
25cc2d5695
stdlib: add first argument labels to Set and Dictionary
2016-02-15 23:48:02 -08:00
Dmitri Gribenko
efaa39ea79
stdlib: add first argument labels and some other changes to conform to API guidelines
2016-02-15 23:47:54 -08:00
Max Moiseev
3a3984877a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-15 15:43:34 -08:00
Max Moiseev
55fde4c923
making tests pass
2016-02-10 16:08:40 -08:00
Max Moiseev
61c837209b
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-04 16:13:39 -08:00
Dmitri Gribenko
4c590585e0
Move Default* and Minimal* colections to StdlibCollectionUnittest
...
New StdlibUnittest build times:
* DebugAssert compiler and library: 50s
* ReleaseAssert compiler and library: 75s
2016-01-26 18:58:04 -08:00