Christoffer Lerno
f60bfa8442
Assert concatenating constant slices #1805 . Do not link "ld" on Linux with no libc.
2025-01-11 23:46:08 +01:00
Christoffer Lerno
50fdf9900d
Regression: Broken type of constant initialized with cast from bitstruct #1811
2025-01-11 23:17:38 +01:00
Christoffer Lerno
8785c2c46f
Assert when partially initializing a constant struct containing a slice #1812 .
2025-01-11 22:42:33 +01:00
Christoffer Lerno
c8fa7b0cb3
Fix regression with swizzle references for vectors #1810 .
2025-01-11 21:36:17 +01:00
Christoffer Lerno
f2e69f8fdc
Fix bug with defer assignment in macro #1807 .
2025-01-11 20:48:53 +01:00
Christoffer Lerno
8a9edc02b6
Fix bug preventing compile time slices from being iterated over with $foreach.
2025-01-11 03:23:03 +01:00
Christoffer Lerno
d173ba0377
More tests.
2025-01-11 01:51:34 +01:00
Christoffer Lerno
fbb4ae056a
Bug when using +++ on value build a slice or array: the rhs cast was not done, corrupting data.
2025-01-11 01:02:13 +01:00
Christoffer Lerno
ae10ae6847
Fix regression when checking a macro constness.
2025-01-11 00:37:34 +01:00
Christoffer Lerno
64ab67bb58
Fixes to JSON output, making it valid.
2025-01-11 00:17:06 +01:00
Christoffer Lerno
dd650bc334
Fixes to JSON output.
2025-01-11 00:07:39 +01:00
Christoffer Lerno
48923a2237
Function comments are stored and displayed with -P.
2025-01-10 23:39:57 +01:00
Christoffer Lerno
1f29110271
Handle bytes and strings the same way in terms of zero termination.
2025-01-10 19:58:00 +01:00
Christoffer Lerno
e133f4406a
Extend embedded files to zero terminate.
2025-01-10 19:25:53 +01:00
pekochan069
2fa258a066
Change vswhere command to find to find msvc toolchain correctly
2025-01-10 15:46:16 +01:00
Alex Veden
87d29a62e5
allowing c3c test -- <args1>
2025-01-10 15:45:05 +01:00
konimarti
190dc246b3
mem: add macro to assert on memory leak in scope ( #1792 )
...
* mem: add macro to assert on memory leak in scope
Implement `mem::@assert_leak` to assert on a memory leak in the scope of
the macro body. Memory report for the leak can be disabled by setting
the boolean argument to false.
* fix: add conditional compilation flags
* Moved the code into `mem.c3` and made it a builtin.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-01-10 13:33:33 +01:00
Christoffer Lerno
6ae84aac78
Updated releasenotes.
2025-01-10 13:17:45 +01:00
Louis Brauer
c8c58f946c
Date/Time formatters ( #1782 )
...
* Add .DS_Store to .gitignore
* Allow <= 999_999 as usec on DateTime (was < 999_999)
* Move [Tz]DateTime .format() to std::time::datetime and import only with libc
* Changed name to DateTimeFormat, prefer function over method. Move names to enum.
* Updated tests to the latest standard.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-01-10 13:16:51 +01:00
Christoffer Lerno
0d1fb2843e
Improve the error message when running out of memory.
2025-01-10 00:29:08 +01:00
Christoffer Lerno
d67fcb3956
Fix to the successful --lsp output.
2025-01-10 00:09:27 +01:00
Christoffer Lerno
f1325f6539
Added --lsp output.
2025-01-10 00:06:42 +01:00
Christoffer Lerno
3a1bba19af
Allow test runners to take String[] arguments.
2025-01-09 22:32:59 +01:00
Christoffer Lerno
0857363470
Fix '\\' in -P output.
2025-01-09 20:46:36 +01:00
Christoffer Lerno
713199d7be
Fix -P output.
2025-01-09 20:45:42 +01:00
Christoffer Lerno
b941f93416
Deprecate old void! @benchmark and @test functions.
2025-01-09 20:33:53 +01:00
Christoffer Lerno
c22b7d45c1
Update test failing on LLVM 17
2025-01-09 01:35:16 +01:00
Christoffer Lerno
c78bb45f2f
Fix sample.
2025-01-09 01:33:58 +01:00
Christoffer Lerno
11f9365eb0
Remove all TODOs and make them strings to not crash things for -P output.
2025-01-09 01:32:21 +01:00
Christoffer Lerno
cdc1656f3a
#foo style arguments were not type checked when given a type. #1790
2025-01-09 01:28:30 +01:00
Christoffer Lerno
8fb3ec73ff
Deprecate $varef.
2025-01-08 23:56:10 +01:00
Christoffer Lerno
214e806a33
Deprecate `fn void! main() type main functions.
2025-01-08 23:17:50 +01:00
Christoffer Lerno
8e0d6d11b9
Deprecated '&' macro arguments.
2025-01-08 22:13:49 +01:00
Christoffer Lerno
9412b58d80
Remove trailing comma in project creation.
2025-01-08 13:44:09 +01:00
Christoffer Lerno
dad97fc2d9
Improved #foo resolution inside of the compiler.
...
Deprecation of several `&` macros.
2025-01-08 12:55:20 +01:00
vssukharev
ff33cc4dad
Add Nix build and checks to CI/CD
2025-01-06 23:11:04 +01:00
Christoffer Lerno
51e0e5e66d
Change ordering to simplify adding methods to type in conditional modules.
2025-01-06 22:36:29 +01:00
Christoffer Lerno
5fa6ecf9ae
Enforce utf-8 on windows.
2025-01-06 20:02:57 +01:00
Christoffer Lerno
34c7f4e6b7
Deref subscripts as needed for macro ref method arguments. #1789
2025-01-06 13:54:02 +01:00
Christoffer Lerno
737559d3f8
Fix typo, minor changes.
2025-01-06 12:36:59 +01:00
Christoffer Lerno
f801372074
Optimize temp variables in LLVM.
2025-01-06 04:25:47 +01:00
Christoffer Lerno
ea2dce0ab4
Make "?:" lower in the frontend.
2025-01-06 03:01:13 +01:00
Christoffer Lerno
314c6f94f0
Remove the last "cast" operations.
2025-01-06 01:51:03 +01:00
Christoffer Lerno
8fd119e546
Refactor vector->array scalar->vector and slice->array casts to expressions.
2025-01-06 00:22:26 +01:00
Christoffer Lerno
8612476103
Refactor float<->float ptr->int and int->enum casts to expressions.
2025-01-05 23:16:48 +01:00
Louis Brauer
35812bd7ba
Add String.trim_left() / right() ( #1773 )
...
* Add String.trim_left() / right()
* Fix formatting
2025-01-05 21:53:18 +01:00
Christoffer Lerno
f1ef2e8138
Improve @param parse errors #1777
2025-01-05 18:14:30 +01:00
robin
c47cb512ab
Additional convenient functions and enums ( #1767 )
...
Added some missing API calls and enums when working with the Objective-C
Runtime.
2025-01-05 16:22:46 +01:00
KillerxDBr
fe7d4230d8
Fix 'clean' command on Windows MinGW
...
'c3c clean' command try to use 'rm' on Windows MinGW compiled executable, since it does not define "_MSC_VER", but define "_WIN32"
There are other uses of "_MSC_VER" in the same file, they probably can be changed to "_WIN32" too
2025-01-05 16:19:12 +01:00
Christoffer Lerno
b6e166f44d
Include @name when searching for possible matches to name in the error message. #1779
2025-01-05 16:12:13 +01:00