zig/src
Techatrix ca6fb30e99
std.zig.Ast: improve type safety
This commits adds the following distinct integer types to std.zig.Ast:
- OptionalTokenIndex
- TokenOffset
- OptionalTokenOffset
- Node.OptionalIndex
- Node.Offset
- Node.OptionalOffset

The `Node.Index` type has also been converted to a distinct type while
`TokenIndex` remains unchanged.

`Ast.Node.Data` has also been changed to a (untagged) union to provide
safety checks.
2025-03-07 22:22:01 +01:00
..
Air Sema: introduce all_vector_instructions backend feature 2025-01-31 23:00:34 -05:00
arch Merge pull request #22529 from xtexx/x86-64/shl-sat-int 2025-03-02 02:51:36 -05:00
codegen Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
Compilation Compilation: correct when to include ubsan 2025-02-25 11:22:33 -08:00
link Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
Liveness Sema: introduce all_vector_instructions backend feature 2025-01-31 23:00:34 -05:00
Package std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
Sema compiler: integrate ZON with the ZIR caching system 2025-02-04 16:20:29 +00:00
Zcu std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
Air.zig x86_64: rewrite scalar @truncate 2025-02-06 16:14:53 -05:00
Builtin.zig compiler: don't perform semantic analysis if there are files without ZIR 2025-02-04 16:20:29 +00:00
clang.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
clang_options.zig zig cc: honor all -m and -mno- CPU feature flags 2021-11-26 19:59:33 -07:00
clang_options_data.zig compiler: Improve the handling of unwind table levels. 2024-12-11 00:10:15 +01:00
codegen.zig zig build fmt 2025-02-22 17:09:20 -08:00
Compilation.zig link: make sure MachO closes the damn files 2025-03-02 16:39:18 -05:00
crash_report.zig all: update for panic.unwrapError and panic.call signature changes 2025-01-24 22:33:23 +00:00
DarwinPosixSpawn.zig std.c.darwin.posix_spawn: fix signature 2024-12-16 14:53:54 +00:00
dev.zig x86_64: implement clz and not 2025-01-16 20:42:08 -05:00
fmt.zig zig fmt: fix invalid alignment on frees 2025-02-22 17:09:20 -08:00
glibc.zig std.Target: Move osArchName() and Cpu.Arch.archName() to std.zig.target. 2025-02-17 19:17:56 +01:00
InternPool.zig Move the compiler's LLVM bitcode builder to std.zig.llvm. 2025-02-27 01:32:49 -05:00
introspect.zig Fix handling of empty XDG environment variables 2024-08-19 23:30:14 -07:00
libcxx.zig frontend: use main Compilation code_model when building libxx 2025-01-27 17:07:56 -08:00
libtsan.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
libunwind.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
link.zig link: make sure MachO closes the damn files 2025-03-02 16:39:18 -05:00
Liveness.zig Sema: introduce all_vector_instructions backend feature 2025-01-31 23:00:34 -05:00
main.zig std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
mingw.zig mingw: Update MinGW-w64 sources to 3839e21b08807479a31d5a9764666f82ae2f0356. 2025-02-24 12:01:07 +01:00
musl.zig Merge pull request #22541 from ziglang/pipeline 2025-01-21 14:27:05 -05:00
mutable_value.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
Package.zig rename "nonce" to "fingerprint" 2025-02-26 11:42:04 -08:00
print_air.zig Sema: introduce all_vector_instructions backend feature 2025-01-31 23:00:34 -05:00
print_env.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
print_targets.zig Output zig targets as ZON instead of JSON (#22939) 2025-02-21 21:40:57 -05:00
print_value.zig compiler: simplify generic functions, fix issues with inline calls 2025-01-21 02:41:42 +00:00
print_zir.zig std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
print_zoir.zig compiler: introduce ZonGen and make ast-check run it for ZON inputs 2024-12-16 17:02:35 +00:00
RangeSet.zig sema: rework type resolution to use Zcu when possible 2024-08-25 15:16:42 -07:00
register_manager.zig x86_64: fix crashes compiling the compiler and tests 2025-01-16 20:47:30 -05:00
Sema.zig std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
target.zig compiler: Don't consider powerpc to have red zone support yet. 2025-03-03 19:36:46 +01:00
ThreadSafeQueue.zig link.flushTaskQueue: move safety lock 2024-10-23 16:27:39 -07:00
tracy.zig Add build option to set tracy-callstack-depth in build.zig (#21990) 2024-11-29 12:13:06 -08:00
translate_c.zig zig build fmt 2025-02-22 17:09:20 -08:00
Type.zig std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
Value.zig Dwarf: fix lowering of comptime-only optional pointer null values 2025-02-22 22:47:32 -05:00
wasi_libc.zig wasi-libc: Deduplicate sources and headers with regards to upstream musl. 2025-02-21 09:23:50 +01:00
Zcu.zig std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
zig_clang.cpp zig_clang: Update to Clang 19. 2024-09-19 18:20:20 -07:00
zig_clang.h zig_clang: Update to Clang 19. 2024-09-19 18:20:20 -07:00
zig_clang_cc1_main.cpp compiler: Update LLVM/Clang driver files to LLVM/Clang 19. 2024-09-19 18:20:20 -07:00
zig_clang_cc1as_main.cpp compiler: Update LLVM/Clang driver files to LLVM/Clang 19. 2024-09-19 18:20:20 -07:00
zig_clang_driver.cpp compiler: Update LLVM/Clang driver files to LLVM/Clang 19. 2024-09-19 18:20:20 -07:00
zig_llvm-ar.cpp compiler: Update LLVM/Clang driver files to LLVM/Clang 19. 2024-09-19 18:20:20 -07:00
zig_llvm.cpp ZigLLVMTargetMachineEmitToFile: schedule sancov pass depending on mode 2025-02-11 11:13:41 -08:00
zig_llvm.h zig_llvm: Reduce our exposure to LLVM API breakage. 2024-10-31 01:27:22 +01:00