Commit Graph
11 Commits
Author SHA1 Message Date
Karoy Lorentey a731a7fdad [BasicContainers] Don’t define LLDB formatter symbol on Wasm
While we’re here, follow our explicit access control rule when defining the variable.
2026-05-12 15:33:22 -07:00
Dave Lee a2c67046c1 Support single-module mode
When `COLLECTIONS_SINGLE_MODULE` is set, a single `Collections` module is
built. Type names need to match accordingly.
2026-03-31 12:53:53 -07:00
Dave Lee f93d09ec67 Fix copyright dates 2026-03-31 12:53:52 -07:00
Dave Lee 86d184d89c Add generate_formatters.sh script 2026-03-31 09:56:00 -07:00
Dave Lee 7d721cbf7c Add license header 2026-03-31 09:55:49 -07:00
Dave Lee a6cefb8eda Update RigidArray+Formatter.swift 2026-03-30 11:02:31 -07:00
Dave Lee a4bbcddef5 Make conditional cover whole file 2026-03-18 19:06:25 -07:00
Dave Lee 4e38902c23 Support only Swift 6.3+ 2026-03-18 19:05:15 -07:00
Dave Lee 43c367c3c2 Support compilers prior to 6.3 2026-03-18 19:02:12 -07:00
Dave Lee e6bfc56a47 manually remove trailing comma 2026-03-18 18:47:51 -07:00
Dave Lee 01f2c9101b [Debugging] Add lldb data formatter for RigidArray
This introduces a debugging data formatter for RigidArray using a new feature of LLDB:
[Formatter Bytecode][1]. The scope of this PR is a single initial data type, with the
short and long term plan being to support all types vended by Swift Collections.

The bytecode for this implementation is produced using a Python -> Formatter Bytecode
compiler, contained in the [`formatter_bytecode`][2] module.

The workflow for authoring and shipping the formatter is:

1. Update RigidArray.py as needed
2. Compile RigidArray.py to RigidArray+Formatter.swift (again, `formatter_bytecode`)
3. Compile RigidArray+Formatter.swift as part of the BasicContainers module

By including the bytecode in the binary, lldb can load RigidArray's data formatter
automatically, without any friction that comes with installation, setup, config,
updating, or versioning.

[1]: https://lldb.llvm.org/resources/formatterbytecode.html
[2]: https://github.com/llvm/llvm-project/blob/main/lldb/examples/python/formatter_bytecode.py
2026-03-18 18:40:36 -07:00