Arthur Ariel Sabintsev
f329b3b8bb
Implemented assertionType in failure cases
2017-01-13 00:20:30 -05:00
Arthur Ariel Sabintsev
93bc18129f
Now outputting caughtError
2017-01-13 00:17:44 -05:00
Arthur Ariel Sabintsev
e19da0b6b5
Fixed copy-paste error in error case. XCTAssertLessThanOrEqual to XCTAssertThrowsError
2017-01-13 00:09:28 -05:00
Arthur Ariel Sabintsev
e5e8eb7603
First pass at implementing XCTAssertNoThrow
2017-01-13 00:08:31 -05:00
Robert Widmann
883ca16ab9
Merge pull request #4314 from ultramiraculous/failable-int-to-float
...
SE-0080 (4/4) - Failable initializers for Float->Int
2017-01-12 21:57:05 -07:00
Maxim Moiseev
0d0dc79ce8
Deprecating M_PI and a few other constants in favor of better API ( #6764 )
...
* Deprecating M_PI and a few other constants in favor of better API
Deprecating `M_PI`, `M_PI_2`, `M_PI_4`.
Sugesting using `Double.pi` or even just `.pi` to allow type be inferred
and avoid a type-cast.
Fixes: <rdar://problem/26602190>
2017-01-12 16:36:08 -08:00
Max Moiseev
d5e56d674f
Removing explicit implementation of arithmetic operators from Decimal in favor of defaults
2017-01-12 15:54:37 -08:00
Michael Gottesman
2b98e46718
Merge pull request #6711 from moiseev/unsafebitcast
...
[stdlib] Eliminating some 'unsafeBitcast' related warnings
2017-01-11 22:41:39 -08:00
Robert Widmann
76f4c523aa
Merge pull request #6735 from ikesyo/foundation-remove-unnecessary-breaks
...
[Foundation][gardening] Remove unnecessary `break`s
2017-01-11 22:47:03 -07:00
Joe Groff
ecfa78a3cc
Runtime: Look through artificial ObjC subclasses when building demangle trees for classes.
...
Fixes rdar://problem/29962114, a regression in presenting the stringified names of ObjC classes that have been dynamically subclassed by KVO.
2017-01-11 20:12:16 -08:00
Max Moiseev
e1a8e28ad7
Making non-masking shift helper function public (compiler requires it now)
2017-01-11 15:43:18 -08:00
Slava Pestov
75b4be61fb
Merge pull request #6461 from hughbe/icu-windows
...
Simplify ICU package resolution not to require PkgConfig and to be more user configurable.
2017-01-11 15:41:09 -08:00
Matthew Carroll
0e09bbbb83
[DiagnosticsQoI] SR-3359: Add a fix-it to remove @discardableResult on functions that return Void or Never ( #6681 )
...
This commit adds a fix-it to remove @discardableResult on functions that return Void or Never. The fix-it is at the warning level. A test was added to verify that the fix-it removes the @discardableResult. This issue was reported in SR-3359:
https://bugs.swift.org/browse/SR-3359
Changes:
TypeCheckAttr.cpp: implemented AttributeChecker::visitDiscardableResultAttr to add a fix-it to remove @discardableResult on functions returning Void or Never.
DiagnosticsSema.def: Added a warning with a diagnostic message.
LoggingWrappers.swift.gyb, HashedCollections.swift.gyb: Removed @discardableResult on functions returning Void.
fixits-apply-all.swift, fixits-apply-all.swift.result: Added tests to verify that @discardableResult is removed from functions returning Void or Never.
2017-01-11 15:12:36 -08:00
Maxim Moiseev
f462ce7852
Deprecating + and - for SignedInteger and its Stride ( #6603 )
...
* Removing uses of mixed-type + and - in benchmarks
Using type cast or explicit type annotations.
* Deprecating use of + and - on SignedInteger
As it leads to mixed type arithmetics that is not supposed to work.
It was needed before the new collection indexing model to make moving
indexes simple.
* Test deprecation warning
2017-01-11 14:42:27 -08:00
Max Moiseev
fa7368ad7d
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-11 14:37:01 -08:00
Max Moiseev
44f0cb9daf
Fix the force unwrapping of a nil pointer
2017-01-11 10:22:01 -08:00
Syo Ikeda
b1011ca176
[Foundation][gardening] Remove unnecessary breaks
2017-01-12 02:06:56 +09:00
Michael Gottesman
4a07d7f9ac
Merge pull request #6692 from gottesmm/cmake_sibopt_change
...
[cmake] Add support for generating targets for a -Onone sib stdlib and a -O sib stdlib, but do not build them by default.
2017-01-10 22:01:41 -08:00
Robert Widmann
9155e34676
Merge pull request #6707 from CodaFi/positively-posix
...
Add POSIX Error Codes for Linux
2017-01-10 21:31:15 -07:00
Max Moiseev
a872adad8f
Fixing and XFAILing tests
2017-01-10 15:38:17 -08:00
Max Moiseev
b7d5ef90b8
Addressing PR comments
2017-01-10 14:30:44 -08:00
Vivian Kong
e2c9e246d7
Add @versioned declarations to fix s390x build ( #6708 )
2017-01-10 13:52:58 -08:00
Tony Parker
3345050957
Merge pull request #6615 from phausler/data_append_truncation_fix
...
[Foundation] Correct sequence initializers for Data when repeating:count: is called and add a memset fast-path
2017-01-10 13:26:09 -08:00
Max Moiseev
195691523f
[stdlib] Eliminating some 'unsafeBitcast' related warnings
2017-01-10 12:36:22 -08:00
Robert Widmann
cde11ae1ee
Resolve comments from last code review
2017-01-10 10:45:18 -07:00
Alsey Coleman Miller
8157194e83
[stdlib] Added POSIXErrorCode for Linux
2017-01-10 10:40:00 -07:00
Hugh Bellamy
c66b72c5fa
Simplify ICU package resolution not to require PkgConfig and to be more user configurable.
...
If you don't have PkgConfig, you'll need to pass the following to CMake:
```
-DICU_UC_INCLUDE_DIRS="%swift_source_dir%/icu/include"^
-DICU_UC_LIBRARY_DIRS="%swift_source_dir%/icu/lib64"^
-DICU_I18N_INCLUDE_DIRS="%swift_source_dir%/icu/include"^
-DICU_I18N_LIBRARY_DIRS="%swift_source_dir%/icu/lib64"^
-DICU_UC_LIB_NAME="icuuc"^
-DICU_I18N_LIB_NAME="icuin"
```
icu
2017-01-10 09:01:40 +00:00
swift-ci
294359bd69
Merge pull request #4804 from kstaring/master
2017-01-10 00:01:46 -08:00
Max Moiseev
aecccc7e48
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-09 17:38:04 -08:00
Slava Pestov
d65d1d25f9
Sema: Diagnostics for @_inlineable, @_versioned and Swift 4 default arguments model
...
Piggybacks some resilience diagnostics onto the availability
checking code.
Public and versioned functions with inlineable bodies can only
reference other public and internal entities, since the SIL code
for the function body is serialized and stored as part of the
module.
This includes @_transparent functions, @_inlineable functions,
accessors for @_inlineable storage, @inline(__always) functions,
and in Swift 4 mode, default argument expressions.
The new checks are a source-breaking change, however we don't
guarantee source compatibility for underscored attributes.
The new ABI and tests for the default argument model will come in
subsequent commits.
2017-01-09 16:59:13 -08:00
Michael Gottesman
c9a6532e08
[cmake] Add support for generating targets for a -Onone sib stdlib and a -O sib stdlib, but do not build them by default.
...
This is useful for engineers who do not want to reconfigure to look at a
-Onone/-O sib stdlib.
2017-01-09 16:39:23 -08:00
Tony Parker
d34d36ecbc
Remove errant definition of a URLResourceValue key
2017-01-09 16:13:32 -08:00
Dave Abrahams
9392ac5d09
Merge pull request #6239 from hughbe/stubs-rand
...
Port stdlib/public/stubs/GlobalObjects to Windows
2017-01-09 15:21:07 -08:00
Tony Parker
1553cdecec
Use the right key for the image thumbnail dictionaries in the URL
...
resources struct.
Fixes rdar://27556178
2017-01-09 15:10:21 -08:00
Doug Gregor
2302f59288
Merge pull request #6531 from Fruneau/indirect-fields
...
Clang Importer: import all indirect fields.
2017-01-09 15:01:02 -08:00
Slava Pestov
dfebf20670
Merge pull request #6387 from hughbe/symlink-win32
...
[CMake] fix symlink creation on Windows
2017-01-09 12:27:21 -08:00
Slava Pestov
e0fa2e0872
Merge pull request #6238 from hughbe/stubs-clang-cl
...
Fix documentation warnings building runtime with clang-cl
2017-01-09 12:26:41 -08:00
Simon Evans
22b5e6d57b
[runtime] Implement lookupSymbol() for ELF static executables
2017-01-09 10:56:29 +00:00
practicalswift
3918d9d251
[gardening] Replace likely word processor artefacts with ASCII equivalents (— → --, … → ...)
2017-01-08 15:23:06 +01:00
Ben Cohen
c0ecff1344
Merge pull request #6508 from airspeedswift/sprightly-look
...
[SDK] Change SKThings.customPlaygroundQuickLook to return a non-optional image
2017-01-07 14:27:38 -08:00
Ben Cohen
578a52627a
Merge branch 'master' into se-147
2017-01-07 13:19:15 -08:00
practicalswift
8c2b87bce0
[gardening] Add correct copyright notices
2017-01-07 20:32:18 +01:00
Ben Cohen
3bdada1773
Merge pull request #6506 from airspeedswift/im-not-warning-you-again
...
[stdlib] Squash various warnings
2017-01-06 16:51:06 -08:00
Max Moiseev
27889c6376
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-06 15:54:44 -08:00
Robert Widmann
7d427aa62e
Merge pull request #6569 from mekjaer/mk-inconsistent-spacing-on-properties-and-arguments
...
[gardening] spacing on properties and arguments in IndexSet (stdlib)
2017-01-06 16:11:00 -07:00
Max Moiseev
d356e1416b
Using trailingZeros and leadingZeros provided by integers in floating point types
2017-01-06 14:47:17 -08:00
Philippe Hausler
45714e6263
[Foundation] Correct sequence initializers for Data when repeating:count: is called and add a memset fast-path
2017-01-06 13:56:08 -08:00
practicalswift
292282e035
Merge pull request #6620 from practicalswift/gardening-20160106b
...
[gardening] Fix typos
2017-01-06 22:03:27 +01:00
Nate Cook
6368857344
Merge pull request #6382 from natecook1000/nc-sort-median
...
[stdlib] Modify sort to pivot on median of 3
2017-01-06 14:27:53 -06:00
practicalswift
30a88d38e6
[gardening] Fix recently introduced typos
2017-01-06 21:16:02 +01:00