Chris Willmore
af0c7bd620
Initial implementation of SE-0054 "Abolish IUO Type" ( #2322 )
...
This is a squash of the following commits:
* [SE-0054] Import function pointer arg, return types, typedefs as optional
IUOs are only allowed on function decl arguments and return types, so
don't import typedefs or function pointer args or return types as IUO.
* [SE-0054] Only allow IUOs in function arg and result type.
When validating a TypeRepr, raise a diagnostic if an IUO is found
anywhere other thn the top level or as a function parameter or return
tpye.
* [SE-0054] Disable inference of IUOs by default
When considering a constraint of the form '$T1 is convertible to T!',
generate potential bindings 'T' and 'T?' for $T1, but not 'T!'. This
prevents variables without explicit type information from ending up with
IUO type. It also prevents implicit instantiation of functions and types
with IUO type arguments.
* [SE-0054] Remove the -disable-infer-iuos flag.
* Add nonnull annotations to ObjectiveCTests.h in benchmark suite.
2016-05-03 14:06:19 -07: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
Chris Willmore
a4484ffa09
Fix use of String.componentsSeparated(by:) in benchmark.
2016-04-07 23:39:23 -07: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
6985b958fd
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-04 11:42:17 -07:00
practicalswift
e8c4e1dd24
[gardening] Fix PEP 8 regression.
2016-04-02 11:31:07 +02:00
Slava Pestov
0969f273d6
benchmark: Respect the SWIFT_DARWIN_XCRUN_TOOLCHAIN build setting
2016-04-01 16:17:16 -07:00
Erik Eckstein
12f38252d9
compare_perf_tests script: Fix two minor bugs
...
1) --changes-only didn't have an effect on formats other than html
2) a wrong-format error was printed even if the format name was correct
2016-04-01 14:18:29 -07:00
Erik Eckstein
d628cced3d
compare_perf_tests script: Fix bug when calculating the minimum/maximum of multiple samples
...
Instead of the minimum always the last sample was taken.
2016-04-01 14:18:29 -07: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
Arnold Schwaighofer
1d2643b93f
Support performance testing with automatic bridging disabled.
2016-03-29 15:14:36 -07:00
Dave Abrahams
8e4f85277b
Merge remote-tracking branch 'refs/remotes/origin/master' into merge
2016-03-29 09:19:34 -07:00
practicalswift
11a8b6c2ba
[gardening] Daily cleanup: typos, header formatting.
2016-03-28 09:29:38 +02:00
practicalswift
d00a5ef814
[gardening] Weekly gardening: typos, duplicate includes, header formatting, etc.
2016-03-24 22:41:10 +01:00
Dave Abrahams
8d9e62b274
[stdlib] indexing model: rename next/previous
...
I'm not too satisfied with the names for the updating: versions, but
this is a start.
2016-03-22 17:13:54 -07:00
Max Moiseev
d3c1e7b493
[stdlib][swift-3-indexing-model] making benchmarks compile again
2016-03-22 15:46:50 -07:00
practicalswift
1f90412532
[Python] Remove unused function nthroot. Use sys.exit(…) instead of exit(…)
2016-03-22 21:34:41 +01:00
Mishal Shah
243e359fdc
Merge pull request #1682 from shahmishal/master
...
[Compare Perf] Add support for markdown and html
2016-03-22 11:59:45 -07:00
Mishal Shah
cb23837bb9
[Compare Perf] Add support for markdown and html
2016-03-21 18:08:08 -07:00
Max Moiseev
d7632a6ec3
[stdlib] making benchmarks compile with new collections
2016-03-21 16:52:49 -07:00
Dmitri Gribenko
a6cd57222a
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-21 14:41:15 -07:00
practicalswift
a942bb76d0
[gardening] Fix formatting of recently introduced headers.
2016-03-19 00:37:37 +01:00
Arnold Schwaighofer
9078011f93
[benchmark] Add autoreleasepool to objc bridging tests
...
We might be returning unowned objects as autorelease'd results.
I consciously do this in the test rather than in the driver because this makes
it easier to run the test in isolation.
2016-03-18 13:07:45 -07:00
Arnold Schwaighofer
4492e589e5
[benchmarks] ARC is not the default like I assumed
...
We are hence leaking ...
2016-03-18 12:01:49 -07:00
Arnold Schwaighofer
50c048d7e9
Add ObjectiveC bridging stub test support
...
This allows for testing the autogenerated bridging stub code.
2016-03-17 13:42:36 -07:00
Dave Abrahams
f493b54e44
[stdlib] indexing model: Interval/Range merge
...
This is step 1; we still need to introduce ClosedRange.
2016-03-16 15:59:10 -07:00