Xiaodi Wu
6b5ee6d18c
[NFC] Consolidate Decimal FloatingPoint implementations into one extension
2019-06-25 09:48:48 -04:00
Xiaodi Wu
ba34ee0a09
[NFC] Reorder Decimal protocol conformances to match documentation order; fix indentation
2019-06-25 09:17:48 -04:00
Xiaodi Wu
3104ccb12e
Apply fix for SR-3126 and other changes to sync Decimal.init(_: Double) with sclf
2019-06-25 09:11:59 -04:00
Xiaodi Wu
fa0671c1af
[NFC] Use sclf implementation of + - * / operators, move them and negate to SignedNumeric extension
2019-06-25 09:05:59 -04:00
Xiaodi Wu
742741f59b
Note major divergences with sclf in implementation
2019-06-25 09:03:04 -04:00
Xiaodi Wu
e843bd303e
[gardening] Sync formatting for constants with sclf version
2019-06-25 08:56:43 -04:00
Xiaodi Wu
b2ce4a2ba1
[Foundation] Fix two Decimal members with respect to NaN ( #25698 )
...
* Update Decimal.swift
Fix `Decimal.magnitude` so that `Decimal.nan.magnitude` is no longer incorrectly `0`.
Port changes from apple/swift-corelibs-foundation#1759 , crucially correcting an error where `(0 as Decimal).doubleValue` returned `.nan`.
* [gardening] Zap indentation error
* Add test for `Decimal.nan.magnitude`
* Apply reviewer suggestion
Clean up `doubleValue`
2019-06-25 08:45:56 -04:00
Karoy Lorentey
6cb4e3a2f1
[Shims] Add CoreMedia overlay shims
2019-06-24 16:34:09 -07:00
Lei Zhang
6ac15e9348
Fix for KeyPathMultiModule test failure
2019-06-24 16:17:39 -04:00
David Smith
460a5213fc
Revert "[stdlib] AutoreleasingUnsafeMutablePointer: Switch subscripts to _read accessors"
...
This was an ABI break, since it didn't make it into 5.0. Using _read here is unimportant, so we're just going to revert rather than try being fancy.
This reverts commit 04586e3916 .
2019-06-24 11:33:36 -07:00
Mike Ash
62cb20ec69
Merge pull request #25705 from mikeash/more-dump-methods
...
[Runtime] Add dump() methods to TypeContextDescriptor and EnumDescriptor.
2019-06-24 11:15:02 -07:00
Mike Ash
d05a8cab34
[Runtime] Add dump() methods to TypeContextDescriptor and EnumDescriptor.
2019-06-24 11:24:53 -04:00
Saleem Abdulrasool
2a710f4bba
StdlibUnittest: disable FP80 path on android
...
android x64 does not support FP80
2019-06-23 21:05:46 -07:00
Steven Brunwasser
3d6b52507f
Focus on what to do and why to do it
2019-06-21 20:14:29 -07:00
Steven Brunwasser
fd8bd3645d
Reword returns section without bullets
2019-06-21 19:49:13 -07:00
Steven Brunwasser
4d481a3dc2
Describe the behavior of value without mentioning its default value
2019-06-21 19:45:08 -07:00
Steven Brunwasser
3d9e292d31
Add reason why key can't be empty
2019-06-21 19:37:15 -07:00
Steven Brunwasser
b2737af5df
key must not be the empty string
2019-06-21 19:29:57 -07:00
Steven Brunwasser
abc89e1cb1
Remove the default value from the parameter description
...
Default values are now automatically included documentation.
2019-06-21 19:18:31 -07:00
Steven Brunwasser
9552b3f64d
Remove extra information from parameter description
...
This information belongs in the description. Having it both here and there is redundant.
2019-06-21 19:15:08 -07:00
Steven Brunwasser
da580345f2
Use more formal wording
2019-06-21 19:13:33 -07:00
Steven Brunwasser
2d9b52eec4
Use - note: syntax
2019-06-21 19:12:07 -07:00
Steven Brunwasser
7135b8969e
Use headers that describe the section's purpose
2019-06-21 19:10:11 -07:00
Saleem Abdulrasool
38995f5d80
Merge pull request #25070 from moatom/fix-include-guard
...
Fix include guards
2019-06-20 17:26:08 -07:00
Brent Royal-Gordon
4149c8f97d
[Runtime] Fix private generic type witness demangling failure ( #25611 )
...
This one’s screwily specific--if you have:
* a private generic type,
* with a nested generic type in it,
* and the nested type conforms to a protocol with an associated type,
* and that associated type’s witness is a generic type,
* and some of the witness type’s generic parameters are generic parameters of the nested type,
demangling would fail. The problem is that the substitution machinery in the runtime would consider there to be three, not two, generic context depths involved. Depth 1, which should correspond to the nested type, would instead have no generic parameters. The fix is to skip over depths with zero generic parameters.
Fixes <rdar://problem/47773183>.
2019-06-20 12:02:01 -07:00
Arnold Schwaighofer
dcd1732761
Merge pull request #25616 from aschwaighofer/fix_multi_object_file_replacements_runtime
...
Fix dynamic replacement runtime when generating replacements from multiple object files
2019-06-20 10:44:09 -07:00
Xi Ge
5295ef7bde
Revert "[reflection-dump] Teach reflection dump how to dump protocols from the __swift5_protos section of a .o"
2019-06-20 08:29:49 -07:00
Michael Gottesman
db3997d05e
Merge pull request #25617 from gottesmm/pr-0749a889482066e40ee2f5681a4bb0020007fa7f
...
[reflection-dump] Teach reflection dump how to dump protocols from the __swift5_protos section of a .o
2019-06-19 21:40:31 -07:00
Ed Greenaway
a92357ab05
Update documentation for CommandLine.arguments ( #25304 )
...
Addresses SR-6776 Documentation comment for CommandLine.arguments contains implementation remarks
2019-06-19 15:47:17 -07:00
Michael Gottesman
fce7454ada
[reflection] Extract out ReflectionInfo from TypeRefBuilder -> ReflectionInfo.
...
The reason why I am doing this is so that I can create an adaptor class
(templated on Runtime) for reading protocol info from ReflectionInfo without
having to make ReflectionInfo itself generic. If ReflectionInfo becomes generic
on Runtime, it will cause a cascading need to mark classes in Reflection as
generic as well.
2019-06-19 15:16:17 -07:00
Arnold Schwaighofer
fb08153de0
Fix dynamic replacement runtime when generating replacements from multiple object files
...
The sections with the replacements get merged and we need to consider all replacements.
SR-10947
rdar://51913012
2019-06-19 15:11:33 -07:00
David Smith
28dcc915e3
Merge pull request #25418 from Catfish-Man/no-objc-complications-4
...
Use the remaining half bit in the refcount to bypass ObjC deallocation overhead
2019-06-19 11:08:29 -07:00
David Smith
c51294671b
Revert "Revert "Use the remaining half bit in the refcount to bypass ObjC deallocation overhead""
...
And add availability checking for back deployment
This reverts commit 817ea129f2 .
2019-06-18 16:16:38 -07:00
Mike Ash
b70cd7031f
Merge pull request #25150 from mikeash/dlopen-race
...
[Runtime] Fix a race with dlopen and libobjc.
2019-06-18 11:48:49 -07:00
Arnold Schwaighofer
85bfbe2dd3
Merge pull request #25473 from aschwaighofer/back_deploy_dynamic_replacement
...
stdlib: Add backward deployment versions for the dynamic-replacement runtime functions
2019-06-18 09:02:22 -07:00
Steven Brunwasser
e595b44a10
Fixed some grammar and changed some wording
2019-06-18 01:32:12 -07:00
Arnold Schwaighofer
906f0b4e9e
Address review comments
2019-06-17 19:47:52 -07:00
Arnold Schwaighofer
5d329464d6
Use thread private key to avoid weak linkage
...
We use one bit of the third reserved swift private tls key.
Also move the functionality into a separate static archive that is
always linked dependent on deployment target.
2019-06-17 15:03:45 -07:00
swift-ci
2330d81ad1
Merge pull request #25519 from compnerd/windows-resource-dir
2019-06-17 14:14:28 -07:00
Saleem Abdulrasool
ad9346344c
Shims: support clang-cl for building the runtime for Windows
...
`-print-resource-dir` is not available with `clang-cl` which is required
for building the standard library for Windows on Windows. Use the
`/clang:-print-resource-dir` spelling instead. This allows us to build
the standalone runtime for Windows on Windows.
2019-06-17 13:03:07 -07:00
Karoy Lorentey
194dba6c69
Merge pull request #25454 from lorentey/nsvalue-availability
...
[Foundation] Set correct availability on NSValue.value(of:)
2019-06-17 12:25:17 -07:00
Karoy Lorentey
308d584d4c
Merge pull request #25444 from lorentey/ClockKit-overlay
...
[SDK] Add overlay shims for ClockKit framework
2019-06-17 12:24:26 -07:00
Vlad Gorlov
6370681656
Android cross-compile on macOS: Fix for compile error addressed Float80 data type. ( #25502 )
...
* Fixes issue addressed Float80 data type. Float80 is disabled for Intel architectures (i.e. Android Simulator).
* More precise condition check.
2019-06-17 13:40:44 -04:00
swift-ci
3b5e87283f
Merge pull request #25508 from compnerd/empowering-people
2019-06-17 10:15:53 -07:00
Saleem Abdulrasool
1db3865d90
build: dereference the SDK name variable
...
This is needed to ensure that we get the correct modulemap file for
Android on certain versions of CMake.
2019-06-16 16:49:06 -07:00
Saleem Abdulrasool
63c229b4a8
build: do not touch CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
...
Use the appropriate CMake functions to adjust the build flags rather
than touching the user-controlled `CMAKE_C_FLAGS` and `CMAKE_CXX_FLAGS`.
2019-06-16 16:48:38 -07:00
Steven Brunwasser
8bb63c0c15
[Foundation]: Adding detailed documentation for NSLocalizedString
2019-06-15 14:50:03 -07:00
Saleem Abdulrasool
9feac7156b
Merge pull request #25487 from compnerd/implicitly-incorrect
...
build: do not implicitly track build dependencies for host
2019-06-14 17:52:19 -07:00
swift-ci
48e34070e6
Merge pull request #24904 from GeorgeLyon/master
2019-06-14 14:28:35 -07:00
Saleem Abdulrasool
4eb0ca0c21
build: do not implicitly track build dependencies for host
...
Because we do a custom cross-compilation, we are tracking the *build*
dependencies when building libraries for the *host*. That is to say, if
you are building for Linux on Darwin, we track Darwin's libc++ as a
dependency for the Linux swiftCore.
2019-06-14 14:28:34 -07:00