Dave Abrahams
17cb21ea7e
[stdlib] Move some test resources to StdlibCollectionUnittest
2016-04-22 17:59:58 -07:00
Dave Abrahams
66472fadcd
[stdlib] Reindent / fix 80-column violations
2016-04-22 16:09:10 -07:00
Max Moiseev
e1104af665
[stdlib][swift-3-indexing-model] rephrasing doc comments
2016-04-22 13:09:10 -07:00
Dmitri Gribenko
54d81b6633
Rewrite tests for _copyToNativeArrayBuffer() default implementations to use StdlibCollectionUnittest infrastructure
2016-04-21 18:31:31 -07:00
Dave Abrahams
47a870cc50
[stdlib] Use location/formLocation for all index movement
2016-04-21 17:13:41 -07:00
Slava Pestov
98abbdb332
Emit reflection metadata, but not reflection names, by default
...
This allows the reflection type lowering test to pass with the
default build configuration.
2016-04-21 15:15:30 -07:00
Dave Abrahams
adb8ade39a
[stdlib] Fix some test names.
...
The names of the corresponding methods changed a while ago.
2016-04-21 13:09:41 -07:00
Jordan Rose
2e3662d1e7
[stdlib] Tweak callback for pthread_create to avoid signature issues. ( #2245 )
...
Use a wrapper closure to infer the correct argument and result type;
continue using an IUO for the result type to allow implicit conversion.
2016-04-20 11:44:01 -07:00
Brian Gesiak
b2cf7b5d61
[android] Guard spawn.h import
...
`spawn.h` isn't available on Android. Put its import behind an
`#if defined(__ANDROID__)` in order to fix the Android build.
2016-04-19 17:34:51 -04:00
Dmitri Gribenko
fc8d62dfbb
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-18 14:40:06 -07:00
Dmitri Gribenko
3e23907f13
stdlib: fix warnings about deprecated @noescape and @autoclosure syntax
2016-04-18 14:07:23 -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
2acbb24e18
add some dead code back that Slava needs for his work on resilience.
2016-04-17 10:21:52 -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
4fd8418ba7
move the stdlib to put noescape and autoclosure on the type, instead of
...
the parameter. Progress towards SE-0049.
2016-04-14 23:13:43 -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
3e708a9328
Merge commit '8e292daec1bc790c96b5ee39b8d55dadcac6ce1b' into swift-3-indexing-model
2016-04-14 15:10:26 -07:00
Dmitri Gribenko
735f1287b0
Merge remote-tracking branch 'origin/swift-3-indexing-model' into swift-3-indexing-model
2016-04-14 14:10:27 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
practicalswift
0927538208
[gardening] Fix file header formatting.
2016-04-14 22:26:44 +02:00
Max Moiseev
37bf02f7da
[stdlib][swift-3-indexing-model] changes in index(_:stepsFrom:limitedBy:)
...
- index(_:stepsFrom:limitedBy:) returns Index?
- formIndex(_:stepsFrom:limitedBy) returns Bool
2016-04-14 11:49:27 -07:00
Saleem Abdulrasool
9d987fe785
stdlib: use stubs for unit tests as well
...
This unifies the behaviour for imports across the private libc extras and the
public libc shims.
2016-04-14 09:45:52 -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
0d130468b4
Merge pull request #2166 from practicalswift/arrows
...
[gardening] "Type->Type" → "Type -> Type" & "(t: Type)->Type" → "(t: Type) -> Type" in Swift code
2016-04-13 14:41:30 +02:00
swift-ci
7aba3c27da
Merge pull request #2162 from modocache/remove-unused-subprocess
2016-04-13 01:53:25 -07:00
practicalswift
14edeaf67a
[gardening] "Type->Type" → "Type -> Type" in Swift code
2016-04-13 10:51:53 +02:00
swift-ci
728d21a00d
Merge pull request #1442 from SwiftAndroid/master
2016-04-12 23:30:17 -07:00
Chris Lattner
8f1dc858e8
remove dead code.
2016-04-12 21:07:28 -07:00
swift-ci
55ebfd5d3c
Merge pull request #2159 from practicalswift/add-whitespace
2016-04-12 19:02:00 -07:00
Zhuowei Zhang
7c502b6344
Port to Android
...
This adds an Android target for the stdlib. It is also the first
example of cross-compiling outside of Darwin.
Mailing list discussions:
1. https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151207/000171.html
2. https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151214/000492.html
The Android variant of Swift may be built using the following `build-script`
invocation:
```
$ utils/build-script \
-R \ # Build in ReleaseAssert mode.
--android \ # Build for Android.
--android-ndk ~/android-ndk-r10e \ # Path to an Android NDK.
--android-ndk-version 21 \
--android-icu-uc ~/libicu-android/armeabi-v7a/libicuuc.so \
--android-icu-uc-include ~/libicu-android/armeabi-v7a/icu/source/common \
--android-icu-i18n ~/libicu-android/armeabi-v7a/libicui18n.so \
--android-icu-i18n-include ~/libicu-android/armeabi-v7a/icu/source/i18n/
```
Android builds have the following dependencies, as can be seen in
the build script invocation:
1. An Android NDK of version 21 or greater, available to download
here: http://developer.android.com/ndk/downloads/index.html .
2. A libicu compatible with android-armv7.
2016-04-12 19:26:21 -04:00
Brian Gesiak
005d01bce9
[PrivateLibcExtras] Remove unused methods
...
Remove `runChild()`, which is no longer used anywhere in the
codebase. Also remove `_readAll()`, which was only used within
`runChild()`.
2016-04-12 19:19:26 -04:00
Jordan Rose
b5127aa747
Adjust private API withArrayOfCStrings.
...
Produce UnsafeMutablePointers instead of UnsafePointers, because that
matches the signatures of posix_spawn, execve, and similar.
2016-04-12 14:30:27 -07:00
practicalswift
c760f6dfbf
[gardening] Add whitespace: "foo,bar" → "foo, bar"
2016-04-12 22:31:46 +02: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
Jordan Rose
b911fda8ea
[StdlibUnittest] Add expectNotEqual(expected: T?, actual: T?)
...
Also simplify the implementation of expectEqual(T?, T?).
2016-04-11 17:55:10 -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
4efc16b5f1
StdlibUnittest: strengthen constraints in check*AssociatedTypes()
2016-04-08 18:46:00 -07:00
Dmitri Gribenko
81fa3ee1ad
StdlibCollectionUnittest: logging collections: update property names to match actual Collection API
2016-04-08 17:40:39 -07:00
Harlan Haskins
5d888873da
[StdlibUnittest] Teach interpreter to run crash tests
2016-04-08 13:12:53 -07:00
Max Moiseev
6c56af5c1b
[stdlib] splitting expressions with lazy to improve compilation time
2016-04-08 11:06:05 -07:00
Trent Nadeau
f96ad263a8
Added @discardableResult attr to mutating functions
2016-04-07 23:27:38 +00:00
Harlan
e6395343cf
Update autoreleasepool definition in RaceTest
...
Missed in SE-0046 migration
2016-04-07 13:54:02 -07:00
practicalswift
66183cdbf7
[gardening] Fix unjustified spacing
2016-04-07 10:10:24 +02:00
Dmitri Gribenko
79c75f0c1a
StdlibCollectionUnittest: simplify code
2016-04-06 23:31:31 -07:00
Dmitri Gribenko
6131df64d2
stdlib: make _preprocessingPass rethrowing and add tests
2016-04-06 23:22:26 -07:00