Commit Graph

8541 Commits

Author SHA1 Message Date
Joe Groff
42a942925b Enable block bridging.
Swift SVN r16248
2014-04-12 05:13:45 +00:00
Nadav Rotem
5bfed07e16 Add a python version of the StringSort benchmark.
Swift SVN r16233
2014-04-11 22:42:50 +00:00
Dave Zarzycki
40237623a7 Benchmark: code feedback for Nadav
Swift SVN r16229
2014-04-11 21:44:26 +00:00
Doug Gregor
4eedb712b6 Release notes for default initialization of optionals to nil
Swift SVN r16224
2014-04-11 20:04:15 +00:00
Joe Groff
f9d3a8f507 Move the precedence of 'as' and 'is' above comparisons.
This makes it so that 'x is Foo && y is Bar' works, or '3/4 as Float == 6/8 as Float'. Fixes <rdar://problem/16580208>.

Swift SVN r16220
2014-04-11 17:22:14 +00:00
Michael Gottesman
fdd36e9585 [sil-mode.el] Update sil-mode for latest changes. This includes additions, renamings, and deletions.
Swift SVN r16193
2014-04-11 02:14:13 +00:00
Chris Lattner
f233d28c5b expand on a note.
Swift SVN r16188
2014-04-11 00:43:04 +00:00
Doug Gregor
c7a21213af Release-note improvements to @IBOutlet.
Swift SVN r16180
2014-04-10 23:09:59 +00:00
Nadav Rotem
6e4be5a072 Add an ObjC version to the StringSort benchmark.
Swift SVN r16166
2014-04-10 16:57:27 +00:00
Dave Abrahams
8aec65c48a Release note Dictionary changes
Swift SVN r16136
2014-04-09 23:10:58 +00:00
Chris Lattner
5e9b0cef00 expand this a bit.
Swift SVN r16120
2014-04-09 16:40:35 +00:00
Dmitri Hrybenko
f90e0c153b Make 'override' a keyword
rdar://16462192

Swift SVN r16115
2014-04-09 14:19:50 +00:00
Dmitri Hrybenko
a8f85d72bc Allow semicolon can be used as a single no-op statement in otherwise empty cases in
switch statements.

rdar://16381532


Swift SVN r16112
2014-04-09 10:40:48 +00:00
Nadav Rotem
66ca29fb7a Update the test iteration count and add the complex unicode string
Swift SVN r15956
2014-04-04 21:26:52 +00:00
Jordan Rose
cecd37fa12 Turn off OS X's automatic crash reporting while running tests.
This doesn't currently provide any real speedup benefit because of the one
long-running test <rdar://problem/16503167>, but it does seem to take much
less CPU (peaking at around 70% instead of 100% for me).

Swift SVN r15954
2014-04-04 20:57:30 +00:00
Chris Lattner
d2040740ba release note @final.
Swift SVN r15940
2014-04-04 15:56:53 +00:00
Joe Groff
df03c01b4d Complete the release note with an NSError** example.
Swift SVN r15897
2014-04-03 22:39:36 +00:00
Joe Groff
9a3b13190e Augment the C*Pointer release notes with a note about void pointers.
Swift SVN r15895
2014-04-03 21:10:54 +00:00
Doug Gregor
37a4ce2227 Produce an error with Fix-Its for the "separated" call syntax.
We are removing this syntax. To stage the move, first error with
Fix-Its to rewrite to the keyword-argument syntax. In a week or so,
we'll remove all of the code supporting the "separated" call syntax.

Swift SVN r15833
2014-04-02 21:34:27 +00:00
Doug Gregor
234b1e2f84 Release notes for @objc name.
Swift SVN r15823
2014-04-02 19:50:04 +00:00
John McCall
404d89c6d0 Release note the UncheckedOptional import change.
Swift SVN r15816
2014-04-02 18:38:11 +00:00
Chris Lattner
9a9b66d0c6 mention the di rules
Swift SVN r15720
2014-04-01 03:39:58 +00:00
Joe Groff
83a830eb8a Release note C*Pointer<T>.
Swift SVN r15715
2014-04-01 00:32:16 +00:00
Jordan Rose
99e13bccb9 Release notes for the revised enum prefix stripping rules.
Swift SVN r15714
2014-04-01 00:24:42 +00:00
Dave Abrahams
19f22d9f57 [utils] gyb/line-directive: fix up line alignment
Needed to properly map a file's first line to itself in the absence of a
directive.  We were also off by two columns due to a stray +2

Swift SVN r15682
2014-03-31 16:37:51 +00:00
Dave Abrahams
c733f3e419 [build] Integrate gyb line-directive processing
Diagnostic output from compiling .swift files is now passed through the
line-directive tool so that errors point back at the original .gyb
files.

Swift SVN r15674
2014-03-31 08:42:56 +00:00
Dmitri Hrybenko
efabe13ee0 buildbot-script: build SourceKit unit tests before testing SourceKit
Swift SVN r15647
2014-03-30 14:56:28 +00:00
Michael Gottesman
c98c4d54b1 Move Benchmark.swift out of the stdlib now that we can deserialize from the stdlib.
rdar://15797364.

Swift SVN r15636
2014-03-29 22:19:34 +00:00
Ted Kremenek
07a4449621 Remove vestigial comma-separated attribute list for declarations.
For example:

  @class_protocol, @objc

is now just:

  @class_protocol @objc

Once we removed attribute grouping in brackets this comma separation
became vestigial.  Doug and I discussed this and thought this
was a good simplification in the grammar.

This change still remains to be done for type attributes.

Swift SVN r15540
2014-03-27 00:11:40 +00:00
Doug Gregor
019bb049a1 [Clang importer] Import initializer methods in protocols as initializers.
You can't actually call these initializers with an existential yet, but nor could you safely call the init methods anyway. At least you'll be able to conform to NSCoding with an initializer rather than an "init method". Fixes <rdar://problem/15595471>.

Swift SVN r15521
2014-03-26 21:02:35 +00:00
Greg Parker
3d0cf8bbd9 [build] Fix iOS bugs, again.
In retrospect testing this directly on the buildbot was not the most efficient approach.


Swift SVN r15497
2014-03-26 08:44:39 +00:00
Greg Parker
117533896c [build] Fix typo.
Swift SVN r15496
2014-03-26 08:15:49 +00:00
Greg Parker
2825f83c3b [build] Fix some bugs in the new iOS build handling.
Swift SVN r15495
2014-03-26 08:13:25 +00:00
Greg Parker
e3afea9bc5 [build] Add options to separately skip iOS device and simulator builds.
buildbot-script:
--skip-build-ios == --skip-build-ios-device --skip-build-ios-simulator


Swift SVN r15494
2014-03-26 07:59:36 +00:00
Greg Parker
bdf5f5b7bc [build] Add options to separately skip iOS device and simulator tests.
buildbot-script: 
--skip-test-ios == --skip-test-ios-device --skip-test-ios-simulator

build-script:
-i or --ios builds for iOS device and simulator, but tests simulator only.


Swift SVN r15493
2014-03-26 07:51:56 +00:00
Jordan Rose
dc1849cded Add a release-note for the refined enum prefix dropping.
<rdar://problem/15496513>

Swift SVN r15467
2014-03-25 21:30:49 +00:00
Joe Groff
4fdc20f739 Allow '<pattern> as T' checked patterns with subpattern bindings.
Allow a form of 'case is T' that matches the cast result to a subpattern, 'case <pattern> as T'. This exposes an issue in switch destructuring with casting into complex class hierarchies <rdar://problem/16401831> but works for common cases.

Swift SVN r15396
2014-03-24 00:02:44 +00:00
Nadav Rotem
37abdddb8e Print the total execution time.
Swift SVN r15385
2014-03-23 07:30:39 +00:00
Joe Groff
5acb661fee Parse: Allow binary operator chains to extend past 'as' or 'is'.
Continue parsing operators after 'as <type>' or 'is <type>', which allows cast chains like 'x as Derived! as Base' or '1 as UInt8 + x' without parens, finishing <rdar://problem/15640006>.

Swift SVN r15357
2014-03-22 01:09:03 +00:00
Dave Abrahams
e07dc1d62d [stdlib] add line-directive post-processor
Swift SVN r15344
2014-03-21 22:11:47 +00:00
Dave Abrahams
b429fb5ebb [utils] gyb: generate line directives
Swift SVN r15343
2014-03-21 22:11:47 +00:00
Dave Abrahams
5b545d40ec [utils] gyb: store token match in parse context
Swift SVN r15342
2014-03-21 22:11:46 +00:00
Dave Abrahams
8599a6bf5e [utils] gyb: useful match object for literal text
Literal text was being returned from the tokenizer with the regexp match
object for the /next/ token, if any.  We need to know the beginning of
the text if we're going to generate #line markers.

Swift SVN r15341
2014-03-21 22:11:46 +00:00
Joe Groff
d75eeb61d5 Parser: Accept 'x as T!' as a synonym for '(x as T)!'.
Look for a postfix '!' after an 'as' production, and if we see it, carry it along in the CheckedCastExpr so we can wrap the cast in a ForceValueExpr once sequence folding resolves the LHS of the cast. Implements part of <rdar://problem/15640006>.

Swift SVN r15307
2014-03-21 00:18:26 +00:00
Chris Lattner
f392549455 Implement: <rdar://problem/15920616> Implement willSet/didSet that wrap a superclass property instead of storage
This provides support for observing properties to @override base properties,
observing what happens to them.  Note that it still isn't possible to override
a stored property at all, so this only works when overriding a computed property.


Swift SVN r15280
2014-03-20 20:01:48 +00:00
Dmitri Hrybenko
11fea869c1 Change 'switch' not to fall through between empty cases and always require at
least one statement per case

rdar://16301313


Swift SVN r15266
2014-03-20 11:44:59 +00:00
Doug Gregor
c285bddf2d Release notes for initializer inheritance and stub implementations.
Swift SVN r15223
2014-03-19 05:39:19 +00:00
Chris Lattner
9f9241d5e8 release note dynamic dispatch in properties.
Swift SVN r15220
2014-03-19 04:20:44 +00:00
Michael Gottesman
9dc54410e5 Change the prims cpp benchmark to match the prims swift benchmark.
Also up the number of iterations the swift benchmark in the stdlib runs so that
it matches the number of iterations the c++ version does. This iteration number
is enough to cause the c++ version to run for ~1 second. With this same number
of iterations, the swift version takes ~10 seconds.

Swift SVN r15205
2014-03-18 21:45:41 +00:00
Michael Gottesman
b0ff333390 Revert "Revert "Add prims to Benchmark.swift.""
This reverts commit r15200. This readds prim with a smaller test case to get
around type checker slowness that causes the compiling with Benchmarks to be
prohibitively slow. Now we use a smaller dataset but run it for more times.

Swift SVN r15204
2014-03-18 21:13:22 +00:00