Max Moiseev
a49dab6bf8
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-29 12:08:52 -08:00
Daniel Duan
2bc78b8c09
[stdlib] update for 'inout' adjustment (SE-0031)
2016-02-26 12:02:29 -08:00
Max Moiseev
78ba5d5f3f
[stdlib] Requires in comments changed to Precondition
2016-02-19 18:57:26 -08:00
Max Moiseev
40b1a0b7e0
[stdlib] all sorts of require renamed back to precondition
2016-02-19 18:21:29 -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
efaa39ea79
stdlib: add first argument labels and some other changes to conform to API guidelines
2016-02-15 23:47:54 -08:00
Nate Cook
51251dc133
Convert imperative function summaries to present.
...
i.e., "Return ..." -> "Returns ..."
2016-02-12 04:20:39 -06: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
34b00e25b1
stdlib: fix coding guideline violations
2016-01-31 23:42:05 -08:00
Dmitri Gribenko
9bcd5a1056
Collection.length => .count
2016-01-22 18:41:19 -08:00
Dmitri Gribenko
574052f1be
stdlib: standardize fatalError() messages for unavailable APIs
2016-01-21 16:34:54 -08:00
Max Moiseev
86680ec622
[stdlib] @available attributes for removed APIs
2016-01-20 13:08:27 -08:00
Doug Gregor
7d70b704e4
Merge commit '5e11e3f7287427d386636a169c4065c0373931a8' into swift-3-api-guidelines
2016-01-19 23:18:20 -08:00
gregomni
e2dee6b9dd
[stdlib] Switch keywords from 'typealias' to 'associatedtype' in stdlib
...
Fixes deprecation warnings arising from addition of new
‘associatedtype’ keyword in sr-511.
2016-01-14 09:39:15 -08:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Max Moiseev
200be71583
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-23 10:28:04 -08:00
Max Moiseev
a7339e67ac
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-22 11:36:07 -08:00
Max Moiseev
51865a17b2
_debugRequire => _stdlibAssert etc.
2015-12-22 10:18:36 -08:00
ken0nek
fcd8fcee91
Convert [Cc]an not -> [Cc]annot
2015-12-23 00:55:48 +09:00
practicalswift
36d7072013
Remove immediately adjacent repeated words ("the the", "for for", "an an", etc.).
2015-12-21 22:16:04 +01:00
Maxim Moiseev
c4763ae686
_debugPrecondition => _debugRequire
2015-12-16 17:20:40 -08:00
Maxim Moiseev
e6468a0eca
_precondition => _require
2015-12-16 17:19:01 -08:00
Dmitri Gribenko
3d0ad16094
Unsafe[Mutable]Pointer.memory => .pointee
2015-12-16 15:50:31 -08:00
Dmitri Gribenko
339c7a99dc
Remove no-argument initializers from unsafe pointer types
...
The preferred way to create a nil pointer is to use the 'nil' literal.
Affected types:
AutoreleasingUnsafeMutablePointer
OpaquePointer
UnsafeMutablePointer
UnsafePointer
2015-12-16 14:59:50 -08:00
Dmitri Gribenko
63cbe16b68
Rename Memory to Pointee in generic parameter names
...
UnsafePointer<Memory> => UnsafePointer<Pointee>
UnsafeMutablePointer<Memory> => UnsafeMutablePointer<Pointee>
AutoreleasingUnsafeMutablePointer<Memory> =>
AutoreleasingUnsafeMutablePointer<Pointee>
2015-12-16 14:54:36 -08:00
Maxim Moiseev
c1d0358030
_PointerType => _Pointer
2015-12-16 14:45:57 -08:00
Max Moiseev
806be29941
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-14 12:05:35 -08:00
GauravDS
5ee32e43f4
Fix Typos
...
conditionall => conditionally
alaways => always
2015-12-12 13:10:54 +05:30
Maxim Moiseev
7372e9e045
COpaquePointer => OpaquePointer
2015-12-07 16:52:45 -08:00
Max Moiseev
d0e1cb3a0e
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-07 16:43:20 -08:00
Nick van der Ploeg
42b4b02df3
Fixed typos in comments throughout the project.
2015-12-07 12:15:52 -06:00
Ge Sen
20030242bd
Erase redundant whitespaces.
2015-12-05 12:11:47 +08:00
Dmitri Gribenko
174d475833
stdlib: Remove unavavailable APIs that were left as migration aids
...
These APIs are from the Swift 1.2 => Swift 2.0 transition, and are not
relevant anymore.
Removing them reduces the surface area of the library that needs to be
reviewed.
2015-12-02 01:19:50 -08:00
Joe Groff
fbd2e4d872
Rename @asmname to @_silgen_name.
...
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
2015-11-17 14:13:48 -08:00
Jordan Rose
cf8baedee2
Re-apply "Rename @transparent to @_transparent for now."
...
This re-applies 90fcbfe9a6 . I'll be committing
the corresponding change to Foundation momentarily.
2015-11-16 10:53:56 -08:00
Xin Tong
16843684b2
Revert "Rename @transparent to @_transparent for now."
...
This reverts commit 90fcbfe9a6 .
Seems there are still some tests that are left not modified.
2015-11-14 07:04:31 -08:00
Jordan Rose
90fcbfe9a6
Rename @transparent to @_transparent for now.
...
This feature has not been fully designed, let alone properly implemented.
For more information, see docs/TransparentAttr.rst.
2015-11-13 16:25:34 -08:00
Arnold Schwaighofer
7fa673c6bc
Revert "stdlib: Replace unsafeBitCast calls with unsafeCastReference."
...
Revert "For unsafeReferenceCast rely on static verifier checks."
This reverts commit r32796.
This reverts commit r32795.
They very likely broke a buildbot.
Swift SVN r32813
2015-10-21 22:06:01 +00:00
Andrew Trick
b1b07ef0fa
stdlib: Replace unsafeBitCast calls with unsafeCastReference.
...
unsafeBitCast should only be used when we actually need to lie to the type system (as opposed to just having an unchecked downcast).
Theses are the places where unsafeReferenceCast makes sense:
(In general it makes sense whenever the source & dest are class or class existential types)
- ArrayBuffer.getElement.
The deferred downcast case cannot be benchmarked. It is never on the critical path.
The ObjC array case cannot conceivably matter either, however, it is touched by
DollarChain, JSONHelperDeserialize, and StrSplitter.
These benchmarks do not regress at -O.
- arrayForceCast
No regressions at -O based on microbenchmarks.
None of these remaining cases affect PerfTestSuite at -O:
- General ObjC bridging
- Set/Dictionary bridging
- String bridging
- AutoreleasingUnsafeMutablePointer
These are confirmed speedups but I did not investigate the cause:
|.Chars...................|.32.1%.|
|.Sim2DArray..............|.15.4%.|
|.Calculator..............|.13.0%.|
|.RecursiveOwnedParameter.|..7.9%.|
Swift SVN r32796
2015-10-21 19:41:57 +00:00
Dmitri Hrybenko
f57947a7e0
stdlib: fix capitalization issues in documentation comments
...
Patch by Nate Cook.
rdar://22054901
Swift SVN r32226
2015-09-25 17:13:54 +00:00
Dmitri Hrybenko
255d2229c7
stdlib: remove erroneous @warn_unused_result annotations
...
Swift SVN r31050
2015-08-06 15:54:47 +00:00
Dmitri Hrybenko
dd3194a18c
stdlib: adopt @warn_unused_result
...
rdar://20957486
Swift SVN r31048
2015-08-06 14:53:18 +00:00
Joe Groff
ab1f459a40
Runtime/stdlib: Non-verbatim bridging of metatypes.
...
Metatypes can't directly conform to _ObjectiveCBridgeable, but we can pretend they do by making a struct with the same ABI conform and returning that conformance when we call findBridgeWitness on a metatype. Fixes rdar://problem/16238475.
Swift SVN r29999
2015-07-08 23:23:55 +00:00
Dmitri Hrybenko
82122f9362
stdlib: fixit-based migrations for generic parameter renames
...
rdar://21538940
Swift SVN r29756
2015-06-27 04:06:27 +00:00
Dmitri Hrybenko
4cdf37a68b
stdlib: rename the generic parameter from T to Element on unsafe pointers
...
Fixed AutoreleasingUnsafeMutablePointer, UnsafePointer,
UnsafeMutablePointer.
Part of rdar://21429126
Swift SVN r29637
2015-06-24 20:42:04 +00:00
Dmitri Hrybenko
004c02adff
stdlib: doc comment: use monospaced font for code
...
Fixes new issues in rdar://problem/20843980
Patch by Brian Lanier.
Swift SVN r28780
2015-05-19 20:26:16 +00:00
Dmitri Hrybenko
313701286b
stdlib: Various punctuation and markup improvements to the comments.
...
Patch by Brian Lanier.
Swift SVN r28659
2015-05-16 03:04:51 +00:00
Dmitri Hrybenko
68ef59e37a
stdlib: Convert comments to use '- requires:' instead of 'Requires:'.
...
Tidy misc. comments and markdown along the way.
Patch by Brian Lanier.
Swift SVN r28473
2015-05-12 17:47:11 +00:00
Dave Abrahams
5c55682d8b
[stdlib] Capitalize keywords in doc comments
...
Again, the text is a lot more readable that way.
Swift SVN r28472
2015-05-12 16:59:13 +00:00