practicalswift
c74273dfd1
[gardening] Remove "-*- swift -*-" from non-.gyb file.
2016-06-12 19:03:54 +02:00
Dmitri Gribenko
6f139d7b5a
Merge pull request #2975 from trentxintong/MISC
...
Limit inlining for stdlibunittest. This saves a lot of compilation time
2016-06-09 18:29:44 -07:00
Xin Tong
6430525edc
Limit inlining for stdlibunittest. This saves a lot of compilation time
...
for some of the stdlibunittests.
i.e. For the FixPoint benchmark, from 256s on my machine to 27s.
rdar://26688483
2016-06-09 16:04:43 -07:00
Dmitri Gribenko
837fc58861
Merge pull request #2947 from practicalswift/fix-rangeselection-header
...
[gardening] Fix recently introduced header.
2016-06-09 01:12:32 -07:00
Dave Abrahams
4fbed473e2
Add a missing @discardableResult
2016-06-08 11:35:16 -07:00
practicalswift
13e7e8db87
[gardening] Fix recently introduced header.
2016-06-08 09:40:10 +02:00
Austin Zheng
fa6c028edf
Adding tests for replaceSubrange overloads for range types ( #2774 )
2016-06-07 14:21:30 -07:00
Dmitri Gribenko
8f118750a4
StdlibUnittest: add tests for expectEqual() on tuples
2016-06-04 02:33:30 -07:00
Dmitri Gribenko
fb6fb95fe2
Merge pull request #2801 from natecook1000/nc-nextup
...
[stdlib] Fix error in nextUp and nextDown
2016-06-02 14:31:45 -07:00
swift-ci
7c98b492e8
Merge pull request #2841 from ahoppen/SR-1236-tests-update
2016-06-02 11:38:34 -07:00
Nate Cook
b76630735a
[stdlib] Add tests for FloatingPoint's nextUp and nextDown
2016-06-02 11:11:07 -05:00
Alex Hoppen
2108a235df
[Tests] Update existing tests for the upcoming implementation of SE-0036
2016-06-02 17:50:55 +02:00
rintaro ishizaki
6401324993
[stdlib] Apply tail style "where" clause to stdlib/{internal,private}
2016-06-02 12:01:21 +09:00
Dmitri Gribenko
a1e73a6b0d
CMake: remove dead code
2016-05-31 21:57:07 -07:00
Vivian Kong
59e80c5dda
Change the type of _stdlib_fd_set._data to [UInt] so that it also works correctly for 64-bit big-endian systems.
2016-05-24 20:03:56 -04:00
Bryan Chan
85fde8b1fb
Add support for Linux s390x. LLVM's Swift calling convention support is used to ensure correct operations of C++ code in the runtime. This patch also includes some (incomplete) changes to enum handling to make enums work in most common cases.
2016-05-24 20:03:28 -04:00
Dmitri Gribenko
296e2ae835
stdlib: implement reverse() as proposed in SE-0078
2016-05-24 00:37:28 -07:00
David Farler
8f86719f9f
Add more Remote Mirror closure tests with different arity/capture count
2016-05-23 16:34:54 -07:00
Dmitri Gribenko
34ee9790db
Merge pull request #2643 from apple/stdlib-unittest-fail-if-child-crashes-at-exit
...
[WIP] StdlibUnittest: fail if child crashes at exit
2016-05-22 18:42:27 -07:00
Dmitri Gribenko
9574d03dfa
StdlibUnittest: ask the child process to terminate, and check its termination status
...
If a child process crashes outside of a test context, the parent process
should signal test failure. This behavior is a sign of something bad
happening in the child (for example, memory corruption), and should not
go unnoticed.
2016-05-22 17:17:16 -07:00
Dmitri Gribenko
312545bfba
Merge pull request #2537 from russbishop/se0017
...
[stdlib] SR-1485: Implement SE-0017: Change Unmanaged to use UnsafePointer
2016-05-22 17:02:57 -07:00
Russ Bishop
3da2492da9
SR-1485: Change Unmanaged to use UnsafePointer
2016-05-22 15:12:09 -07:00
Dmitri Gribenko
27a6be9897
StdlibUnittest: add labels to boolean return values
2016-05-22 14:37:53 -07:00
Dmitri Gribenko
d7dd6bdae3
StdlibUnittest: replace a magic value with an optional
2016-05-22 14:37:53 -07:00
Dmitri Gribenko
cd312ae12c
StdlibUnittest: refactor child I/O code
...
Detangle protocol parsing logic from I/O handling.
2016-05-22 14:37:53 -07:00
David Farler
a38a4ce596
SwiftRemoteMirror: Turn on reflection metadata by default
...
Flip the enable flags to disable and make these IRGen options
true by default.
rdar://problem/26206547
2016-05-21 17:40:37 -07:00
Dmitri Gribenko
227cfa1695
StdlibUnittest: add a simple API for race tests
2016-05-20 14:23:31 -07:00
Dmitri Gribenko
d591f9cf7a
stdlib: remove most uses of @warn_unused_result, which does nothing now
...
I kept the one on sorted(), because that one requires a less trivial
change.
2016-05-19 18:39:39 -07:00
David Farler
e42fd92fbb
SwiftReflectionTest: Don't exit until the parent asks for an instance
...
Child processes were exiting too early before the parent has a chance
to read a null pointer from the child, indicating that there are no
more instances to reflect. This wasn't a problem on OS X because the
I/O latency is so small compared to the iOS simulator, where the
problem would come up under heavy load. This makes the end-to-end
remote mirror tests deterministic again.
rdar://problem/26230879
2016-05-18 02:27:53 -07:00
Dmitri Gribenko
b7984be446
stdlib: always check that IteratorProtocol.next() repeatedly returns nil
...
This is required by SE-0052.
2016-05-15 23:55:48 -07:00
Russ Bishop
da3f51fa26
Fix LoggingWrappers
2016-05-15 15:07:12 -07:00
Russ Bishop
1f88150b79
Use forEach() and fix tests
2016-05-14 23:32:41 -07:00
Russ Bishop
f20c9255e9
Changes for code review
2016-05-14 16:57:00 -07:00
Russ Bishop
1d8edfa60f
SR-1519: Add Sequence.first(predicate:)
2016-05-13 23:46:05 -07:00
Maxim Moiseev
5fe2a0232e
[stdlib] Introducing MinimalStrideableIndex... ( #2506 )
...
... as well as new test collection types:
`MinimalRandomAccessCollectionWithStrideableIndex` and
`DefaultedRandonAccessCollectionWithStrideableIndex`, to test default
implementation of `index(...)` family of functions provided by the
standard library for the random access collections with strideable
indices.
2016-05-13 11:19:46 -07:00
Trent Nadeau
0cc851568a
Updated tests to use @discardableResult and _ = .
2016-05-11 22:53:38 -04:00
Trent Nadeau
6e327b4ddb
Updated stdlib to use @discardableResult and _ = .
2016-05-11 22:53:37 -04:00
Ted Kremenek
942e524285
Revert "SE-0036: Requiring Leading Dot Prefixes for Enum Instance Member Implementations" ( #2477 )
2016-05-11 11:02:37 -07:00
Jordan Rose
14a7334aef
Merge pull request #2224 : SE-0036: Requiring Leading Dot Prefixes for Enum Instance Member Implementations
...
from @ahoppen
2016-05-10 19:58:09 -07:00
Dmitri Gribenko
0b8d11bcb1
Merge pull request #2469 from apple/stdlib-collection-unittest-se-0052
...
StdlibCollectionUnittest: MinimalIterator: allow multiple nil returns
2016-05-10 18:31:17 -07:00
Dmitri Gribenko
32605a19d9
StdlibCollectionUnittest: MinimalIterator: allow multiple nil returns
...
SE-0052 requires all iterators to return nil indefinitely after all
elements have been consumed.
2016-05-10 14:16:22 -07:00
David Farler
9dddc6492b
SwiftRemoteMirror: Project error existentials
...
Error existentials have a kind of special heap layout and can also
be compatible as NSError instances, too.
2016-05-10 12:50:31 -07:00
Slava Pestov
75bd780aca
Reflection: Add support for closure contexts to readMetadataFromInstance()
...
Also add end-to-end tests for this finally, and fix a bug in
the SwiftReflectionTest library where we would give up on an
module completely if it did not have a field metadata section.
This is of course wrong if the module defines closures but
not nominal types.
2016-05-09 13:41:56 -07:00
Doug Gregor
c808b00314
Merge pull request #2423 from koke/sr-1395
...
SE-0070: Make Optional Requirements Objective-C-only.
2016-05-07 20:27:32 -07:00
Alex Hoppen
0e8c69c56f
[SE-0036]: Requiring Leading Dot Prefixes for Enum Instance Member Implementations
2016-05-07 22:39:26 +02:00
practicalswift
c262b42ae0
[gardening] Fix recently introduced whitespace typos. ( #2443 )
2016-05-06 23:49:39 -07: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
Chris Lattner
8d3f88735d
Add parens to the few cases in the stdlib that lack them for function types.
2016-05-06 21:07:08 -07:00