19082 Commits

Author SHA1 Message Date
Felipe Pena
43d679b1b9
cgen: cleanup comptime checks (#23372) 2025-01-05 10:04:31 +02:00
Felipe Pena
495adc9cee
checker: fix assign expected type on rechecking enum assigns (fix #23366) (#23367) 2025-01-04 17:36:00 +02:00
Delyan Angelov
5e95b0720a
ci: force all tools to build without warnings/notices in tools_ci.yml (#23371) 2025-01-04 15:37:10 +02:00
Felipe Pena
c421c8cc86
ci: fix v -W build-tools (#23368) 2025-01-04 14:48:28 +02:00
Delyan Angelov
cb490a74f9
tools: restore emcc --version diagnostic in v doctor, when emcc is present 2025-01-04 11:34:57 +02:00
kbkpbot
30de0724ac
tools: fix v doctor format, fixes for windows, tcc and others (#23361) 2025-01-04 11:32:30 +02:00
Peyton Creery
ac71f9eb4b
v.help: improve message formatting (#23363) 2025-01-04 09:14:52 +02:00
Davide Beatrici
e5ad9a6ad0
cgen: define _GNU_SOURCE on Linux (#23364) 2025-01-04 08:38:26 +02:00
Felipe Pena
0763ae7079
checker: fix missing option variable checking when casting using as operator (fix #23349) (#23358) 2025-01-04 08:05:35 +02:00
Felipe Pena
d8422c73e0
checker: fix alias to fixed array w/ size defined by constant (fix #23356) (#23357) 2025-01-04 08:00:06 +02:00
Felipe Pena
8774f7761d
v.type_resolver: optimize infix ct checking (#23362) 2025-01-04 07:27:42 +02:00
Felipe Pena
3ed799ef7b
checker: fix comptime evaluation on infix expr (fix #23341) (#23344) 2025-01-04 01:13:33 +02:00
Felipe Pena
5eecd04eee
json: fix default struct field initialization with long array (#23355) 2025-01-03 19:25:21 +02:00
kbkpbot
f821c657a7
examples,builtin,cgen,live: fix windows hot reload with -cc tcc, improve the infrastructure, use a V global instead of a C one (fix #23214) (#23350) 2025-01-03 18:04:32 +02:00
Felipe Pena
1bfeda6256
cgen: fix codegen for alias struct embed (fix #23347) (#23353) 2025-01-03 18:01:25 +02:00
Adam Oates
c50d4ee13b
gg: add linux support for fn screen_size() Size (fix #23146) (#23326) 2025-01-02 19:10:09 +02:00
Felipe Pena
b79257b765
v.type_resolver: cleanup get_generic_array_element_type (#23342) 2025-01-02 16:03:19 +02:00
Delyan Angelov
c44570c471
tools: improve v bug report wording 2025-01-02 14:35:17 +02:00
Cypher Pepe
80c7e6da9f
v.parser: fix broken link to riscv-card.pdf (#23343) 2025-01-02 14:32:47 +02:00
Felipe Pena
8a681bae6d
cgen,checker: unify code, cleanup resolve_comptime_args (#23337) 2025-01-02 10:54:01 +02:00
Bruno-Vdr
7cf77fbda0
tools: allow for passing arbitrary compiler flags to v bug, for example: v bug -cg -autofree file.v (#23335) 2025-01-02 01:53:34 +02:00
Felipe Pena
a366582010
cgen: fix type_default for array init >= 8 items (spotted while building the vhamll project) (#23334) 2025-01-02 01:50:38 +02:00
Felipe Pena
87c0a9ce28
checker: fix comptime indexexpr resolving (#23333) 2025-01-02 01:48:50 +02:00
Felipe Pena
c59d6403ee
cgen: remove double string cloning (#23331) 2025-01-02 01:46:50 +02:00
Delyan Angelov
42222e6c0c
tools: avoid os.glob, in favour of os.walk_ext (which works consistently even on windows) 2025-01-01 20:36:30 +02:00
Delyan Angelov
02a7355cfa
tools: improve v should-compile-all . with support for compiling .wasm.v and .js.v files; skip module name files, compile projects that have .glsl files 2025-01-01 20:18:20 +02:00
Delyan Angelov
8902f7dda0
tools: support v should-compile-all folder/, where folder/ contains project subfolders (containing v.mod files and multiple top level .v files) 2025-01-01 19:28:22 +02:00
Felipe Pena
2112bb82eb
checker: fix structinit validation on nested generic Map[K]V (fix #23329) (#23332) 2025-01-01 15:33:56 +02:00
Felipe Pena
734bb00726
checker: cleanup check_non_expr_branch_last_stmt (#23330) 2025-01-01 14:49:18 +02:00
Felipe Pena
c786482572
checker: cleanup and optimise infix - reduce as casting (#23327) 2025-01-01 14:40:56 +02:00
Felipe Pena
7b9b3dd926
checker: fix generic var inferring to be passed to []T (fix #23315) (#23322) weekly.2024.53 2024-12-31 08:23:42 +02:00
Delyan Angelov
4b6b852034
ast: reduce allocations in empty_comptime_const_expr (#23324) 2024-12-31 02:44:16 +02:00
Felipe Pena
ab707dce5c
checker: fix for iterator method .next(), not marked as used (fix #23312) (#23321) 2024-12-31 00:26:39 +02:00
Felipe Pena
17812a77b8
cgen: fix type_default for option type, when the default expr is none (fix #23318) (#23320) 2024-12-30 21:06:42 +02:00
Felipe Pena
8cdb507bed
json: support @[json_null] tag to enforce null, when encoding none option values (#23319) 2024-12-30 20:59:28 +02:00
Felipe Pena
d9e505b206
cgen: cleanup dead code (#23317) 2024-12-30 17:49:21 +02:00
Delyan Angelov
9754714906
ci: use unbuffer_stdout() to ease debugging of failed CI steps 2024-12-30 17:31:45 +02:00
yuyi
fb528cd036
checker: check shared variables types (fix #23313, fix #23314) (#23316) 2024-12-30 17:11:51 +02:00
Felipe Pena
d9f5112032
checker: fix array method error message with generic type (fix #23283) (#23304) 2024-12-30 13:03:15 +02:00
Delyan Angelov
fb5bac112e
docs: document @[json: "-"] and @[sql: "-"] 2024-12-30 10:30:26 +02:00
Felipe Pena
9f11638cba
v: cleanup ComptimeSelector .typ key generation (#23308) 2024-12-30 09:53:38 +02:00
Adam Oates
9b31800143
checker: make byte(0) an error; use u8(0) (fix #23236) (#23311) 2024-12-30 09:51:39 +02:00
Felipe Pena
632ceebc1e
checker: fix sumtype generic checking (fix #23282) (#23309) 2024-12-30 09:47:48 +02:00
Swastik Baranwal
99b93d9669
builtin: add runtime check for []Type{cap: negative} (#23307) 2024-12-30 09:46:17 +02:00
p134c0d3
542a8e7826
docs: fix verbiage, remove potential confusion, in hello world section (#23310) 2024-12-30 09:45:02 +02:00
Felipe Pena
4225a346d6
checker,cgen: fix generic arr.map(var as T) support (fix #23284) (#23302) 2024-12-29 21:48:41 +02:00
Felipe Pena
1607579fde
ast,checker,cgen: do some minor optimizations (#23306) 2024-12-29 21:40:50 +02:00
Felipe Pena
7b9414aa6c
v: cleanup type resolver (#23305) 2024-12-29 20:59:06 +02:00
alexey semenyuk
f198e69c21
docs: remove -skip-unused from the docs, it is now on by default (close #23265) (#23303) 2024-12-29 15:32:55 +02:00
Felipe Pena
50e3f9c7bb
markused: fix short program using a .u8_array() call (fix #23298) (#23301) 2024-12-29 15:29:40 +02:00