gingerBill
80592f0f51
Add -disallow-do in CI
2024-06-29 22:50:23 +01:00
gingerBill
af3401631a
Remove the -disallow-do aspect from -strict-style
2024-06-29 22:48:43 +01:00
gingerBill
34fce83d66
Improve -strict-style rules for if-else statements
2024-06-29 20:04:34 +01:00
gingerBill
b1a1da6618
Add -vet-tabs
2024-06-29 19:54:31 +01:00
gingerBill
e296d6fb90
Fix loads of indentation issues with mixing spaces and tabs
2024-06-29 19:50:51 +01:00
gingerBill
90244a0849
Fix accidental deletion in the -strict-style help comment
2024-06-29 19:41:45 +01:00
gingerBill
f4abdf716e
Move microarch stuff to a separate file
2024-06-29 19:29:20 +01:00
gingerBill
f64d1df90b
Add note regarding -strict-style
2024-06-29 19:27:26 +01:00
gingerBill
888bf28076
-strict-style implies -disallow-do
2024-06-29 19:26:11 +01:00
gingerBill
103eccf104
More style improvements
2024-06-29 19:23:58 +01:00
gingerBill
663661db53
Update core to -strict-style
2024-06-29 19:16:32 +01:00
gingerBill
835e8bf87a
Update -strict-style
2024-06-29 19:15:33 +01:00
gingerBill
2187f3e7ff
-strict-style enforce 1TBS (mostly)
2024-06-29 19:14:24 +01:00
gingerBill
5413a8b744
Even more style fixes
2024-06-29 19:11:36 +01:00
gingerBill
3f9a58808c
More style improvements
2024-06-29 19:07:34 +01:00
gingerBill
e8517e2694
-strict-style: enforce case to be in the same column as switch
2024-06-29 18:56:45 +01:00
gingerBill
96330996a6
Fix indentation
2024-06-29 18:51:39 +01:00
gingerBill
b0cbda4ee0
Fix indentation of tests
2024-06-29 18:51:28 +01:00
gingerBill
930c929294
Indentation fixes
2024-06-29 18:49:57 +01:00
gingerBill
7f05b4caf2
Fix generation for unicode entities
2024-06-29 18:43:09 +01:00
gingerBill
6db748b4a4
Remove debug message
2024-06-29 16:18:43 +01:00
gingerBill
a935ade0d2
Keep -sanitize:address happy with bit_field loads
2024-06-29 16:18:07 +01:00
gingerBill
ff2d042313
Remove unneeded transmute
2024-06-29 13:54:15 +01:00
gingerBill
913c08a33e
Add bit_field to demo.odin
2024-06-29 12:56:46 +01:00
gingerBill
c88a1bef91
Add another -vet-cast check
2024-06-29 12:40:04 +01:00
gingerBill
706adb1232
Update for transmute -vet-cast
2024-06-29 12:16:43 +01:00
gingerBill
b9861a0cf6
cast to transmute
2024-06-29 12:14:21 +01:00
gingerBill
e46d772b6d
Add check for integer casts
2024-06-29 12:13:41 +01:00
gingerBill
c18c0a3364
Adhere to -vet-cast
2024-06-29 12:07:21 +01:00
gingerBill
d6b8544f50
Add internal flag for testing stuff
2024-06-29 12:04:31 +01:00
gingerBill
4b71c47fd5
Check for unneeded transmute with -vet-cast
2024-06-29 12:02:31 +01:00
gingerBill
704530497b
Rename -vet-identical-cast to -vet-cast; with minor code clean up
2024-06-29 11:44:45 +01:00
gingerBill
52aa7085e4
Use f32 as the immediate type for addition and subtraction for complex32/quaternion64
2024-06-29 11:09:54 +01:00
gingerBill
55e9b8d994
Use explicit calling conventions
2024-06-29 10:48:41 +01:00
gingerBill
ee2a0c4010
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-06-29 10:47:15 +01:00
gingerBill
f974002839
Use f32 operations rather than f16 in complex32 and quaternion64 to improve accuracy and performance
2024-06-29 10:47:09 +01:00
gingerBill
906afa4154
Allow for when x in y { (minor oversight in syntax)
2024-06-29 10:13:15 +01:00
gingerBill
17efb87eef
Add -custom-attribute
2024-06-28 11:44:39 +01:00
gingerBill
1747fdc3f0
Fix signature
2024-06-28 11:07:54 +01:00
gingerBill
bef3ca98f0
Fix signature
2024-06-28 11:01:57 +01:00
gingerBill
e15c5c4692
Fix missing import
2024-06-28 10:32:16 +01:00
gingerBill
9a4ffa79db
Add missing libraries to examples/all
2024-06-28 10:17:00 +01:00
gingerBill
ec38215842
Fix #3803
2024-06-28 10:09:46 +01:00
gingerBill
67e9a6fd9b
Improve error reporting on "Failed to parse fail" and show the line error if possible
2024-06-28 10:04:08 +01:00
gingerBill
35651cfc17
Improve tokenization for false integer literals but not effect possible float literals
2024-06-28 09:24:34 +01:00
gingerBill
dde7cb6e7f
Improve error message for #3754
2024-06-28 09:21:33 +01:00
gingerBill
862a04376f
Improve tokenizing wrong number literals
2024-06-28 09:16:01 +01:00
gingerBill
5a9698e8cb
Properly fix #3820
2024-06-28 09:08:57 +01:00
gingerBill
0c8a81d298
Fix #3819
2024-06-28 08:57:31 +01:00
gingerBill
06ff08b9cf
Fix #3820
2024-06-28 08:53:05 +01:00
gingerBill
52ea63f89c
Fix #3471
2024-06-28 08:43:25 +01:00
gingerBill
f883cd5053
Initialize default context in heap_allocator_other.odin
2024-06-28 08:33:12 +01:00
gingerBill
93441a043a
Make runtime.heap_alloc contextless
2024-06-25 09:38:49 +01:00
gingerBill
c098739484
Remove @(warning) and #warning(...)
2024-06-25 09:36:59 +01:00
gingerBill
dab3c832e0
Add #warning(<string>) builtin compile time procedure
2024-06-20 15:32:30 +01:00
gingerBill
8c760e140f
Move import to a windows specific file
2024-06-20 12:38:09 +01:00
gingerBill
3db7780a2c
Add vendor:wgpu to examples/all
2024-06-20 12:20:06 +01:00
gingerBill
8b446fc88d
Fix wgpu paths for Windows
2024-06-20 12:18:26 +01:00
gingerBill
c9884906d9
Add #directory
2024-06-20 12:15:55 +01:00
gingerBill
56383e45a7
Fix #3768
2024-06-20 11:44:00 +01:00
gingerBill
3d9db56410
Minor formatting changes to unicode stuff
2024-06-18 12:53:56 +01:00
gingerBill
bacb915ff8
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-06-15 16:24:07 +01:00
gingerBill
e41ad2bf16
to_random_generator -> random_generator
2024-06-15 16:24:01 +01:00
gingerBill
1c940e3968
Remove dead variable
2024-06-15 15:53:16 +01:00
gingerBill
c97ffbecbc
Fix rand in container tests
2024-06-15 15:50:35 +01:00
gingerBill
2380720fa2
Fix core:sync/chan for rand
2024-06-15 15:46:48 +01:00
gingerBill
149ecafdef
Remove the need for rand in core:math/big
2024-06-15 15:43:57 +01:00
gingerBill
7ec17ecf98
Update core:math/rand to use context.random_generator and remove rand.Rand
2024-06-15 15:33:24 +01:00
gingerBill
318d5e4a7e
Add Reset mode
2024-06-15 15:17:23 +01:00
gingerBill
eaec8a2bbf
Add runtime.default_random_generator
2024-06-15 15:08:49 +01:00
gingerBill
c2a01096c4
Remove unneeded reassignment of r
2024-06-15 14:49:09 +01:00
gingerBill
827cb24023
Add random_generator.odin
2024-06-15 14:47:37 +01:00
gingerBill
dc4ec8638c
Add runtime.Random_Generator interface
2024-06-15 14:45:57 +01:00
gingerBill
c5f7788652
Check to see if matrices are exactly the same type
2024-06-12 12:54:57 +01:00
gingerBill
f57c03c170
Improve matrix type hinting rules a little
2024-06-12 12:40:29 +01:00
gingerBill
35a845b93f
Fix indentation
2024-06-11 13:12:41 +01:00
gingerBill
3ff8952813
Replace panic(fmt.tprintf( antipattern with fmt.panicf
2024-06-11 13:11:14 +01:00
gingerBill
1dc90103bd
Make verification ignorable with a define flag
2024-06-11 12:30:24 +01:00
gingerBill
0b02c67cdf
Minor clean up for backend
2024-06-11 12:19:52 +01:00
gingerBill
9b0e87544a
Unify LLVMVerifyFunction invocations into on place
2024-06-11 12:07:22 +01:00
gingerBill
f1779c85de
Fix #3727
2024-06-10 18:50:53 +01:00
gingerBill
eef2aef021
Fix #3724
2024-06-10 15:07:45 +01:00
gingerBill
c1e81dc14d
Fix #3726
2024-06-10 15:05:24 +01:00
gingerBill
fa3cae2bb0
Add intrinsics.procedure_of
...
```odin
foo :: proc(x: $T) { fmt.println(x) }
bar :: intrinsics.procedure_of(foo(int(123))) // parameters are never ran at compile time, similar to `size_of`
bar(333) // prints 333
```
2024-06-10 15:02:34 +01:00
gingerBill
1945218f6d
Improve parsing for label: #reverse for and label: #partial switch
2024-06-10 14:18:33 +01:00
gingerBill
7c529e990d
Add -target:freestanding_arm32 (experimental)
2024-06-09 17:48:46 +01:00
gingerBill
828870004b
Change indentation
2024-06-09 17:15:08 +01:00
gingerBill
ef7c6b9895
Re Fix #3713
2024-06-09 14:07:07 +01:00
gingerBill
c17981ac38
Add edge case to error_operand_no_value
2024-06-09 14:02:01 +01:00
gingerBill
4b52f7fe2b
Fix #3713
2024-06-09 13:35:22 +01:00
gingerBill
8fcfd8c506
Fix sign flag
2024-06-09 13:21:22 +01:00
gingerBill
e0d0dc704c
Make f32(u8) etc do an immediate cast to f32(u32(u8)) in code generation
2024-06-09 13:20:48 +01:00
gingerBill
be0774acc8
Add error message on return a constant slice value from a procedure
2024-06-08 16:07:28 +01:00
gingerBill
7e994b6d21
Remove empty line preventing a suggestion from happening
2024-06-08 15:42:19 +01:00
gingerBill
371749d474
Make certain procedures "contextless" for microui
2024-06-08 14:48:04 +01:00
gingerBill
68781f8dd3
Remove unnecessary Wait_Signal checks
2024-06-07 00:11:00 +01:00
gingerBill
1d99bc0f87
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-06-06 23:55:54 +01:00
gingerBill
7044a7d776
Try to fix a possible race condition with polymorphic record parameters
2024-06-06 23:55:48 +01:00
gingerBill
08612423b9
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-06-06 21:03:44 +01:00
gingerBill
ff37a7435c
Add parentheses around the foreign import paths
2024-06-06 21:03:35 +01:00