Karoy Lorentey
f0f06ed4ec
Merge pull request #326 from lorentey/heap-doc-improvements
...
[Heap] Improve type-level doc comment
2023-11-14 16:40:29 -08:00
Karoy Lorentey and Stephen Canon
19ec155f60
Update Sources/HeapModule/Heap.swift
...
Co-authored-by: Stephen Canon <stephentyrone@gmail.com >
2023-11-14 11:06:05 -08:00
Karoy Lorentey
7686af1555
[Heap] Improve type-level doc comment
2023-11-13 18:33:43 -08:00
Karoy Lorentey
4a1d92ba85
Merge pull request #320 from lorentey/remove-unnecessary-typealiases
...
[RopeModule] Remove unnecessary typealiases
2023-10-18 18:24:58 -07:00
Karoy Lorentey
33f23b6a06
[RopeModule] Remove unnecessary typealiases
...
These render the emitted .swiftinterface unusable when the module is built with library evolution enabled.
2023-10-18 17:57:00 -07:00
Karoy Lorentey
3c8cfc7b07
Merge pull request #319 from lorentey/update-build-configs
...
[CMake, Xcode] Update configurations for alternate build systems
2023-10-18 16:22:43 -07:00
Karoy Lorentey
bd1a622735
[CMake, Xcode] Update buid configurations
2023-10-18 15:54:07 -07:00
Karoy Lorentey
9436aab34c
[HashTreeCollections] _StorageHeader.swift → _HashNodeHeader.swift
2023-10-18 15:52:05 -07:00
Karoy Lorentey
a067b75fb8
Merge pull request #318 from lorentey/enable-stable-ropes
...
[RopeModule] Fix issues in Swift's ABI stable dialect
2023-10-18 15:44:30 -07:00
Karoy Lorentey
de2c8a9086
[RopeModule] Allow building with library evolution enabled
...
rdar://114659667
2023-10-18 14:22:12 -07:00
Karoy Lorentey
873690c60e
Merge pull request #302 from lorentey/fix-descriptions
...
Fix CustomStringConvertible/CustomDebugStringConvertible conformances
2023-07-07 11:36:06 -07:00
Karoy Lorentey
09c09f0f73
Fix CustomStringConvertible/CustomDebugStringConvertible conformances
...
- For CustomStringConvertible, `description` should print elements using `String(reflecting:)` rather than `String(describing:)`, to avoid element output from interfering with syntactically relevant punctuation within structured list displays.
- To make this work without making displays overly verbose, make `debugDescription` mostly the same as `description`, except for escaping raw string displays when and if needed.
- Avoid printing type names in `debugDescription` — it is generally not helpful, as the type is already easily accessible elsewhere. Including it makes for overly verbose displays when the type serves as an Element of a collection.
- Avoid having `debugDescription` return the empty string — it can be confusing when such a description appears in list displays.
Resolves #301 .
2023-07-06 17:25:11 -07:00
Karoy Lorentey
9eece74f39
Merge pull request #297 from hassila/patch-2
...
Update TreeSet.md
2023-06-22 13:23:45 -07:00
Joakim Hassila
b3d089e37d
Update TreeSet.md
...
Fix typo
Replace this paragraph with a description of your changes and rationale. Provide links to an existing issue or external references/discussions, if appropriate.
2023-06-21 09:42:04 +02:00
Karoy Lorentey
d8003787ef
Merge pull request #291 from lorentey/rope-fix-find-at-end
...
`Rope.find` returns a bogus remainder for the end position
2023-06-02 17:49:14 -07:00
Karoy Lorentey
03e7f0c401
[Rope] Fix find to return a zero remainder for the end position
2023-06-02 17:37:30 -07:00
Karoy Lorentey
c52a1fbf05
Merge pull request #290 from lorentey/remove-range-from-empty-rope
...
Rope: Fix trap when replaceSubrange is called on an empty rope
2023-06-02 13:57:53 -07:00
Karoy Lorentey
03c9ef743a
[Rope] Fix crash when calling replaceSubrange/removeSubrange on an empty rope
2023-06-01 20:24:24 -07:00
Karoy Lorentey
374c3a4805
Migrate rope tests to CollectionsTestSupport assertions
2023-06-01 20:23:49 -07:00
Karoy Lorentey
d93d1dccc1
Merge pull request #285 from lorentey/fix-code-signing
...
[Xcode] Set a code sign identity in the Xcode project
2023-05-18 19:20:46 -07:00
Karoy Lorentey
9c91c5a3ee
Merge pull request #288 from lorentey/fix-test-issues
...
Grab bag of fixes for small test issues
2023-05-18 19:19:50 -07:00
Karoy Lorentey
523a409ba4
Merge pull request #287 from lorentey/fix-BitSet-isEqualSet
...
[BitSet] Fix a thinko in BitSet.isEqualSet
2023-05-18 19:09:33 -07:00
Karoy Lorentey
7de462edfc
Merge pull request #286 from lorentey/silence-32bit-warning
...
[CollectionUtilities] Silence a warning on 32 bit platforms
2023-05-18 18:59:50 -07:00
Karoy Lorentey
a5fda7c368
[RopeModule] Reduce test workload on watchOS
2023-05-18 18:42:54 -07:00
Karoy Lorentey
d13dc28dbe
[CollectionsTestSupport] Fix rare overflow in integer square root tests
2023-05-18 18:42:29 -07:00
Karoy Lorentey
4b1aa5a640
[HashTreeCollections] Resolve issues with running tests on 32 bit systems
2023-05-18 18:41:42 -07:00
Karoy Lorentey
de0f594185
[BitSet] Fix a thinko in BitSet.isEqualSet
2023-05-18 18:36:29 -07:00
Karoy Lorentey
0c002200bb
[CollectionUtilities] Silence a warning on 32 bit platforms
...
It turns out `UInt.bitWidth` is getting too eagerly inlined, so conditions based on it trigger spurious “code will never be executed” warnings. Silence those by switching to looking at `MemoryLayout<UInt>`, which doesn’t get turned into a constant *that* early.
2023-05-18 18:32:41 -07:00
Karoy Lorentey
9befd06185
[Xcode] Set a code sign identity (so that we default to ad-hoc signatures)
2023-05-18 18:18:24 -07:00
Karoy Lorentey
992e0f3446
Update configuration for the Swift Package Index
2023-04-24 13:47:32 -07:00
Karoy Lorentey
3e4a8b4dff
Merge branch 'release/1.0' into release/1.1
...
# Conflicts:
# .gitignore
# Package.swift
# Sources/Collections/Collections.docc/Collections.md
# Sources/Collections/Collections.docc/Extensions/Deque.md
# Sources/Collections/Collections.docc/Extensions/OrderedSet.UnorderedView.md
# Sources/Collections/Collections.docc/Extensions/OrderedSet.md
# Sources/DequeModule/DequeModule.docc/DequeModule.md
# Sources/DequeModule/DequeModule.docc/Extensions/Deque.md
# Sources/OrderedCollections/HashTable/_HashTable+UnsafeHandle.swift
# Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.UnorderedView.md
# Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.md
# Sources/OrderedCollections/OrderedCollections.docc/OrderedCollections.md
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet.swift
# Sources/OrderedCollections/Utilities/_UnsafeBitset.swift
# Utils/generate-docs.sh
2023-04-24 13:45:55 -07:00
Karoy Lorentey
2ca40e2a65
Merge pull request #280 from lorentey/minor-rope-updates
...
[Rope] remove(at:): Fix assertion when removing the last item creates a deficiency
2023-04-17 17:29:18 -07:00
Karoy Lorentey
dce7b156e7
[Rope] remove(at:): Fix assertion when removing the last item creates a deficiency
2023-04-17 17:20:07 -07:00
Karoy Lorentey
9bb319f336
Merge pull request #279 from lorentey/minor-rope-updates
...
Minor rope updates
2023-04-17 12:08:03 -07:00
Karoy Lorentey
b0fe7ca8ba
[Rope] replaceSubrange: take a sequence, not a collection
2023-04-14 14:38:30 -07:00
Karoy Lorentey
8d7c630712
[Xcode] Enable randomized testing
2023-04-13 19:36:28 -07:00
Karoy Lorentey
3fa52c48de
[Rope] Add remove(at:), remove(at:in:) variants that preserve the position
2023-04-13 19:36:09 -07:00
Karoy Lorentey
1925ed3001
[Rope] update(at:by:): Invalidate indices
...
Calling this function is supposed to invalidate all indices other than
the input index — so let’s do that.
2023-04-12 17:55:19 -07:00
Karoy Lorentey
cead2b3d64
[Rope] index(_:offsetBy:in:preferEnd:) fix result tuple labeling
...
This renames `remainder` to `remaining`, restoring API consistency.
2023-04-12 17:54:13 -07:00
Karoy Lorentey
bc21b90ff1
[Rope] Minor usability fixes and API additions
2023-04-12 17:53:04 -07:00
Karoy Lorentey
4afdfe4da2
[Rope] Flesh out docs a little bit
...
Rope remains woefully undocumented, and I suspect its abstraction
level isn’t right for general use, but let’s see if writing up some
documentation for it will make it a bit more accessible.
2023-04-12 17:52:19 -07:00
Karoy Lorentey
84f51c2b99
Merge pull request #278 from lorentey/update-xcode-project
...
[Xcode] Update Xcode project
2023-04-10 19:39:05 -07:00
Karoy Lorentey
99adbe97af
[Xcode] Update Xcode project
...
- Update to Xcode 14.3
- Update source filelists
- Remove DEFINES_MODULE and related settings — this package does not define a clang module.
2023-04-10 19:15:38 -07:00
Karoy Lorentey
b727b93f9b
Merge pull request #277 from lorentey/remove-swift-5.5-checks
...
Remove obsolete swift(>=5.5)/swift(>=5.6) checks
2023-04-10 18:45:31 -07:00
Karoy Lorentey
b36fbe6ba8
Merge pull request #276 from lorentey/hashcollections-lifetime-fixes
...
[HashCollections] Ensure `self` doesn’t get destroyed before we’re done working with it
2023-04-10 18:45:05 -07:00
Karoy Lorentey
a8dad62bc9
Remove obsolete swift(>=5.5)/swift(>=5.6) checks
2023-04-10 18:33:52 -07:00
Karoy Lorentey
ac0c075ccc
[HashCollections] Ensure self doesn’t get destroyed before we’re done working with it
...
The HashCollections module includes several mutating methods that dereference unmanaged references to internal nodes after the last usage of `self`. Prevent the compiler from destroying `self` before we’re done working within descendants of its tree.
2023-04-10 18:24:33 -07:00
Karoy Lorentey
1ea846bcae
Merge pull request #275 from lorentey/ordereddictionary-doc-updates
...
[OrderedDictionary] Explicitly mention in documentation that keys/values are ordered
2023-04-10 17:45:21 -07:00
Karoy Lorentey
26a73653b3
Merge pull request #273 from lorentey/require-5.6
...
Require Swift 5.6
2023-04-10 17:43:36 -07:00
Karoy Lorentey
900e7851ab
Merge pull request #271 from lorentey/fix-rope-sendable
...
Rope: Fix `Sendable` conformance
2023-04-10 17:43:23 -07:00