Commit Graph

5543 Commits

Author SHA1 Message Date
Wojtek Czekalski
e4fe5f1508 Introduced debug parameter in floating point to string conversion 2015-12-14 19:25:13 +01:00
Dmitri Gribenko
931b07fb62 Merge pull request #474 from PatrickPijnappel/patch-3
Expand tuple properties in Zip2Sequence/Generator
2015-12-14 02:45:37 -08:00
Chris Willmore
070d11031d Merge pull request #452 from dayitv89/gds-Fixtypos_cstring
Fix typo "nul-terminated" -> "null-terminated"
2015-12-13 21:06:42 -08:00
Dmitri Gribenko
a014eab642 Merge pull request #490 from kballard/swap-docstring-requires
[stdlib] Add note to swap() docstring about non-aliasing requirement
2015-12-13 18:03:49 -08:00
Arnold Schwaighofer
391237b134 Use subscript get for all array like types
Given SR-219 and the fact that we can't hoist uniqueness checks in the current
form using a plain subscript getter is not worse.
2015-12-13 17:25:41 -08:00
Kevin Ballard
a8833b5873 [stdlib] Add note to swap() docstring about non-aliasing requirement 2015-12-13 13:54:17 -08:00
Niels Andriesse
1c9eb6cfac Update _transcodeSomeUTF16AsUTF8(_:_:) for removal of ++ operator 2015-12-13 23:09:42 +11:00
Patrick Pijnappel
bbe0e514a2 [stdlib] Fix capitalization 2015-12-13 21:37:44 +11:00
Patrick Pijnappel
86e25e7e57 [stdlib] Fix word join grammar 2015-12-13 21:37:31 +11:00
Patrick Pijnappel
4aa89978d2 [stdlib] Fix typos 2015-12-13 21:35:53 +11:00
Patrick Pijnappel
4db650d01f De-joined property declarations 2015-12-13 20:08:29 +11:00
Patrick Pijnappel
c86e4a800b Expand tuple properties in Zip2Sequence/Generator
The previous arrangement made the numbering inconsistent, e.g. `baseStreams.1` was of type `Generator2`.
2015-12-13 19:39:14 +11:00
Dmitri Gribenko
ecd3c07a86 Merge pull request #466 from PatrickPijnappel/doc-nil
[stdlib] Add missing backticks around nil in docs
2015-12-12 19:56:23 -08:00
Dmitri Gribenko
0cf9b3e361 Merge pull request #470 from PatrickPijnappel/implicit-optionals
[stdlib] Replace `.Some(x)` and `.None` by `x` and `nil`, respectively
2015-12-12 19:55:34 -08:00
Niels Andriesse
d7bbee1e6b Update LazyFilterCollection.startIndex for removal of ++ operator
SIL is identical: https://gist.github.com/nielsandriesse/90761d98194b5f15a536
2015-12-13 12:33:37 +11:00
Chris Willmore
54be4fc3ff Remove @_transparent annotation from _undefined().
Following comments from Dmitri on c99c02b.
2015-12-12 17:12:44 -08:00
Patrick Pijnappel
668e7101eb [stdlib] Replace .None by nil in doc comments 2015-12-13 12:10:43 +11:00
Patrick Pijnappel
95622c435b [stdlib] Replace .Some(x) and .None by x and nil, respectively 2015-12-13 12:10:43 +11:00
Dmitri Gribenko
b9175c2a38 Merge pull request #443 from nielsandriesse/patch-3
Update IndexingGenerator.next() function for removal of ++ operator
2015-12-12 15:38:56 -08:00
Chris Lattner
778d66a72d Merge pull request #445 from nielsandriesse/patch-5
Update RangeGenerator.next() function for removal of ++ operator
2015-12-12 15:18:37 -08:00
Niels Andriesse
7275aa2c84 Change element to result 2015-12-13 10:16:52 +11:00
Dmitri Gribenko
9359b8a9f7 Merge pull request #465 from nielsandriesse/patch-7
Fix inconsistent indentation
2015-12-12 15:05:25 -08:00
Dmitri Gribenko
1808766152 Merge pull request #366 from PatrickPijnappel/patch-2
Fix comment in Zip2
2015-12-12 15:04:33 -08:00
Niels Andriesse
7398a88d2c Fix documentation 2015-12-13 09:44:00 +11:00
Patrick Pijnappel
6838f300b1 [stdlib] Add missing backticks around nil in docs 2015-12-13 09:40:49 +11:00
Niels Andriesse
a67ef174c0 Fix inconsistent indentation 2015-12-13 09:32:18 +11:00
Niels Andriesse
41d1589f95 Make local variable name more expressive 2015-12-13 09:21:04 +11:00
Patrick Pijnappel
92c8cdabe4 [stdlib] Unabbreviate local variable names 2015-12-13 08:43:24 +11:00
Greg Parker
1cc2fdd0b4 Merge pull request #339 from cielavenir/patch-1
Add withVaList() for environments without ObjC
2015-12-12 13:37:47 -08:00
T. Yamada
6773f9367a Add withVaList() for environments without ObjC 2015-12-12 22:31:49 +09:00
Dmitri Gribenko
0cc49187bb Merge pull request #368 from PatrickPijnappel/patch-3
stdlib: Merge guards in Zip2Generator
2015-12-12 01:42:27 -08:00
Dmitri Gribenko
27feeeda04 Merge pull request #446 from dayitv89/gds-FixTypos_BridgeOC
Fix Typos
2015-12-12 01:40:16 -08:00
GauravDS
14bfc33b82 Fix typos
colection => collection
2015-12-12 13:47:54 +05:30
GauravDS
161332cb5e fix typos nul => null 2015-12-12 13:22:51 +05:30
GauravDS
5ee32e43f4 Fix Typos
conditionall => conditionally 
alaways => always
2015-12-12 13:10:54 +05:30
Niels Andriesse
c3703f91cc Change guard statement to if statement 2015-12-12 18:02:14 +11:00
Niels Andriesse
12b85a1cf8 Change .None to nil 2015-12-12 17:45:22 +11:00
Niels Andriesse
d30db93977 Update next() function for removal of ++ operator 2015-12-12 17:43:12 +11:00
Niels Andriesse
f0241a2393 Fix documentation 2015-12-12 17:01:46 +11:00
Niels Andriesse
dc0612ccd4 Replace successor() by _successorInPlace() 2015-12-12 13:26:13 +11:00
Niels Andriesse
264fe32545 Remove .None and .Some usage 2015-12-12 13:24:37 +11:00
Arnold Schwaighofer
8f225da5ca Also use array semantics for the array element get function on non-objc systems
... and we hoist uniqueness checks for array on linux.

rdar://23865507
2015-12-11 17:15:15 -08:00
Niels Andriesse
635ffdc656 Fix ambiguous expression type 2015-12-12 12:00:05 +11:00
Niels Andriesse
6147e259a1 Update next() function for removal of ++ operator 2015-12-12 11:40:56 +11:00
Max Moiseev
786e1ea2b1 Merge remote-tracking branch 'origin' into swift-3-api-guidelines 2015-12-11 15:19:02 -08:00
Doug Gregor
06c5e9cd5b Enable "omit needless words" by default.
Most of this is in updating the standard library, SDK overlays, and
piles of test cases to use the new names. No surprises here, although
this shows us some potential heuristic tweaks.

There is one substantive compiler change that needs to be factored out
involving synthesizing calls to copyWithZone()/copy(zone:). Aside from
that, there are four failing tests:

    Swift :: ClangModules/objc_parse.swift
    Swift :: Interpreter/SDK/Foundation_test.swift
    Swift :: Interpreter/SDK/archiving_generic_swift_class.swift
    Swift :: Interpreter/SDK/objc_currying.swift

due to two independent remaining compiler bugs:
  * We're not getting partial ordering between NSCoder's
  encode(AnyObject, forKey: String) and NSKeyedArchiver's version of
  that method, and
  * Dynamic lookup (into AnyObject) doesn't know how to find the new
  names. We need the Swift name lookup tables enabled to address this.
2015-12-11 14:46:50 -08:00
Niels Andriesse
cb408d38f3 Fix indentation 2015-12-11 17:56:40 +11:00
Chris Willmore
c99c02b5a6 Transform EditorPlaceholderExpr into trap if executed in playground
mode (take 2)

Allow untyped placeholder to take arbitrary type, but default to Void.
Add _undefined<T>() function, which is like fatalError() but has
arbitrary return type. In playground mode, merely warn about outstanding
placeholders instead of erroring out, and transform placeholders into
calls to _undefined(). This way, code with outstanding placeholders will
only crash when it attempts to evaluate such placeholders.

When generating constraints for an iterated sequence of type T, emit

    T convertible to $T1
    $T1 conforms to SequenceType

instead of

    T convertible to SequenceType

This ensures that an untyped placeholder in for-each sequence position
doesn't get inferred to have type SequenceType. (The conversion is still
necessary because the sequence may have IUO type.) The new constraint
system precipitates changes in CSSimplify and CSDiag, and ends up fixing
18741539 along the way.

(NOTE: There is a small regression in diagnosis of issues like the
following:

    class C {}
    class D: C {}
    func f(a: [C]!) { for _: D in a {} }

It complains that [C]! doesn't conform to SequenceType when it should be
complaining that C is not convertible to D.)

<rdar://problem/21167372>

(Originally Swift SVN r31481)
2015-12-10 22:05:16 -08:00
Maxim Moiseev
b702b1a903 more number type renames 2015-12-10 17:08:41 -08:00
Maxim Moiseev
c35b0058fc SignedNumberType => SignedNumber 2015-12-10 17:07:10 -08:00