gingerBill
2bdf5f58ef
Enforce error on old style for/switch l-value
2024-03-30 14:23:47 +00:00
gingerBill
8e1a2094a7
Fix debug info for map
2024-03-30 13:46:23 +00:00
gingerBill
9271372fef
Fix #field_align issues, by simplifying the LLVM struct type generation
2024-03-30 13:06:51 +00:00
gingerBill
4edcaa6124
Try storing a pointer to a fake metadata type in the debug info for a map
2024-03-30 10:29:20 +00:00
gingerBill
308e9112f2
Disable packing on ARM64 and AMD64
2024-03-28 10:58:40 +00:00
gingerBill
cf9bdc134c
Fix #3341
2024-03-27 16:48:51 +00:00
gingerBill
7b387fd3aa
Improve C-like syntax mistakes error messages
2024-03-27 13:10:46 +00:00
gingerBill
12ec9bce7d
Fix parsing bug on bit_set[;x]
2024-03-27 13:05:15 +00:00
gingerBill
b378eb2df3
Fix free bug not using the correct allocator
2024-03-27 12:54:52 +00:00
gingerBill
6422c090f2
Make hash procedures contextless where possible
2024-03-27 12:54:37 +00:00
gingerBill
2031d2769a
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-27 00:58:35 +00:00
gingerBill
83c9739a7d
Update year
2024-03-27 00:58:21 +00:00
gingerBill
63d6b4752b
Fix type info layout for wasm64p32 targets
2024-03-26 17:16:12 +00:00
gingerBill
6588fe35b3
Fix wasm abi
2024-03-26 16:47:29 +00:00
gingerBill
0989eac681
Add extra sanity check for nullptr
2024-03-26 14:57:06 +00:00
gingerBill
df526549e2
Fix min/max for wasm
2024-03-26 14:31:28 +00:00
gingerBill
1009182f7b
Fix another #soa race condition bug
2024-03-26 14:13:55 +00:00
gingerBill
620dd2c812
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-26 13:06:46 +00:00
gingerBill
533ba63c82
Fix #3327 #3204 #3200
2024-03-26 13:06:39 +00:00
gingerBill
53b02c5e6f
Fix printing errors issue
2024-03-25 14:46:45 +00:00
gingerBill
50618759a6
Fix error reporting for type cycles
2024-03-25 13:44:00 +00:00
gingerBill
e5629dafd0
Potentially fix a race condition with parapoly types (related to #3328 )
2024-03-25 13:23:43 +00:00
gingerBill
68ff945419
Remove old error message for #3062
2024-03-24 14:39:42 +00:00
gingerBill
cab53e12b7
Add assert message to tell me people to report the bug
2024-03-24 13:53:09 +00:00
gingerBill
d92767cb77
Fix #3226
2024-03-24 13:49:51 +00:00
gingerBill
670fc70f1f
Remove private attributes for #3227
2024-03-24 13:46:26 +00:00
gingerBill
223a336eb4
Fix #3249
2024-03-24 13:45:10 +00:00
gingerBill
1ea1229516
Fix #3319
2024-03-24 13:42:37 +00:00
gingerBill
6da6393735
Fix #3320
2024-03-24 13:40:10 +00:00
gingerBill
87688936c6
Improve error messages for some wrong constant value attributes
2024-03-24 13:36:50 +00:00
gingerBill
590e52cc05
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-24 13:33:37 +00:00
gingerBill
398af659e5
Fix #3323
2024-03-24 13:33:30 +00:00
gingerBill
34247b2658
Fix resize bug caused by typo
2024-03-24 12:24:44 +00:00
gingerBill
45d7dd8f27
Fix resize zeroing behaviour
2024-03-24 12:20:39 +00:00
gingerBill
517d7ae0b0
Add error block around error_line calls
2024-03-23 17:51:56 +00:00
gingerBill
efb0933965
Improve error suggestion and propagation for x->y
2024-03-23 16:57:35 +00:00
gingerBill
eb51cc6835
Improve error propagation for (*x).y style errors from C-programmers
2024-03-23 16:53:40 +00:00
gingerBill
1d46adb598
Treat *x as an unary operator to improve error messages for common C-programmer mistakes
2024-03-23 16:51:04 +00:00
gingerBill
61aa4558dc
Fix #3314
2024-03-23 16:41:50 +00:00
gingerBill
194d3fe6bd
Ignore wrong types
2024-03-23 14:59:35 +00:00
gingerBill
624b870f28
Add some basic escape analysis errors for return &x
2024-03-23 14:58:10 +00:00
gingerBill
eb61cf6043
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-23 12:56:09 +00:00
gingerBill
7abb459861
Add missing field flags in debug printing
2024-03-23 12:56:04 +00:00
gingerBill
7d6e9ef39c
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-21 20:44:00 +00:00
gingerBill
d47ba09743
Fix at error printing bug
2024-03-21 20:43:52 +00:00
gingerBill
6b6f72e7bd
Fix #3305
2024-03-21 14:59:47 +00:00
gingerBill
c8cdb22f0b
Disallow for x in y.(T) and for x in y.?
2024-03-21 14:42:48 +00:00
gingerBill
6e2efce670
Fix missing ERROR_BLOCK(); calls
2024-03-21 12:05:15 +00:00
gingerBill
6d7afd3fa9
Update format version
2024-03-21 11:59:45 +00:00
gingerBill
006ea11c56
Update doc-format for #by_ptr and #no_broadcast parameters
2024-03-21 11:58:32 +00:00
gingerBill
010ffc486c
Minor clean up of #no_broadcast handling
2024-03-21 11:54:40 +00:00
gingerBill
29e5f94c2a
Add #no_broadcast procedure parameter to disallow automatic array programming broadcasting on procedure arguments
2024-03-21 11:52:48 +00:00
gingerBill
fc587c507a
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-20 22:44:43 +00:00
gingerBill
65cb382135
Fix error handling for type switch statement
2024-03-20 22:44:35 +00:00
gingerBill
f39b34a8b7
Fix error message
2024-03-20 18:17:06 +00:00
gingerBill
1cc5e23801
Fix #3299
2024-03-20 18:16:46 +00:00
gingerBill
8e0806be2d
Fix #3301
2024-03-20 18:09:57 +00:00
gingerBill
c17adc98f5
Try doing <{i64, i32}> instead of [i64, i64] for ARM64 12-byte parameters
2024-03-20 17:39:00 +00:00
gingerBill
d381b77164
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-20 17:27:12 +00:00
gingerBill
e804fbd891
Force packed structs in ABI parameters
2024-03-20 17:27:05 +00:00
gingerBill
b4fe9677a1
Change ARM64 ABI for integer-like parameters
2024-03-20 16:06:50 +00:00
gingerBill
1951bc45a6
Fix #3133 by show the line of the syntax error
2024-03-20 13:55:47 +00:00
gingerBill
ba77a9464c
Add suggestion for x: ^T; y = x to be x^
2024-03-20 13:36:14 +00:00
gingerBill
b1dae2d59a
Add x: T; y: ^T = x suggestion to do &x
2024-03-20 13:28:17 +00:00
gingerBill
1514d64964
Update ARM64 ABI return type
2024-03-20 11:12:43 +00:00
gingerBill
e4c502e79b
Add offset (in bytes) field to -json-errors
2024-03-20 11:06:02 +00:00
gingerBill
553a244fec
Fix bounds checking
2024-03-20 10:24:39 +00:00
gingerBill
3bff922b6f
m[i] on #row_major matrices will reduce the i-th row-vector
2024-03-20 10:23:57 +00:00
gingerBill
cd7137af60
Update raylib to use #row_major matrices
2024-03-19 21:16:04 +00:00
gingerBill
18fb665bf6
Correct matrix builtins for #row_major
2024-03-19 21:15:47 +00:00
gingerBill
a750fc0ba6
Add #row_major matrix[R, C]T
...
As well as `#column_major matrix[R, C]T` as an alias for just `matrix[R, C]T`.
This is because some libraries require a row_major internal layout but still want to be used with row or major oriented vectors.
2024-03-19 21:05:23 +00:00
gingerBill
433109ff52
Replace gb_exit(1) with exit_with_errors() where appropriate
2024-03-19 16:29:45 +00:00
gingerBill
ba428fecdb
Add -json-errors
2024-03-19 16:25:09 +00:00
gingerBill
17cc7a2c5e
General clean-up for error.cpp
2024-03-19 15:42:59 +00:00
gingerBill
9a2fc6cf4c
Serialize errors to make them sortable, deterministic, and generally more control
2024-03-19 15:34:29 +00:00
gingerBill
8ff788f4ff
Add better suggestion for [?]T mistake
2024-03-19 13:38:13 +00:00
gingerBill
80ecf5b68a
On x: [?]T = {...}, minimize errors by using the [?]T expression as a kind of hint
2024-03-19 13:32:37 +00:00
gingerBill
5159f30c9c
Fix error block handling
2024-03-19 13:10:35 +00:00
gingerBill
d5daa9fda5
Minimize error propagation of bad array syntax by treating this like a type
2024-03-19 13:05:28 +00:00
gingerBill
89315986d4
Add suggestion when mistyping an array backwards e.g. T[]
2024-03-19 12:37:11 +00:00
gingerBill
ec9ac59323
Unify "Did you mean" strings
2024-03-18 21:37:40 +00:00
gingerBill
97be7feb99
Add list of C identifier suggestions (types and keywords)
2024-03-18 17:32:26 +00:00
gingerBill
00344e1323
Add check to people trying to foreign import C files.
2024-03-18 16:56:01 +00:00
gingerBill
009b6f44e3
Add loads of checks for common mistakes for C programmer
2024-03-18 15:18:10 +00:00
gingerBill
ebd3065aa2
Add error message for C programmers which do Foo{.x = 123} rather than Foo{x = 123}
2024-03-18 14:17:13 +00:00
gingerBill
6cb74b63ec
Fix #3286
2024-03-18 12:39:34 +00:00
gingerBill
effc71ca43
Fix case: bug with by-ref unions
2024-03-18 12:20:53 +00:00
gingerBill
43d695a990
Fix for x in y where y is an "optional ok" value, but ignores #optional_allocator_error values
2024-03-18 11:21:06 +00:00
gingerBill
19eb2a8890
Fix #3282
2024-03-16 22:24:34 +00:00
gingerBill
3875fb08e8
Fix #3284
2024-03-16 22:12:17 +00:00
gingerBill
97d6bf6d8f
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-13 16:30:28 +00:00
gingerBill
271f84ab5b
Expect stream as a field directly on os2.File
2024-03-13 16:30:22 +00:00
gingerBill
5f2496226f
Change return to panic
2024-03-13 15:17:21 +00:00
gingerBill
dee66b8451
Fix typo due to deletion
2024-03-13 15:14:31 +00:00
gingerBill
4aec2de7bd
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-13 15:12:19 +00:00
gingerBill
ac10f504e4
Add infinite loop check and early out in map_insert_hash_dynamic
2024-03-13 15:12:14 +00:00
gingerBill
d6353daf91
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-12 12:11:53 +00:00
gingerBill
c7c6852057
Support swizzle selector syntax .xyzw for #simd vectors
2024-03-12 12:11:48 +00:00
gingerBill
9a41a450e7
Add builtin map_upsert
2024-03-11 12:30:24 +00:00
gingerBill
51d12acab3
Enforce linalg
2024-03-08 13:28:15 +00:00