18838 Commits

Author SHA1 Message Date
Felipe Pena
9de84888b3
parser: optimise mark_var_as_used calls, by moving it to an ast.Scope method (#22842) 2024-11-12 20:23:16 +02:00
Felipe Pena
fe5609d043
cgen: fix generation of a missing return in return if cond { x } else { return missing } (fix #22838) (#22839) 2024-11-12 13:51:01 +02:00
yuyi
55d69203f8
checker: fix if expr with empty array init expression (related #22832) (#22841) 2024-11-12 13:06:26 +02:00
Swastik Baranwal
eee9ee5200
checker: disallow foo[T] as a value (#22820) 2024-11-12 13:03:51 +02:00
Delyan Angelov
4e82b62142
tools: use v retry in more places, that do network operations that can fail temporarily (#22836) 2024-11-12 13:01:37 +02:00
Felipe Pena
34be083e25
v: cleanup calls to Scope.find() methods (#22833) 2024-11-12 12:39:43 +02:00
yuyi
509262646d
checker: fix match expr with empty array init expression (#22832) 2024-11-11 22:13:10 +03:00
Delyan Angelov
ec1f95ac50
v.util: implement tokenize_to_args/1, use it in util.join_env_vflags_and_os_args/0, add tests (#22831) 2024-11-11 19:18:58 +02:00
Delyan Angelov
e433d7c832
tools: improve output of compare_pr_to_master.v weekly.2024.46 2024-11-11 12:50:06 +02:00
Felipe Pena
b76d05dac9
scanner,checker: optimize Scanner.scan_remaining_text and Checker.expr, based on branch prediction analysis (#22823) 2024-11-11 12:45:49 +02:00
yuyi
a132d97926
parser: fix struct field name using keyword (fix #22826) (#22829) 2024-11-11 12:23:15 +02:00
Felipe Pena
2e353d209d
cgen: fix default T{} when T is ref type + dereferencing issue when comparing int alias to int (fix #22795) (#22807) 2024-11-11 12:08:34 +02:00
blackshirt
fdc49dc51a
vlib: initial addition of x.encoding.asn1 (#22783) 2024-11-10 20:21:07 +02:00
Felipe Pena
c9ecc5b0dd
v: add typeof(expr).unaliased_typ (#22806) 2024-11-10 20:15:01 +02:00
Delyan Angelov
e3dfe60e9b
v.util: use temporary workaround for the vinix build problem (when VFLAGS is set, and -ldflags is passed at the same time) 2024-11-10 17:33:17 +02:00
mintsuki
1818e63253
ci: fix vinix_ci.yml for latest Vinix commits (#22818) 2024-11-10 14:25:09 +02:00
Delyan Angelov
5fa643dea1
v.util.diff: un-deprecate diff helper fnss, that are still used by important tests, without a good migration strategy 2024-11-10 14:04:42 +02:00
Delyan Angelov
4f160b00e8
ci: fix spurious failures for printing_struct_with_thread_field.vv on windows 2024-11-10 13:58:54 +02:00
Delyan Angelov
ee957e8fa6 ci: extract ci/common/runner.v, use it to simplify ci/macos_ci.vsh even more 2024-11-10 13:39:08 +02:00
Delyan Angelov
ce1fbaa0bd ci: improve output of macos_ci.vsh 2024-11-10 13:13:38 +02:00
Delyan Angelov
3223da69a1 ci: ensure that all examples can still be compiled, by v compiled with tcc on macos 2024-11-10 12:13:35 +02:00
Delyan Angelov
9fc3a24ca6 v.comptime: fix compilation of examples/veb/veb_example.v with V compiled with tcc on macos 2024-11-10 11:55:53 +02:00
Delyan Angelov
65038a4a2a tools,testing: limit header length used in v test, make CI assertion failures easier to read 2024-11-10 11:10:04 +02:00
Delyan Angelov
1b9a8b996d
checker,pref: fix $if wasm32_emscripten { check, add tests (#22816) 2024-11-10 05:17:12 +02:00
Felipe Pena
c7acf27e06
fmt: fix formatting fixed array size of struct member (#22815) 2024-11-09 18:40:53 +02:00
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