Evan Haas
5d8e56c2eb
aro_translate_c: do not translate _Static_assert declarations
...
This does not completely ignore static asserts - they are validated by aro
during parsing; any failures will render an error and non-zero exit code.
Emit a warning comment that _Static_asserts are not translated - this
matches the behavior of the existing clang-based translate-c.
Aro currently does not store source locations for _Static_assert
declarations so I've hard-coded token index 0 for now.
2024-07-29 10:25:55 -07:00
freakmangd
9bbfb09fc3
translate-c: promote macros that reference var decls to inline functions
2024-06-05 23:06:51 +03:00
february cozzocrea
c9ad1b5199
aro translate-c: support for record types added
2024-05-09 13:46:50 -07:00
travisstaloch
05d9755766
translate-c: allow str literals in bool expressions
...
this is a follow up to #19610 with fix suggested by Vexu in
https://github.com/ziglang/zig/issues/14642#issuecomment-2048999384
2024-04-12 10:10:42 +00:00
travisstaloch
3d1652070a
translate-c: support macro with 'assert(false && "error message")'
...
closes #14642 with modified fix suggested by Vexu in
https://github.com/ziglang/zig/issues/14642#issuecomment-1775476042
2024-04-11 14:39:47 +00:00
Veikka Tuominen
60614b2a85
add tests for fixed stage1 bugs
...
Closes #10357
Closes #11236
Closes #11615
Closes #12055
2024-03-28 15:24:01 +02:00
HydroH
7684423c08
translate-c: handle string concatenation of function calls
2024-03-26 21:16:53 -07:00
danielsan901998
d7a27bf803
Use mem.zeroes for empty union initializer list
2024-01-31 06:38:44 +02:00
Garrett
a277181c66
translate-c: use struct_init_one for empty struct initializer
2023-11-24 22:44:33 +00:00
Veikka Tuominen
e765495b11
tests: translate-c and run-translated-c to the test harness
2023-10-17 11:55:17 +03:00