18424 Commits

Author SHA1 Message Date
Delyan Angelov
11551aaf6b
v.builder: add support for -ldflags "" when using -cc msvc too (#22486) 2024-10-11 13:38:51 +03:00
yuyi
79786732ef
all: replace struct field name '@type' with 'type' (#22485) 2024-10-11 08:53:18 +03:00
alexey semenyuk
9788ae1f3e
veb,vweb: make the MIME type checks case insensitive (allow for serving static file.JPG) (fix #22425) (#22483) 2024-10-11 08:50:32 +03:00
yuyi
2ca3fdfa8d
all: replace enum field name '@xxx' with 'xxx' (#22479) 2024-10-11 02:09:23 +03:00
Delyan Angelov
1458dc38dd
cgen,pref,help: support explicitly passing -subsystem windows or -subsystem console on Windows, even for non GG apps (#22480) 2024-10-11 01:54:22 +03:00
Felipe Pena
19a7fbcf28
checker: fix wrong overload operator checking for generic aliased type (fix #22471) (#22475) 2024-10-10 21:33:17 +03:00
yuyi
f2cb462d26
vrepl: replace enum field name '@none' with 'none' (#22477) 2024-10-10 20:57:15 +03:00
Felipe Pena
3af35eef14
checker: fix missing check for empty noreturn fn (fix #22468) (#22474) 2024-10-10 20:52:24 +03:00
Felipe Pena
1a145bfff3
checker: reduce table.sym() calls in infix expression checks (#22476) 2024-10-10 20:49:35 +03:00
Delyan Angelov
7cdd667740
ci: remove the .tmp.obj files, when preparing the windows release .zip 2024-10-10 17:01:21 +03:00
Delyan Angelov
469b56ef4e
v.vcache: store the cache files in ~/.vmodules/.cache by default, allowing for user modules, that are named cache (fix #22459) (#22472) 2024-10-10 16:28:07 +03:00
yuyi
a3f6fd5d2f
ast: cleanup in stringify_fn_after_name() (#22473) 2024-10-10 15:24:49 +03:00
yuyi
d3b380b48b
cgen: fix option if expr with noreturn fn call (fix #22467) (#22470) 2024-10-10 12:23:28 +03:00
yuyi
51b471b060
all: replace enum field name 'xxx_' with 'xxx' (#22469) weekly.2024.41 2024-10-10 09:17:19 +03:00
yuyi
b97b2b1c9c
all: replace enum field name struct_ with struct (#22466) 2024-10-10 04:41:15 +03:00
Felipe Pena
72b48047b5
checker: add scope validation for struct (fix #22437) (#22449) 2024-10-09 22:48:28 +03:00
yuyi
4c82b0125e
parser: allow enum field names being the same as V keywords (#22456) 2024-10-09 20:57:00 +03:00
Delyan Angelov
3e6fc364a8
transformer: optimise calls to write string with simple interpolations, implement -d trace_transformer (#22188) 2024-10-09 19:41:48 +03:00
Felipe Pena
8fcf3d75ba
cgen: fix codegen for multi return with array fixed (fix #22451) (#22454) 2024-10-09 18:00:49 +03:00
Felipe Pena
875faaff0f
checker: fix missing check for escape char on unicode checker (#22462) 2024-10-09 16:49:51 +03:00
Felipe Pena
98f66d803a
picoev: fix wrong return on listen failure (#22463) 2024-10-09 16:38:52 +03:00
Carlos Esquerdo Bernat
7e17b9abba
checked: change wording of comment vweb -> veb (#22458) 2024-10-09 14:31:58 +03:00
Alexander Medvednikov
e1480b61dd all: more unsafe warnings => errors 2024-10-09 00:52:17 +03:00
kbkpbot
0224581bc6
math.big: improve the performance of left_shift_digits_in_place and right_shift_digits_in_place (#22450) 2024-10-08 21:48:26 +03:00
Felipe Pena
ef72f97b96
json: fix encode/decode of fixed arrays (fix #22369) (#22448) 2024-10-08 19:31:34 +03:00
Felipe Pena
e14bc6077b
checker: fix struct array generic field (fix #22406, second try) (#22443) 2024-10-08 18:59:59 +03:00
yuyi
4d74d7296a
parser: fix generics method chaining call (#22447) 2024-10-08 12:32:28 +03:00
Tim Marston
9d164d07b3
checker: don't cast match branch structs to IError, when the return type of a function is !SumType (#22444) 2024-10-08 10:04:27 +03:00
Carlos Esquerdo Bernat
eb57746a59
x.json2: allow parsing a value from a multidimensional array in map_from (#22442) 2024-10-08 09:49:45 +03:00
Delyan Angelov
c16cde7b83
v.builder: support injected options with newlines, coming from #flag directives, when -no-rsp is used 2024-10-08 08:58:08 +03:00
Jose Mendoza
75658415f1
builtin: add string.wrap method + tests (#22441) 2024-10-08 07:14:32 +03:00
Alexander Medvednikov
e1b842a8fa Revert "cgen: fix codegen for struct array with generic field (fix #22406) (#22413)"
This reverts commit 482aad5c183a36162e4d4066e0b1583df9247942.
2024-10-07 23:05:33 +03:00
Felipe Pena
482aad5c18
cgen: fix codegen for struct array with generic field (fix #22406) (#22413) 2024-10-07 22:57:27 +03:00
Felipe Pena
914169ed4b
checker: fix missing check for generic array type without concrete types (fix #22414) (#22416) 2024-10-07 19:49:47 +03:00
Carlos Esquerdo Bernat
0073f097a7
v.ast: comment on the IndexExpr.is_farray field (#22438) 2024-10-07 19:26:22 +03:00
Delyan Angelov
d3c3c391ca
checker: reduce allocations part 2 (#22434) 2024-10-07 17:07:31 +03:00
yuyi
184a86343e
all: cleanup resolve_generic_to_concrete() and related methods (#22433) 2024-10-07 15:12:28 +03:00
Swastik Baranwal
f4c04844b2
checker: disallow iterating through .params, for types that are not a function/method (#22428) 2024-10-07 12:38:24 +03:00
Delyan Angelov
5a33c36ab7
checker: reduce allocations in Checker.method_call (#22432) 2024-10-07 11:27:18 +03:00
yuyi
3736e51e62
ast, parser: fix generic fn type with defferent generic type call (#22431) 2024-10-07 11:05:31 +03:00
kbkpbot
309c8d3778
strconv: fix e/g format (fix #22424) (#22430) 2024-10-07 08:43:04 +03:00
Delyan Angelov
502442ad00
os: implement os.data_dir(), os.state_dir(), os.local_bin_dir() + tests (#22426) 2024-10-07 07:23:50 +03:00
Alexander Medvednikov
2b52153c14 all: make 0 => unsafe { nil } an error, not a notice 2024-10-07 01:54:19 +03:00
Alexander Medvednikov
a2d385aee3 parser: allow struct definitions inside functions 2024-10-06 22:40:14 +03:00
Delyan Angelov
4f9df0da72
builtin: unify memory allocation error handling, and avoid string interpolation, when allocation failed (#22423) 2024-10-06 20:56:58 +03:00
kbkpbot
491d6f4955
strconv: fix remove_tail_zeros bug (fix #22421) (#22422) 2024-10-06 16:48:08 +03:00
Swastik Baranwal
6ed176515d
checker: disallow blank ident in const and global decl (#22415) 2024-10-06 16:36:50 +03:00
Delyan Angelov
93d3278a5a
v.util: fix handling of spaces before the second argument of $d(name, value) (#22420) 2024-10-06 11:33:29 +03:00
kbkpbot
e83b0d221f
x.json2: make encode number cJson compatible (fix #22363) (#22419) 2024-10-06 11:23:42 +03:00
kbkpbot
3c0358cce7
toml: add reflect/decode struct default value support (#22412) 2024-10-06 11:15:04 +03:00