Commit Graph

8 Commits

Author SHA1 Message Date
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Daniel Duan
8f955dc805 [Sema] Limit inout capture to @noescape contexts
The following diagnostics have been added:

1. implicit capture of inout arguments by closure literals that may escape (
   not mark by @noescape) is now invalid. This also includes implicit capture
   of `self`.
2. nested functions with inout captures cannot be used as arguments not marked
   @noescape.
3. nested function with inout captures cannot be a return value.

This change eliminates the need for the shadowing mechanism created for inouts.
2016-05-31 19:01:16 -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
Daniel Duan
2bc78b8c09 [stdlib] update for 'inout' adjustment (SE-0031) 2016-02-26 12:02:29 -08:00
Arnold Schwaighofer
859fbc0162 More executable_test for the test directory
Swift SVN r29280
2015-06-03 23:28:51 +00:00
Dmitri Hrybenko
f46f16ae82 stdlib: implement new print() API
rdar://20775683

Swift SVN r28309
2015-05-08 01:37:59 +00:00
Ted Kremenek
fad874708e Adjust test cases.
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Joe Groff
3d4c1251f1 Rename 'byref' attribute to 'inout'.
Swift SVN r8661
2013-09-25 20:56:52 +00:00