18542 Commits

Author SHA1 Message Date
Delyan Angelov
e48e3c748d
parser: apply @[direct_array_access] to is_ident_name 2024-10-14 15:05:31 +03:00
Delyan Angelov
5786099cb0
token: apply @[direct_array_access] to TrieNode.add_word 2024-10-14 15:04:06 +03:00
Delyan Angelov
9a88446ee0
os: improve doc comments for os functions, that accept/return a size/offset in bytes (#22519) 2024-10-14 14:08:04 +03:00
Delyan Angelov
9fac8a4463
v.util: relax the vup tool recompilation; try an older vup tool, if it is still present; add more failure diagnostic messages (#22518) 2024-10-14 07:28:49 +03:00
Felipe Pena
df4c6ac739
fmt: keep C. prefix for concrete type used in a generic fn call (#22517) 2024-10-13 20:14:23 +03:00
JalonSolov
55ae30cba4
tools: grammar changes in oldv usage (#22515) 2024-10-13 18:30:22 +03:00
Delyan Angelov
b1142548b9
ast,parser,cgen: add a new ast.FnDecl field is_c_extern, set it during parsing, to be available in markused and checker too 2024-10-13 16:47:58 +03:00
Felipe Pena
c4aaa2ef4d
checker: fix generic lambda with late concrete type inference (fix #22497) (#22509) 2024-10-13 13:25:15 +03:00
alexey semenyuk
bb99f8b57c
examples: fix veb example's file_transform port typo (#22511) 2024-10-13 13:23:08 +03:00
Felipe Pena
6064c6f210
parser: allow static method call on match branch (#22507) 2024-10-13 13:21:28 +03:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
Felipe Pena
45fd7ebcde
checker: implement option unwrapping on else branch (#22504) 2024-10-12 16:19:46 +03:00
yuyi
e1e44e32c7
parser: implement fn name using keyword (#22501) 2024-10-12 15:56:45 +03:00
Delyan Angelov
4fcd94a7bf
cgen: allow for @[c_extern] fn C.somename(param1 int, param2 &char) &char (#22502) 2024-10-12 15:48:18 +03:00
Felipe Pena
ddd5254db4
checker: fix missing checker for option map indexing (fix #22490) (#22495) 2024-10-12 11:34:18 +03:00
Delyan Angelov
ab862c4285
picoev: add -d support_wsl1 (workaround #22493) 2024-10-12 08:56:47 +03:00
Felipe Pena
0cf3a445b7
cgen: fix spawn generic codegen (fix #22484) (#22491) 2024-10-11 19:31:18 +03:00
Delyan Angelov
5aa6eaf38b
v.builder: fix cross compiling from linux to windows with -os windows -subsystem windows (#22487) 2024-10-11 14:41:19 +03:00
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