tree-sitter.tree-sitter/lib/src
Julia Hansbrough 90dd1a0cfb fix(templates): generated array macros do not compile with C++
Problem: A set of `array_*` macros (`array_push`, `array_extend`, etc) implicitly convert a `void*` into a different pointer type.  In environments that compile these headers as C++, this implicit conversion is an error.

Solution: This commit adds an `_array_cast` macro that uses `decltype` to cast the `void*` to the proper type when compiling as C++.
(cherry picked from commit cc7be1fd47)
2026-07-08 17:34:45 -04:00
..
portable fix(lib): add RedoxOS support to portable/endian.h 2026-02-18 16:51:18 +01:00
unicode Expand on query docs 2019-10-30 10:26:10 -07:00
wasm fix(wasm): when reallocating the last allocated region, properly grow 2026-01-31 20:06:32 -05:00
alloc.c fix(lib): include api.h so ts_set_allocator is visible 2024-02-27 09:21:17 -05:00
alloc.h fix(lib): use correct TREE_SITTER_HIDE_SYMBOLS macro name in alloc.h 2026-05-30 23:00:00 -04:00
array.h fix(templates): generated array macros do not compile with C++ 2026-07-08 17:34:45 -04:00
atomic.h Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
error_costs.h Just call the C lib 'the library' everywhere, don't call it a 'runtime' 2019-01-10 15:22:39 -08:00
get_changed_ranges.c feat: add API for editing points and ranges 2025-09-19 17:40:26 -04:00
get_changed_ranges.h Just call the C lib 'the library' everywhere, don't call it a 'runtime' 2019-01-10 15:22:39 -08:00
host.h Make SubtreeInlineData work on Big-Endian 2021-12-24 16:47:10 +01:00
language.c feat(lib)!: remove deprecated functions 2025-09-12 02:50:30 -04:00
language.h feat: add the semantic version to TSLanguage, and expose an API for retrieving it 2025-01-25 01:14:30 -05:00
length.h fix(lib): add saturating subtraction to prevent integer underflow 2024-12-25 04:49:39 -05:00
lexer.c feat(c): rename DecodeFunction to TSDecodeFunction 2025-09-01 03:17:44 -04:00
lexer.h chore: cleanup unused code 2025-01-21 01:17:03 -05:00
lib.c feat: add API for editing points and ranges 2025-09-19 17:40:26 -04:00
node.c feat: add API for editing points and ranges 2025-09-19 17:40:26 -04:00
parser.c fix(lib): Consider subtree lookahead bytes when determining whether the 2026-06-01 19:12:50 -04:00
parser.h fix(lib): remove duplicate TSLanguageMetadata typedef (#4268) 2025-03-06 14:14:25 -08:00
point.c feat: add API for editing points and ranges 2025-09-19 17:40:26 -04:00
point.h chore: cleanup unused code 2025-01-21 01:17:03 -05:00
query.c fix(query): apply a trailing anchor when its optional node is skipped 2026-07-01 20:04:13 -04:00
reduce_action.h Generate node-fields.json file 2019-02-12 11:06:18 -08:00
reusable_node.h Allocate parent nodes together with their child array 2020-10-23 12:15:44 -07:00
stack.c fix(lib): replace raw array accesses with array_get 2025-06-05 00:53:11 -04:00
stack.h Fix cases where error recovery could infinite loop (#4257) 2025-03-04 13:50:56 -08:00
subtree.c fix(lib): replace raw array accesses with array_get 2025-06-05 00:53:11 -04:00
subtree.h fix(lib): cast NULL in ts_subtree_children macro 2026-02-21 04:34:07 -05:00
tree.c feat: add API for editing points and ranges 2025-09-19 17:40:26 -04:00
tree.h style(lib): add parameter names in declarations that are missing them 2024-09-27 13:38:08 -04:00
tree_cursor.c fix(lib): address strict aliasing violations in TreeCursor type 2026-06-17 00:29:06 -04:00
tree_cursor.h style(lib): add parameter names in declarations that are missing them 2024-09-27 13:38:08 -04:00
ts_assert.h fix(lib): silence warnings with -Wpedantic 2024-09-27 12:58:26 -04:00
unicode.h lexer: pass code-unit length to U16_NEXT in UTF-16 decoders 2026-04-26 03:40:09 -04:00
wasm_store.c fix(wasm): validate memory reads (#5569) (#5613) 2026-05-19 19:40:15 +02:00
wasm_store.h style(lib): add parameter names in declarations that are missing them 2024-09-27 13:38:08 -04:00