tree-sitter/crates
Will Lillis 68ec70520d fix(lib): address strict aliasing violations with Array type
Altering the `Array` type itself isn't feasible, as this causes
unacceptable breakage with existing parsers that depend on it. Instead,
pass in individual `Array` fields for to various `_array__*` functions.

Any time the `contents` of an array may be modified (`free`d, `realloc`d,
etc), return the potentially new address out by value. This prevents any
strict aliasing violations as we're no longer writing to a type-casted
pointer.

Co-authored-by: Nathaniel Wesley Filardo <nwfilardo@gmail.com>
2026-01-20 23:53:24 -05:00
..
cli fix(docs): appease clippy regarding spacing in README 2026-01-15 10:38:57 +01:00
config refactor(config)!: transition from anyhow to thiserror 2025-11-14 11:28:00 +01:00
generate fix(lib): address strict aliasing violations with Array type 2026-01-20 23:53:24 -05:00
highlight perf: reduce needless allocations 2025-10-30 18:24:42 +01:00
language fix(wasm) add common definitions to stdlib (#5199) 2026-01-06 12:01:37 +01:00
loader fix(cli): canonicalize build --output path 2025-12-30 17:07:04 +01:00
tags chore: copy license to all packages 2025-09-11 03:12:35 -04:00
xtask feat(xtask): allow alternate branch for fixture grammars 2026-01-20 23:53:24 -05:00