zerotypos-found
0c1df3577e
Fix typo: a --> an, an --> a.
2015-12-17 15:10:25 +09:00
Patrick Pijnappel
fe478b7633
[stdlib] Add sort stability comment to min()/max()
2015-12-17 14:17:50 +11:00
Patrick Pijnappel
75a6609c61
[stdlib] Unabbreviate local variable names
2015-12-17 14:07:58 +11:00
Patrick Pijnappel
370f4f0de4
[stdlib] Refactor min(_:_:_:_:)
2015-12-17 14:00:03 +11:00
Patrick Pijnappel
220f2d1c89
[stdlib] Refactor min(_:_:)
2015-12-17 13:59:48 +11:00
Maxim Moiseev
ee7d55f74b
moving unsafeUnwrap into Optional
2015-12-16 17:24:12 -08: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
Maxim Moiseev
f2f50d6a9d
precondition => require
2015-12-16 17:16:08 -08:00
Maxim Moiseev
9d0c912c70
Merging UnsafePointer.deinitializePointee
...
An optimization should be added in order for the new one to be
efficient, i.e. if the `count` value is equal to `1`, the underlying
`Builtin.destroy` should be called, instead of
`Builtin.destroyArray`.
2015-12-16 17:15:00 -08:00
Maxim Moiseev
38323513ea
UnsafePointer.move() => .take()
2015-12-16 17:13:39 -08:00
Maxim Moiseev
e1f304f758
Adding count to initializeMemory
...
The corresponding test started to fail because of the `_debugPrecodition`
in the implementation of `initializeMemory`.
2015-12-16 17:12:43 -08:00
Maxim Moiseev
6c50752aed
UnsafePointer: initializeMemory and deinitializePointee
2015-12-16 17:11:57 -08:00
Maxim Moiseev
0e54467bfa
Final bulk removal of Type suffix
2015-12-16 17:06:19 -08:00
Maxim Moiseev
2a161bdd62
_ArrayBufferType => _ArrayBufferProtocol
2015-12-16 15:53:40 -08:00
Maxim Moiseev
db84df9eab
_ArrayType => _ArrayProtocol
2015-12-16 15:53:27 -08:00
Maxim Moiseev
ca932fca5a
CVarArgType => CVarArg
2015-12-16 15:52:01 -08:00
Dmitri Gribenko
3d0ad16094
Unsafe[Mutable]Pointer.memory => .pointee
2015-12-16 15:50:31 -08:00
Dmitri Gribenko
f1dbe205a3
UnsafeMutablePointer.dealloc(_:) => .deallocateCapacity(_:)
2015-12-16 15:47:58 -08:00
Dmitri Gribenko
1f70e25899
UnsafeMutablePointer.alloc(_:) => UnsafeMutablePointer(allocatingCapacity:)
2015-12-16 15:45:48 -08:00
Dmitri Gribenko
4e8291fcfb
Coding style fixes
2015-12-16 15:30:56 -08:00
Max Moiseev
fca25fbeb9
Comment improvements and test fixes
2015-12-16 15:29:52 -08:00
Patrick Pijnappel
58bc25bed6
[stdlib] Add comment
2015-12-17 10:15:45 +11:00
Patrick Pijnappel
8d1261ed22
[stdlib] Fix Int(_:radix:) accepting unintentional cases (SR-187)
2015-12-17 10:12:36 +11: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
Patrick Pijnappel
0998e38ef4
[stdlib] Fix internal doc comment
2015-12-17 09:57:53 +11:00
Dmitri Gribenko
8e5686d563
Fix coding style
2015-12-16 14:55:09 -08:00
Dmitri Gribenko
152ef15f83
Improve comments on unsafe pointers
2015-12-16 14:54:57 -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
Dmitri Gribenko
27b421729e
Coding style fix
2015-12-16 14:50:48 -08:00
Dmitri Gribenko
4025882438
Improve comments
2015-12-16 14:50:35 -08:00
Dmitri Gribenko
91675e065b
IteratorOfOne => IteratorOverOne
2015-12-16 14:50:22 -08:00
Dmitri Gribenko
7971a67ee0
Remove Bit
2015-12-16 14:46:26 -08:00
Maxim Moiseev
c1d0358030
_PointerType => _Pointer
2015-12-16 14:45:57 -08:00
Maxim Moiseev
62c85d379d
OutputStreamType => OutputStream
2015-12-16 14:45:38 -08:00
Maxim Moiseev
0a6a03df47
IntervalType => Interval
2015-12-16 14:44:17 -08:00
Maxim Moiseev
a072007dfe
ReverseIndexType => ReverseIndexProtocol
2015-12-16 14:38:06 -08:00
practicalswift
8ab8847684
Fix typos.
2015-12-16 22:09:32 +01:00
Arsen Gasparyan
9f728c6dbd
[stdlib] Make comparison operator choices consistent
2015-12-16 22:50:36 +03:00
Chris Lattner
e9a2e1e128
Eliminate all of the uses of ++/-- from stdlib/public/core.
...
At DaveA's suggestion, I took a mostly mechanical approach to this:
pointers and numeric types start using += 1, and indexes use
i = i.successor(). The index model is likely to be revised in
Swift 3 anyway, so micro-optimizing this code syntactically isn't
super important.
There is some performance concern of this patch, since some
in-place succesor operations are more efficient than
i = i.successor(). The one that seems particularly at issue is the
instance in the implementation of partition(), which I changed to
use i._successorInPlace(). If other instances lead to a perf issue,
they can be changed to use that as well.
2015-12-15 23:21:55 -08:00
Niels Andriesse
f725352706
Update BidirectionalIndexType.advancedBy(_:_:) for removal of ++ operator
2015-12-16 14:39:35 +11:00
Niels Andriesse
7807fe7160
Update BidirectionalIndexType.advancedBy(_:) for removal of ++ operator
2015-12-16 14:26:17 +11:00
Dmitri Gribenko
8749117362
Merge pull request #571 from nassersala/typo-print-dot-swift
...
Fix typos: add missing backticks to 'Streamable'
2015-12-15 17:41:56 -08:00
Dmitri Gribenko
2f538f8b2b
Merge pull request #568 from frootloops/enumerate-generator-count
...
Set default value for EnumerateGenerator.count
2015-12-15 17:41:37 -08:00
Dmitri Gribenko
d864cfcf3d
Merge pull request #556 from dduan/increment_decrement_search_replace
...
replace singular statement ++/-- with += 1/-= 1 for integer variables
2015-12-15 17:39:29 -08:00
Doug Gregor
2f5f94a12c
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-omit-needless-words
2015-12-15 17:11:37 -08:00
Nasser Ali AlZahrani
26669bd28e
Fix typos: add missing backticks to 'Streamable'
2015-12-16 11:28:03 +11:00
Max Moiseev
2021dd5a4d
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-15 12:49:22 -08:00
Arsen Gasparyan
ee97757756
Set default value
2015-12-15 23:30:08 +03:00
Dmitri Gribenko
f25bf9eaf7
Merge pull request #544 from nielsandriesse/patch-11
...
Update _DropFirstSequence.next() for removal of ++ operator
2015-12-15 09:42:09 -08:00