19314 Commits

Author SHA1 Message Date
Felipe Pena
f75aa34580
vvet: fix for v vet folder/ + new features (track long fns, empty fns and repeated code), enabled by the new -F and -r flags (#23405) 2025-01-09 09:46:35 +02:00
Felipe Pena
0ee49c62ca
checker: cache node.args[0] on fixed_array_builtin_method_call and array_builtin_method_call (#23411) 2025-01-09 09:08:03 +02:00
Felipe Pena
b0b08bc018
cgen: fix shared array fixed initializing with -cstrict (fix build of chip8-v project) (#23414) 2025-01-09 09:07:15 +02:00
Felipe Pena
0fd669d203
cgen: fix shared array indexing (fix #23410) (#23413) 2025-01-09 09:02:39 +02:00
Delyan Angelov
3acbd580d4
gg: enable clean compilation without notices for ./v -check-unused-fn-args examples/tetris/ 2025-01-09 08:33:11 +02:00
Delyan Angelov
85f42f3221
v.token,v.checker,v.cgen: remove some obsolete functions 2025-01-09 08:31:49 +02:00
Delyan Angelov
768665b272
cgen: support -d trace_unused_by_main and -d trace_skip_unused_just_unused_fns, to find out potentially obsolete functions that are not used at all in a project 2025-01-09 08:30:41 +02:00
Felipe Pena
f23ae9a15e
cgen: fix codegen for indexing generic map (fix #23376) (#23402) 2025-01-08 20:44:05 +02:00
Felipe Pena
ca48d7da37
cgen: cache return_stmt()'s node.exprs[0] and node.types[0] (#23408) 2025-01-08 20:41:36 +02:00
Felipe Pena
d1d47d6b8f
cgen: fix codegen for nested selectorexpr on unwrapped option (fix #23406) (#23409) 2025-01-08 20:21:19 +02:00
Felipe Pena
9fc83526aa
parser: allow map cast syntax map[k]v(expr) (#23401) 2025-01-07 20:56:52 +02:00
Felipe Pena
7078a2e185
orm: fix codegen for option fk (fix #23383) (#23400) 2025-01-07 17:53:37 +02:00
Delyan Angelov
124927ba96
db.sqlite: add tracing for more calls, when using -d trace_sqlite, not just for the ORM 2025-01-07 16:43:10 +02:00
Delyan Angelov
68829003b8
Dockerfile.alpine: cleanup, add tools like tmux, micro for easing diagnostics and more prolonged work 2025-01-07 15:53:34 +02:00
Delyan Angelov
63db71b650
ci: make easier the debugging of the docker-alpine-musl-gcc job (#23399) 2025-01-07 15:19:59 +02:00
Felipe Pena
ca6e3a38ce
cgen: fix codegen for selector on shared var with embed (fix #23378) (#23394) 2025-01-07 10:01:08 +02:00
Felipe Pena
81b4a64f18
cgen: fix generic alias option assigning (fix #23382) (#23393) 2025-01-07 09:43:07 +02:00
Felipe Pena
0c9d0762c7
cgen: fix codegen for sumtype casting on selector on as cast with non pointer field (fix #23387) (#23391) 2025-01-06 17:07:45 +02:00
Delyan Angelov
f06ff69bb9
examples: mention also the RAM usage increase in many_thousands_of_circles_overriding_max_vertices.v 2025-01-06 15:01:27 +02:00
Delyan Angelov
7aa2fcb55e
gg,sokol,examples: add example of overriding _SGL_DEFAULT_MAX_VERTICES in code 2025-01-06 14:54:56 +02:00
Delyan Angelov
3c9d37622c
thirdparty/sokol: allow -cflags -D_SGL_DEFAULT_MAX_VERTICES=4194304 to customize how many vertices you can send through gg/sokol in a frame 2025-01-06 13:46:27 +02:00
Delyan Angelov
d313355b22
ci: make show_manual_release_cmd.vsh use a fixed weekly.YYY.WW format for the weekly release tags 2025-01-06 12:10:19 +02:00
Swastik Baranwal
2aa5651b55
checker: allow none to be passed to ?T param (fix #23381) (#23385) weekly.2025.1 2025-01-06 08:33:51 +02:00
kbkpbot
8ec8cf0993
builder: do not search for msvc when it is not needed (#23386) 2025-01-06 08:26:25 +02:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
Delyan Angelov
738f847f89
tools: improve output of v bug file.v, fix v bug /long/abs/path/file.v too 2025-01-05 20:49:08 +02:00
Delyan Angelov
6eb14082b3
examples: fix unused db.pg import warning for examples/database/psql/customer.v 2025-01-05 20:30:37 +02:00
Delyan Angelov
79ede5ed09
tools: cleanup output of v test-all 2025-01-05 19:25:13 +02:00
Adam Oates
66ac23fc57
parser: add error for array init of Results []!type{} (fix #23360) (#23375) 2025-01-05 19:09:33 +02:00
Delyan Angelov
c77292ac2c
tools: fix v buf file.v, when run in a folder != vroot 2025-01-05 18:46:45 +02:00
kbkpbot
7040514a61
compress.gzip: add compression flags (fix #14994) (#23370) 2025-01-05 14:18:53 +02:00
Swastik Baranwal
af1ef92917
checker: allow calling foo(?i64(123)) for fn foo(x ?I64) { and type I64 = i64 (#23373) 2025-01-05 10:11:51 +02:00
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