Erik Eckstein
39bb14b094
change mangling prefix from $S to $s
...
This is the final ABI mangling prefix
rdar://problem/38471478
2018-09-19 13:55:11 -07:00
Arnold Schwaighofer
d981bb1d96
Mangling: noescape functions will be trivial and no longer compatible with escape function types.
...
Mangle escapeness as part of the type.
Part of:
SR-5441
rdar://36116691
2018-02-06 08:51:43 -08:00
Erik Eckstein
cd3d50a5d9
ABI: Change the mangling prefix from _T0 to $S
2018-01-06 13:55:59 -08:00
Erik Eckstein
c4a11f4c92
tests: remove the now unused option -new-mangling-for-tests
2017-03-22 11:28:43 -07:00
Erik Eckstein
1d3724666f
tests: convert about 400 tests to the new mangling by using the -new-mangling-for-tests option
...
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
2017-01-24 15:27:45 -08:00
Dmitri Gribenko
d175b3b66d
Migrate FileCheck to %FileCheck in tests
2016-08-10 23:52:02 -07:00
Doug Gregor
b9363fe6bd
[SE-0111] Enable SE-0111 by default.
2016-07-29 17:28:24 -07:00
Chris Lattner
f51fcdbbb6
stop using deprecated constructs.
2016-04-17 10:20:12 -07: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
9bcd5a1056
Collection.length => .count
2016-01-22 18:41:19 -08:00
Max Moiseev
a7339e67ac
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-22 11:36:07 -08:00
Chris Lattner
82e5c0c592
Update various tests to stop using ++/--
2015-12-21 18:07:37 -08:00
Dmitri Gribenko
73ce9ae7e9
Collection.count => .length
...
And other API changes that naturally fall out from this, like
Array(repeating:count:) => Array(repeating:length:).
2015-12-17 15:55:29 -08:00
Dmitri Gribenko
df17ddbc9b
init(count: Int, repeatedValue: Element) => init(repeating:count:)
...
Affected types: _ArrayType, Array, ArraySlice, ContiguousArray, Repeat,
String (initializers from Character and UnicodeScalar)
2015-12-09 17:14:37 -08:00
Joe Groff
0cd5aa8c7c
Change mangling for the Swift module from 'Ss' to 's'.
...
'Ss' appears in manglings tens of thousands of times in the standard library and is also incredibly frequent in other modules. This alone is enough to shrink the standard library by 59KB.
Swift SVN r32409
2015-10-02 22:39:44 +00:00
Michael Gottesman
6d74962918
Adapt all DebugInfo testcases to the new upstream LLVM metadata format.
...
Swift SVN r31813
2015-09-09 04:37:34 +00:00
Adrian Prantl
4f11ecc1da
Get rid of Int in the debug info tests and preform some general cleanup.
...
<rdar://problem/20856296> Extinguish 'Int' from DebugInfo tests
Swift SVN r31177
2015-08-12 18:16:43 +00:00
Dmitri Hrybenko
8b392eeea9
Revert "Remove Array.count, it is redundant with protocol extensions"
...
This reverts commit r28247 while we discuss the change.
Swift SVN r28292
2015-05-07 21:45:30 +00:00
Dmitri Hrybenko
58601fafc8
Remove Array.count, it is redundant with protocol extensions
...
Swift SVN r28247
2015-05-07 00:30:41 +00:00
Dmitri Hrybenko
0fce5c7b4e
tests: remove uses of println() that are not relevant to the tests
...
Swift SVN r28016
2015-05-01 03:35:50 +00:00
Duncan Exon Smith
c6d42db070
Adapt to MD* => DI* renaming of debug info types
...
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE). This is the
final step of rdar://problem/20434113.
Swift SVN r27925
2015-04-29 21:40:21 +00:00
Doug Gregor
793b3326af
Implement the new rules for argument label defaults.
...
The rule changes are as follows:
* All functions (introduced with the 'func' keyword) have argument
labels for arguments beyond the first, by default. Methods are no
longer special in this regard.
* The presence of a default argument no longer implies an argument
label.
The actual changes to the parser and printer are fairly simple; the
rest of the noise is updating the standard library, overlays, tests,
etc.
With the standard library, this change is intended to be API neutral:
I've added/removed #'s and _'s as appropriate to keep the user
interface the same. If we want to separately consider using argument
labels for more free functions now that the defaults in the language
have shifted, we can tackle that separately.
Fixes rdar://problem/17218256.
Swift SVN r27704
2015-04-24 19:03:30 +00:00
Duncan Exon Smith
093eb3c365
DebugInfo: Hand-update testcases after LLVM r231082
...
Update debug info testcases after moving the new hierarchy into place in
upstream LLVM r231082.
rdar://problem/19720042
Swift SVN r25715
2015-03-03 19:15:31 +00:00
Adrian Prantl
d70e28c917
Update this tescase for r25502.
...
Thanks Jordan for noticing.
Swift SVN r25518
2015-02-24 22:57:52 +00:00
Dmitri Hrybenko
3b04d1b013
tests: reorganize tests so that they actually use the target platform
...
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK. The driver was defaulting to the
host OS. Thus, we could not run the tests when the standard library was
not built for OS X.
Swift SVN r24504
2015-01-19 06:52:49 +00:00
Adrian Prantl
162bc8d24c
Updated testcases for upstream assembler changes.
...
Swift SVN r23942
2014-12-15 19:39:21 +00:00
Graham Batty
83f27a8af7
Revert "Mark tests that don't pass on linux as XFAIL."
...
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.
Swift SVN r23577
2014-11-24 17:42:13 +00:00
Graham Batty
198402dcfe
Mark tests that don't pass on linux as XFAIL.
...
Swift SVN r23573
2014-11-24 17:40:37 +00:00
Adrian Prantl
d8551038fe
Upgrade debug info tests to the new LLVM debug metadata format.
...
Thanks to Duncan for helping out with the upgrading!
Swift SVN r22512
2014-10-04 00:25:27 +00:00
Ted Kremenek
d075f06573
Require a minimum deployment target of iOS 7 or OSX 10.9
...
Implements <rdar://problem/17532113>
Swift SVN r19451
2014-07-02 06:23:38 +00:00
Doug Gregor
f0159f40a1
Ban the "new" syntax for creating an array <rdar://problem/16951969>.
...
We haven't been advertising this syntax much, and it's closure form
was completely broken anyway, so don't jump through hoops to provide
great Fix-Its here.
Swift SVN r19277
2014-06-26 23:51:47 +00:00
Doug Gregor
9210cd5ff4
Replace T[] array syntax with [T] in the test suite
...
Swift SVN r19192
2014-06-25 23:39:24 +00:00
Chris Lattner
70076cf958
switch the testsuite to use the ..< operator instead of ..
...
Swift SVN r19003
2014-06-19 17:18:23 +00:00
Ted Kremenek
9eea282719
Switch range operators ".." and "...".
...
- 1..3 now means 1,2
- 1...3 now means 1,2,3
Implements <rdar://problem/16839891>
Swift SVN r18066
2014-05-14 07:36:00 +00:00
Ted Kremenek
fad874708e
Adjust test cases.
...
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Adrian Prantl
b5f8c40f45
Debug info: Add a testcase for closures. Ensure that closures are not
...
artificial.
Swift SVN r6928
2013-08-06 00:56:32 +00:00
Adrian Prantl
c15cd49dc0
rename closure.swift -> autoclosure.swift
...
Swift SVN r6927
2013-08-06 00:56:30 +00:00
Adrian Prantl
14c02dad7b
Forgot to add the testcase for r6913.
...
Swift SVN r6920
2013-08-05 21:33:47 +00:00