Commit Graph

1397 Commits

Author SHA1 Message Date
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
Dave Abrahams
40e9a0f859 [stdlib] Fix memory safety with evil collections
A collection whose count changes between traversals could cause a memory
safety problem, as we would measure the collection in one pass and
assume that it was the same length when actually initializing array
elements.  Fix that by always using the initial measurement, which
corresponds exactly to allocated memory.  If the collection wants to
trap because we've gone past its new bounds, that's fine.  If it
doesn't, at least we haven't done anything unsafe.

Swift SVN r22152
2014-09-20 03:35:23 +00:00
Doug Gregor
a54452f34c De-Gyb Assert.swift.gyb
Swift SVN r22140
2014-09-19 18:01:12 +00:00
Doug Gregor
7764f64cf8 Simplify assertion machinery in the standard library.
This change includes a number of simplifications that allow us to
eliminate the type checker hack that specifically tries
AssertString. Doing so provides a 25% speedup in the
test/stdlib/ArrayNew.swift test (which is type-checker bound).

The specific simplifications here:
  - User-level
  assert/precondition/preconditionalFailure/assertionFailer/fatalError
  always take an autoclosure producing a String, eliminating the need
  for the StaticString/AssertString dance.
  - Standard-library internal _precondition/_sanityCheck/etc. always
  take a StaticString. When we want to improve the diagnostics in the
  standard library, we can provide a separate overload or
  differently-named function.
  - Remove AssertString, AssertStringType, StaticStringType, which are
  no longer used or needed
  - Remove the AssertString hack from the compiler
  - Remove the "BooleanType" overloads of these functions, because
  their usefuless left when we stopped making optional types conform
  to BooleanType (sorry, should have been a separate patch).



Swift SVN r22139
2014-09-19 17:56:50 +00:00
Dmitri Hrybenko
ae8c52969b StdlibUnittest: make testing return-autoreleased optimization reliable
On some platforms (for example, x86_64), the first call to
`objc_autoreleaseReturnValue` will always autorelease because it would
fail to verify the instruction sequence in the caller.  On x86_64
certain PLT entries would be still pointing to the resolver function,
and sniffing the call sequence would fail.

This change adds a "warmup" return-autoreleased sequence to the test
harness.

rdar://18385128

Swift SVN r22127
2014-09-19 14:06:57 +00:00
Dave Abrahams
b5680b24ae [stdlib] Document Stride protocols
Also flesh out some RandomAccessIndexType docs

Swift SVN r22103
2014-09-18 22:23:08 +00:00
Dave Abrahams
ee05987aee [stdlib] Document StaticString protocols
Swift SVN r22102
2014-09-18 21:52:19 +00:00
Dave Abrahams
5c85fa5b7d [stdlib] Document Reflection protocols
Swift SVN r22100
2014-09-18 21:15:39 +00:00
Dave Abrahams
2e6ac37f55 [stdlib] document RangeReplaceableCollection
Swift SVN r22098
2014-09-18 20:47:20 +00:00
Dave Abrahams
02ebcad780 [stdlib] document remaining Policy.swift protocols
Swift SVN r22088
2014-09-18 18:44:42 +00:00
Doug Gregor
82d7daf5fc Revert StringInterpolationConvertible back to class method requirements.
The initializer requirement is causing too much exponential behavior
in the constraint solver. We'll have to address that
first. Re-instating this change is tracked by rdar://problem/18381811.


Swift SVN r22080
2014-09-18 17:10:53 +00:00
Doug Gregor
f1e47a7b18 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.


Swift SVN r22078
2014-09-18 16:13:18 +00:00
Doug Gregor
3ebf5cb3da Switch the string literal protocols over to initializer requirements.
Swift SVN r22076
2014-09-18 15:48:42 +00:00