18663 Commits

Author SHA1 Message Date
Alexander Mandrikov
e1a5acc1ef
orm: support plain @[serial] attribute for marking struct fields (#22814) 2024-11-09 17:26:22 +02:00
Felipe Pena
f60d285585
checker: fix missing auto from_string type restriction (related to #22783) (#22803) 2024-11-09 13:46:59 +02:00
Felipe Pena
db525108ae
cgen,comptime: fix wrong type resolution on infix (#22804) 2024-11-09 13:40:39 +02:00
Felipe Pena
ee53a99cdd
v: add typeof(var).indirections and T.indirections (#22805) 2024-11-09 13:34:24 +02:00
Felipe Pena
6ffc9c94b5
cgen: fix codegen for fn fixed array param w/ size defined by const (fix #22811) (#22812) 2024-11-09 13:28:19 +02:00
Felipe Pena
bf8ea4b594
checker: fix callexpr after auto C func identification (fix #22800) (#22809) 2024-11-09 12:57:02 +02:00
yuyi
b7ffa8f94a
builtin: minor optimization in rune.map_to() (#22810) 2024-11-09 09:33:51 +02:00
Delyan Angelov
e6c5b1bc43
ci,v.gen.native: cleanup compile warnings for ./v -b native examples/wasm/hello_world.v, to make CI annotations more useful 2024-11-09 09:27:30 +02:00
Delyan Angelov
d005460f90
ci: silence compilation warning for bench_string_key_in_map_vs_string_value_in_array.v 2024-11-09 09:17:36 +02:00
Delyan Angelov
32462004e6
ci,tests: silence compilation warning for vlib/v/tests/testcase_leak.vv 2024-11-09 09:14:06 +02:00
Delyan Angelov
a40e751ba3
ci: cleanup, run npx prettier --write .github/workflows/macos_ci.yml 2024-11-09 08:53:14 +02:00
Alexander Medvednikov
c0f5bfadb7 ci: use thew new macos_ci.vsh (github) 2024-11-09 09:47:05 +03:00
Alexander Medvednikov
d521f4d6f3 ci: fix Build V 2024-11-09 09:27:17 +03:00
Alexander Medvednikov
5d0f6b8a3d ci: use os.system to redirect output 2024-11-09 09:24:35 +03:00
Alexander Medvednikov
7ee7fb7664 ci: fmt macos_ci.vsh 2024-11-09 09:19:06 +03:00
Alexander Medvednikov
48e3cd1beb ci: macos_ci.vsh 2024-11-09 09:18:03 +03:00
Felipe Pena
fad49da199
orm: fix order by with custom column name (#22813) 2024-11-09 08:24:59 +03:00
Alexander Medvednikov
a1904154d3 all: remove inline sum types completely 2024-11-08 22:07:51 +03:00
yuyi
59c8f6b07b
builtin: fix rune.to_title(), add tests (#22808) 2024-11-08 17:09:20 +02:00
Felipe Pena
bf83715b6c
cgen: fix option struct default value init with -cstrict (spotted in #22783) (#22802) 2024-11-08 17:01:44 +02:00
yuyi
80128f616e
builtin: cleanup in rune_map.v (#22799) 2024-11-08 15:11:31 +02:00
yuyi
43afa8d94e
builtin: add tests for rune.to_upper() (#22801) 2024-11-08 15:10:30 +02:00
Felipe Pena
43d9cd6e90
builder: fix msvc build thirdparty obj file from .cpp (fix #22772) (#22789) 2024-11-08 12:35:14 +02:00
Alexander Medvednikov
7f497b660c checker: make auto c generation experimental for now 2024-11-08 13:30:28 +03:00
Alexander Medvednikov
8b991b1584 checker: auto generate missing C function definitions 2024-11-08 11:59:31 +03:00
Delyan Angelov
22983a08e6
tools: bump default v retry timeout to 10 minutes, clarify the usage of its --timeout option. 2024-11-08 09:26:22 +02:00
Jose Mendoza
a5839aa4af
checker: skip redundant message for int overflows, while casting integer literals (fix #22761) (#22788) 2024-11-08 09:15:28 +02:00
Felipe Pena
1fc053157b
cgen: enable if guard to add err var on else branch, after last else if (fix #22784) (#22786) 2024-11-07 21:18:44 +02:00
Felipe Pena
59a27b83d4
v.comptime: cleanup, add get_type_or_default (#22780) 2024-11-07 21:14:44 +02:00
Delyan Angelov
0eaa85725b
ci: add a problem matcher support, to get error/warning/notice annotations in V CI jobs (#22790) 2024-11-07 20:59:19 +02:00
Delyan Angelov
f3b1674ed9
tools: improve the diagnostic output of compare_pr_to_master.v 2024-11-07 20:57:55 +02:00
Felipe Pena
3278614abb
parser,checker: improve static method call resolution (fix #22773) (#22787) 2024-11-07 19:46:51 +02:00
Hitalo Souza
31d6c473da
picoev: fix the incompatible pointer type cast error in the C.epoll_wait call (#22785) 2024-11-07 17:11:36 +02:00
Felipe Pena
dab25cad49
cgen: remove unused code generated for unwrapping temp var from callexpr (detect unused return value from CallExpr), fix parser bugs (#22769) 2024-11-07 12:01:33 +02:00
yuyi
505a247706
cgen: fix struct field name using c keyword typeof (fix #22779) (#22782) 2024-11-07 11:43:39 +02:00
Felipe Pena
107167a93a
autofree: fix argument freeing for json.encode and json.encode_pretty calls (#22781) 2024-11-07 04:37:50 +03:00
Hitalo Souza
aaeae8c964
x.json2.decoder2: cleanup after #22751 (#22771) 2024-11-06 20:30:56 +02:00
Jose Mendoza
37ed9dc95a
cgen: avoid generation of empty or blocks for f() or {} (#22775) 2024-11-06 20:00:07 +02:00
yuyi
b30be51872
builtin: fix runes.to_upper() (fix #22742) (#22755) 2024-11-06 16:54:12 +02:00
Delyan Angelov
2ebbbd8aeb ci: reduce flakyness of cmd/tools/vcover/cover_test.v (workaround for a race condition while updating the OK tasks counter in v test) 2024-11-06 14:16:45 +02:00
Delyan Angelov
46a78ca31b ci: run v fmt -w vlib/v/pref/should_compile.v 2024-11-06 14:16:02 +02:00
Delyan Angelov
992502389b
v.pref: support a _wasm32_emscripten.c.v suffix for platform files too 2024-11-06 13:32:19 +02:00
Delyan Angelov
399159ff79
tools: fix v doctor output for missing cc. Add a diagnostic line checking for emcc --version too 2024-11-06 13:12:22 +02:00
Felipe Pena
0585d96495
cgen: fix c codegen formatting for return match (#22768) 2024-11-05 21:29:12 +02:00
Felipe Pena
2c0446dc3b
parser: fix enum redeclaration error (fix #22759) (#22766) 2024-11-05 20:55:42 +02:00
Hitalo Souza
402e239edf
os: document the various enum values in os.Signal (#22770) 2024-11-05 20:50:09 +02:00
Felipe Pena
d9c3ac5ce6
checker, cgen: fix comptime issues with generic type (fix #22710, #22642) (#22751) 2024-11-05 16:23:51 +02:00
Felipe Pena
bd6005ed73
checker: fix missing check for stack pointer return (fix #22726) (#22756)
* fix

* test

* fix
2024-11-05 15:45:03 +02:00
Felipe Pena
2f8b2c50e8
v: allow map[k]()? and map[k]()() (#22740) 2024-11-05 15:41:31 +02:00
Felipe Pena
02793922f1
cgen: fix codegen to emit callexpr one time for in expr optimization (#22764) 2024-11-05 15:15:13 +02:00