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
Dmitri Gribenko
b2afeb9a47
Remove the no-argument initializer, following the pattern set by unsafe pointers
2015-12-16 15:30:40 -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
Jason Patterson
c155e5b79a
Remove outdated, incorrect comment
2015-12-15 20:11:32 -05: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
Daniel Duan
ebb0c3a204
replaced single-line ++/-- with +=/-=
2015-12-15 09:05:37 -08:00
Dmitri Gribenko
10a8f4e3f9
Merge pull request #348 from wczekalski/bugfix/float-string-precision
...
Fix precision of float to string to max significant decimals
2015-12-15 02:41:49 -08:00
Chris Lattner
566d6a1728
Merge pull request #479 from PatrickPijnappel/spelling-grammar
...
[stdlib] Fix spelling & grammar
2015-12-14 20:10:46 -08:00
Dmitri Gribenko
8b88e5e446
Merge pull request #545 from nielsandriesse/patch-12
...
Update _PrefixSequence.next() for removal of ++ operator
2015-12-14 20:03:13 -08:00
Niels Andriesse
380c4e53c8
Update CollectionType.split(_:_:_:) for removal of ++ operator
2015-12-15 11:51:55 +11:00
Niels Andriesse
967ac96bb1
Update _PrefixSequence.next() for removal of ++ operator
2015-12-15 11:16:42 +11:00
Niels Andriesse
0e71b9277d
Update _DropFirstSequence.next() for removal of ++ operator
2015-12-15 11:04:41 +11:00
Max Moiseev
806be29941
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-14 12:05:35 -08:00
Wojtek Czekalski
10b61b7d8c
Made floating point numbers conform to CustomDebugStringConvertible
...
debugDescription prints numbers with greater precision
2015-12-14 19:25:14 +01:00
Wojtek Czekalski
e4fe5f1508
Introduced debug parameter in floating point to string conversion
2015-12-14 19:25:13 +01:00