Chris Lattner
bc09af33f1
Merge pull request #3592 from practicalswift/trailing-semicolon
...
[gardening] Remove trailing semicolons.
2016-07-19 22:58:35 -07:00
Luke Larson
74e0498015
Revert "Update master to build with Xcode 8 beta 3, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs."
...
This reverts commit 62d1fa760c .
2016-07-19 15:18:17 -07:00
Mishal Shah
62d1fa760c
Update master to build with Xcode 8 beta 3, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs.
2016-07-19 22:31:34 +02:00
Andrew Trick
5a8271c621
Rename UnsafePointer allocate & deallocate. ( #3608 )
...
As proposed in SE-0107: UnsafeRawPointer:
Rename 'init(allocatingCapacity:)' to 'UnsafeMutablePointer.allocate(capacity:)'
Rename 'deallocateCapacity' to 'deallocate(capacity:)'
`allocate` should not be an initializer. It's primary function is to allocate
memory, not initialize a pointer.
2016-07-19 11:48:18 -07:00
Dave Abrahams
b2bbd4c599
reduce(_ initial:combine:) => reduce(_ initialResult:_ nextPartialResult)
2016-07-19 07:12:59 -06:00
Dave Abrahams
014b6972cf
isOrderedBefore: => by areInIncreasingOrder:
2016-07-19 07:05:54 -06:00
Michael Gottesman
fc37603c5f
Revert "Implement SE-0118"
2016-07-18 16:44:58 -07:00
Andrew Trick
0230efc614
Rename UnsafePointer assign/initialize and eliminate Backward variants. ( #3585 )
...
Also fixes the comments to clarify that source and self memory
must be disjoint.
2016-07-18 15:15:47 -07:00
practicalswift
8287c5dfca
[gardening] Remove trailing semicolons.
...
Inspiration: 425138c56e
2016-07-19 00:04:53 +02:00
Dave Abrahams
b0044948df
reduce(_ initial:combine:) => reduce(_ initialResult:_ nextPartialResult)
2016-07-18 14:30:46 -06:00
Dave Abrahams
f3ccc956c6
isOrderedBefore: => by areInIncreasingOrder:
2016-07-18 14:29:09 -06:00
Dmitri Gribenko
e72bece130
benchmarks: fix warnings
2016-07-18 02:41:21 -07:00
Michael Gottesman
40e1991e12
Revert "Name and label changes for closure parameters (for review only) ( #2981 )"
...
This reverts commit 18406900ba .
2016-07-15 19:45:26 -07:00
Dave Abrahams
18406900ba
Name and label changes for closure parameters (for review only) ( #2981 )
...
Implement SE-0118 Name and label changes for closure parameters
[SE-0118](https://github.com/apple/swift-evolution/blob/master/proposals/0118-closure-parameter-names-and-labels.md )
2016-07-15 15:31:48 -07:00
Maxim Moiseev
61d1c599e8
[stdlib] Introducing the new Arithmetic protocol ( #3479 )
...
* [stdlib] Introducing the new Arithmetic protocol
* [stdlib] conforming floating point types to the new Arithmetic protocol
* [stdlib] removing AbsoluteValuable conformance from floating point types
* [stdlib] removing the integers prototype
2016-07-13 11:35:14 -07:00
Doug Gregor
823c24b355
[SE-0112] Rename ErrorProtocol to Error.
...
This is bullet (5) of the proposed solution in SE-0112, and the last
major piece to be implemented.
2016-07-12 10:53:52 -07:00
Arnold Schwaighofer
cd59716c78
[benchmark] PopFrontGeneric - Replace protocol with minimal implementation
...
_ArrayBufferProtocol's visiblity will be changed to internal. Replace with a
minimal implementation for this benchmark.
rdar://27261449
2016-07-11 08:55:33 -07:00
practicalswift
808b539f10
[gardening] Minor syntax cleanups.
2016-07-09 13:27:57 +02:00
practicalswift
5d1af107a3
[gardening] Use "{let,var} c: C" instead of "{let,var} c : C"
...
Inspired by @gribozavr:s fix in 1ad666742e
2016-07-01 23:51:32 +02:00
Austin Zheng
6042ee0244
[gardening] Add .self to suppress compiler warnings
2016-06-14 18:24:29 -07:00
Mishal Shah
87b7bcfd3e
Update master to build with Xcode 8 beta 1, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs.
2016-06-14 14:53:55 -07:00
Nate Cook
81eb96c6dc
Suppress warnings for unused results in benchmark tests
2016-05-17 14:34:06 -05:00
Trent Nadeau
0cc851568a
Updated tests to use @discardableResult and _ = .
2016-05-11 22:53:38 -04:00
Dave Abrahams
997b04384c
Update a benchmark for new indexing model
2016-05-02 13:49:15 -07:00
Nate Cook
21df5f203a
[stdlib] Fix errant tests
...
- A benchmark method was renamed during the Set API batch revisions
- The SourceKit test that includes stdlib docs needed a new fixture
2016-04-27 11:13:44 -05:00
Dave Abrahams
9bee5d182f
[stdlib] location/formLocation => index/formIndex
2016-04-26 17:46:16 -07:00
Dave Abrahams
debde16e2c
Merge set-api branch into swift-3-indexing-model
2016-04-26 15:56:42 -07:00
Dmitri Gribenko
0984f81a50
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-22 18:56:35 -07:00
Dave Abrahams
47a870cc50
[stdlib] Use location/formLocation for all index movement
2016-04-21 17:13:41 -07:00
Max Moiseev
63d3d1a573
[stdlib][swift-3-indexing-model] extensions for Collection and BidirectionalCollection with strideable indexes
2016-04-21 12:14:56 -07:00
Arnold Schwaighofer
aa34aceaee
Add a benchmark to test comparing equal strings
2016-04-20 09:15:41 -07:00
Arnold Schwaighofer
5122bfb711
Add a unicode version of the SortStrings benchmark
2016-04-19 14:16:27 -07:00
Arnold Schwaighofer
2520703f58
Add String.hasPrefix/hasSuffix benchmark
2016-04-19 08:15:23 -07:00
Dmitri Gribenko
fc8d62dfbb
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-18 14:40:06 -07:00
practicalswift
db452dcbe9
[gardening] "[ a, b ]" → "[a, b]"
2016-04-17 21:26:08 +02:00
practicalswift
8fc1307037
[gardening] "\t" → " "
2016-04-17 21:12:32 +02:00
practicalswift
c2107f456c
[gardening] "[ a, b ]" → "[a, b]" ( #2227 )
2016-04-17 21:02:18 +02:00
Dmitri Gribenko
cfea1a3f58
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-14 17:00:46 -07:00
Dmitri Gribenko
c52787e900
Merge commit '9cdbec13eee72feccfc5f8b987882a8c52e8107b' into swift-3-indexing-model
2016-04-14 16:23:53 -07:00
Dmitri Gribenko
3e708a9328
Merge commit '8e292daec1bc790c96b5ee39b8d55dadcac6ce1b' into swift-3-indexing-model
2016-04-14 15:10:26 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
practicalswift
dc6c2aeef6
[gardening] "Type->Type" → "Type -> Type" in Swift code
2016-04-13 23:03:55 +02:00
Dave Abrahams
1c3d998951
Revert "[gardening] "Type->Type" → "Type -> Type" in Swift code"
...
This reverts commit 14edeaf67a because
it's breaking tests:
https://ci.swift.org/job/oss-swift-incremental-RA-osx/lastFailedBuild/consoleFull#1361088108ee1a197b-acac-4b17-83cf-a53b95139a76
2016-04-13 10:29:57 -07:00
practicalswift
14edeaf67a
[gardening] "Type->Type" → "Type -> Type" in Swift code
2016-04-13 10:51:53 +02:00
practicalswift
c760f6dfbf
[gardening] Add whitespace: "foo,bar" → "foo, bar"
2016-04-12 22:31:46 +02:00
practicalswift
cb69632454
[gardening] Fix comments not starting with "// " or "# "
2016-04-12 09:22:52 +02:00
practicalswift
66183cdbf7
[gardening] Fix unjustified spacing
2016-04-07 10:10:24 +02:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Dmitri Gribenko
5a12349e9c
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-01 14:12:13 -07:00
Arnold Schwaighofer
bcb698bcb4
AngryPhonebook: uppercased and lowercased are functions so call them
...
We were not doing any work in this benchmark at -O because we were removing dead
code (to build a tuple of partially applied functions). Now that we are actually
calling the functions we can't eliminate dead code.
This is going to appear as a regression but it is none.
2016-03-31 09:17:17 -07:00