Dmitri Hrybenko
d7e724efa0
StaticString: use a less error-prone bit masking construct
...
Swift SVN r22357
2014-09-29 18:40:56 +00:00
Dmitri Hrybenko
4f38403eda
stdlib: fix bugs in StaticString.isASCII and add tests
...
rdar://18301485 rdar://18139547
Swift SVN r22356
2014-09-29 16:07:18 +00:00
Dmitri Hrybenko
f8455d3a6e
stdlib/Unicode: fix invalid casts in Character._SmallUTF16
...
Part of rdar://18151953
Swift SVN r22306
2014-09-26 22:59:59 +00:00
Dmitri Hrybenko
a2c4a7a3ea
stdlib: remove redundant parens
...
Swift SVN r22305
2014-09-26 22:59:55 +00:00
Dmitri Hrybenko
03d3d3b3f1
stdlib: rename IntEncoder to a more descriptive _SmallUTF8Sink
...
Swift SVN r22304
2014-09-26 22:01:44 +00:00
Devin Coughlin
9c7d27c4eb
Add an OS version check for API availability to standard library and runtime.
...
This patch adds a compiler entry point to the standard library that checks
whether the running OS version is greater than or equal to a given version
triple. The idea is that #os(...) will get SILGen'd into a call to this
function.
The standard library function calls a runtime function to actually get the OS
version. This runtime function uses -[NSProcessInfo operatingSystemVersion] when
possible, otherwise it loads the SystemVersion plist. When running under the
simulator, we use an environmental variable set by the simulator to look up the
version for the simulated OS and not the host OS.
At the moment, there is no caching for version info. I will add this in a later
patch.
Swift SVN r22303
2014-09-26 18:26:29 +00:00
Dmitri Hrybenko
a04ee3a463
stdlib/Unicode: allow transcode() to operate on mutable value-typed
...
sinks
Swift SVN r22302
2014-09-26 17:28:00 +00:00
Joe Groff
c04992bf78
stdlib: Remove Array.convertFromHeapArray.
...
Swift SVN r22297
2014-09-26 04:27:19 +00:00
Joe Groff
9eb4f5b512
SILGen: Use Array._allocateUninitialized to form array literals.
...
This avoids a pointless copy every time an array literal is written, and will let us retire the horrible "alloc_array" instruction and globs of broken IRGen code. Implements rdar://problem/16386862, and probably fixes a bunch of bugs related to alloc_array brokenness.
Swift SVN r22289
2014-09-25 22:26:20 +00:00
Erik Eckstein
a4c7d89671
fix coding style in stdlib: move non-attribute keywords in same line as function declaration
...
Swift SVN r22275
2014-09-25 08:43:55 +00:00
Dmitri Hrybenko
42b9bf3e28
stdlib: use addressors in {ContiguousArray,Slice}.subscript(_: Int)
...
Swift SVN r22265
2014-09-24 14:38:23 +00:00
Dave Abrahams
a7f3e4222e
[stdlib] finish public non-protocol docs
...
The 58 undocumented public non-operator APIs still present in core are
all on non-exposed (underscored) APIs.
Swift SVN r22263
2014-09-24 12:31:45 +00:00
Dave Abrahams
624aa742b2
[stdlib] document public API in Range.swift
...
131 undocumented public non-operator APIs remain in core
Swift SVN r22255
2014-09-24 06:50:19 +00:00
Dave Abrahams
d1b6dfa48f
[stdlib] pick off more public non-protocol docs
...
137 undocumented public non-operator APIs remain in core
Swift SVN r22253
2014-09-24 03:58:14 +00:00
Dave Abrahams
66d2ba43c6
[stdlib] underscore APIs made visible by r22212
...
That commit made a protocol public. The protocol was underscored but
some of its APIs were not, and those became unintentionally publicly
visible. This commit corrects that problem. Since Builtin.RawPointer
properties were being renamed from "value" to "_rawValue" for clarity,
COpaquePointer got that treatment too, even though it wasn't strictly
necessary, for consistency.
Swift SVN r22252
2014-09-24 02:50:43 +00:00
Dave Abrahams
8a886b5d07
[stdlib] Fix incomplete parameter rename
...
Swift SVN r22247
2014-09-24 00:43:15 +00:00
Dave Abrahams
42cef97f6b
[stdlib] Misc protocol comment propagation
...
171 undocumented non-operator public APIs remain in core
Swift SVN r22246
2014-09-24 00:27:58 +00:00
Dave Abrahams
824e78dd89
[stdlib] pick off public non-protocol docs
...
197 undocumented public non-operator APIs remain in core
Swift SVN r22242
2014-09-23 23:36:00 +00:00
Dave Abrahams
795799b0d2
[stdlib] Propagate Hashable docs
...
202 undocumented public non-operator APIs remain in core
Swift SVN r22241
2014-09-23 23:35:58 +00:00
Dave Abrahams
411bcf2e75
[stdlib] Propagate CVarArgsType docs
...
211 undocumented public non-operator APIs remain in core
Swift SVN r22240
2014-09-23 23:22:18 +00:00
Dave Abrahams
03288b8ebd
[stdlib] Propagate UnicodeCodecType docs
...
224 undocumented public non-operator APIs remain in core
Swift SVN r22239
2014-09-23 23:18:47 +00:00
Dave Abrahams
69470a24ff
[stdlib] Propagate Strideable docs
...
228 undocumented public non-operator APIs remain in core
Swift SVN r22237
2014-09-23 23:13:28 +00:00
Dave Abrahams
dbde275230
[stdlib] Propagate Reflectable docs
...
230 undocumented public non-operator APIs remain in core
Swift SVN r22236
2014-09-23 23:08:43 +00:00
Dave Abrahams
6bb89ae255
[stdlib] Propagate RangeReplaceableCollectionType docs
...
240 undocumented public non-operator APIs remain in core
Swift SVN r22235
2014-09-23 22:48:15 +00:00
Dave Abrahams
24fe53ed6c
[stdlib] Propagate OutputStream docs
...
240 undocumented public non-operator APIs remain in core
Note: previous estimates were wrong because my regex was broken. The
previous commit, for example, had 260 undocumented APIs.
Swift SVN r22234
2014-09-23 22:01:49 +00:00
Dave Abrahams
f5c80b115b
[stdlib] Propagate ExtensibleCollectionType docs
...
184 undocumented public non-operator APIs remain in core
Swift SVN r22231
2014-09-23 21:13:45 +00:00
Dave Abrahams
ea47b64bcc
[stdlib] Propagate IntegerArithmeticType docs
...
184 undocumented public non-operator APIs remain in core
Swift SVN r22227
2014-09-23 20:16:36 +00:00
Dave Abrahams
3f4e7f5bc8
[stdlib] Propagate RandomAccessIndexType docs
...
190 undocumented non-operator public APIs remain in core
Swift SVN r22226
2014-09-23 19:43:36 +00:00
Dave Abrahams
218d25eb5a
[stdlib] Propagate BidirectionalIndexType docs
...
193 undocumented public non-operator APIs remain in core
Swift SVN r22225
2014-09-23 19:35:31 +00:00
Dave Abrahams
9623c52879
[stdlib] Misc protocol comment propagation
...
197 undocumented non-operator public APIs remain in core
Swift SVN r22224
2014-09-23 19:35:29 +00:00
Dave Abrahams
c38e3201b2
[stdlib] Propagate ForwardIndexType docs to models
...
200 undocumented public APIs remain in core
Swift SVN r22222
2014-09-23 19:20:48 +00:00
Dave Abrahams
b2d0ef6fef
[stdlib] Propagate FloatingPointType docs
...
206 undocumented public APIs remain in core
Swift SVN r22220
2014-09-23 18:52:21 +00:00
Dave Abrahams
649c35fab3
[stdlib] Propagate integer protocol docs to models
...
219 undocumented public APIs remain in core
Swift SVN r22219
2014-09-23 18:44:59 +00:00
Erik Eckstein
03a5e44a98
Make some internal functions in Hashing.swift public so that they can be access from validation tests.
...
This is a workaround to fix a fail in the swift validation.
Swift SVN r22217
2014-09-23 16:21:57 +00:00
Dave Abrahams
7c9ebaa19f
[stdlib] Propagate LiteralConvertible docs
...
219 undocumented public APIs remain in core
Swift SVN r22213
2014-09-23 11:12:39 +00:00
Erik Eckstein
f8f703083f
Make compiler intrinsics public.
...
Swift SVN r22212
2014-09-23 11:12:18 +00:00
Dave Abrahams
f780a1ce67
[stdlib] Propagate NilLiteralConvertible docs
...
229 undocumented public APIs remain in core
Swift SVN r22211
2014-09-23 10:49:47 +00:00
Dave Abrahams
f4a7812065
[stdlib] Propagate SequenceType docs to models
...
235 undocumented public APIs remain in core
Swift SVN r22210
2014-09-23 10:40:37 +00:00
Dave Abrahams
76f9313088
[stdlib] Propagate GeneratorType docs to models
...
Swift SVN r22208
2014-09-23 09:47:26 +00:00
Dave Abrahams
d4de1bf5e9
[stdlib] Propagate BooleanType docs to models
...
265 undocumented public APIs remain in core
Swift SVN r22207
2014-09-23 08:37:24 +00:00
Dave Abrahams
1dd7272fe9
[stdlib] Propagate CollectionType docs to models
...
266 undocumented public APIs remain in core
Swift SVN r22206
2014-09-23 08:19:23 +00:00
Dave Abrahams
07cccf27a2
[stdlib] More Documentation
...
Swift SVN r22191
2014-09-22 23:12:34 +00:00
Dave Abrahams
a00085e6ce
[stdlib] Document public non-protocol API thru 'B'
...
Swift SVN r22186
2014-09-22 21:51:38 +00:00
Anna Zaks
505257ae9b
API Notes: This contains audit for most of AppKit!
...
Plus, smaller enhancements on the other frameworks.
Removes the need for _PrintableNSObjectType hack (rdar://problem/16883288)
Swift SVN r22185
2014-09-22 21:47:22 +00:00
Dave Abrahams
530844f5b1
[stdlib] Document public VarArgs protocols
...
Swift SVN r22182
2014-09-22 21:00:46 +00:00
Dave Abrahams
6e782b0b30
[stdlib] Document public Unicode protocols
...
Swift SVN r22181
2014-09-22 20:44:22 +00:00
Dave Abrahams
98c7b6401b
[stdlib] Underscore/sanityCheck Unicode internals
...
This completes the work of r22178
Swift SVN r22180
2014-09-22 20:41:08 +00:00
Dave Abrahams
3397e2e632
[stdlib] Make StringElementType internal
...
Swift SVN r22178
2014-09-22 20:26:45 +00:00
Doug Gregor
df33350219
Switch string interpolation protocol over to initializer requirements.
...
With this, we're now using initializer requirements rather than
"convertFromXXX" requirements everywhere, addressing the rest of
rdar://problem/18154091. r22176 eliminated the performance penalty
that prevented this change from sticking earlier.
Swift SVN r22177
2014-09-22 20:17:55 +00:00
Doug Gregor
af5389c006
Add a type annotation to help the type checker.
...
The type checker was going horribly exponential here to the tune of 6
seconds (RelWithDebInfo!). While we obviously need to fix the type
checker (rdar://problem/17877769), this workaround makes development
less painful for everyone for now.
Swift SVN r22175
2014-09-22 18:39:28 +00:00