Commit Graph

11290 Commits (e23d61d99e2a7aa47217a3b29fbef64308a8b787)

Author SHA1 Message Date
Delyan Angelov df8a4a03a0
tests: support `// vtest retry: 4` for marking flaky tests 2021-09-18 11:48:32 +03:00
Delyan Angelov eec930b86a
os: turn some panics into `return error()` 2021-09-18 10:45:04 +03:00
Delyan Angelov 209b159554
ci: fix tests-sanitize-address-msvc job (pass proper `/fsanitize=address` option) 2021-09-18 10:05:35 +03:00
yuyi 39ad6da506
checker, cgen: generate .free() methods for custom structs automatically (#11529) 2021-09-18 09:38:42 +03:00
Delyan Angelov 2eeba4758a
v.builder: fix `-cc msvc -cflags /O2` and support CFLAGS and LDFLAGS env vars 2021-09-18 09:14:21 +03:00
Alexander Medvednikov 219a764a83 autofree: only free user reference types 2021-09-18 06:32:25 +03:00
Alexander Medvednikov 6d47dd22df autofree: free references 2021-09-18 04:19:16 +03:00
yuyi 44ec8a8cd4
v.fmt, v.gen.js: use 'if foo in [TypeA, TypeB]' in fmt.v and js.v (#11524) 2021-09-17 21:59:16 +03:00
Delyan Angelov bd65ceb463
v.markused: remove __print_assert_failure from all_fn_root_names 2021-09-17 21:47:22 +03:00
Ruofan XU 9180647f99
scanner, fmt: fix multi-level generics (#11517) 2021-09-17 21:44:31 +03:00
Alexander Ivanov 30e53c95c7
checker: handle `if _likely_(x is Interface) {` from #11485 (#11519) 2021-09-17 21:01:12 +03:00
yuyi fb75d528eb
builder: remove panics, when cleaning up tmp files after tests (#11525) 2021-09-17 20:56:33 +03:00
czkz 816c6c62b5
os: fix documentation typo in args.v (#11526) 2021-09-17 20:55:16 +03:00
Michele Zenoni 92bb292113
examples: add Rule 110 example (#11516) 2021-09-17 03:24:28 +03:00
Vincent Laisney 273154c1ae
math.big: add Newton and Karatsuba algorithms (#11487) 2021-09-16 19:31:07 +03:00
yuyi 467afad065
cgen: use `if foo in [TypeA, TypeB]` in cgen.v (#11518) 2021-09-16 19:26:53 +03:00
JalonSolov 1688148828
flag: switch panics to optionals (#11515) 2021-09-16 19:25:05 +03:00
Delyan Angelov 0a18690a4f
v.gen.c: fix assert `f().len == 1` calling f() twice (closes issue 11501) 2021-09-16 19:01:35 +03:00
playX c175b4fd48
v.gen.js: refactor code, fix alias codegen, `-stats` now again works with tests on the JS backend (#11512) 2021-09-16 14:00:15 +03:00
Miccah ead5e66afd
net.http: add post_multipart_form function (#11511) 2021-09-16 07:34:07 +03:00
Dialga f295469fac
net.urllib: make unescape() autofree compatible (#11510) 2021-09-16 07:09:20 +03:00
yuyi d5e00b0920
checker, cgen: fix generic arrays sum() (#11502) 2021-09-16 07:08:28 +03:00
yuyi 09ded16e3d
checker: use 'if foo in [TypeA, TypeB]' in checker.v (#11494) 2021-09-16 07:08:14 +03:00
playX 7d1776b84d
js: equality method generation for V types (#11503) 2021-09-16 07:07:48 +03:00
Alexander Medvednikov d00808660f json: omitempty 2021-09-16 07:02:43 +03:00
Delyan Angelov 5bc6cc9512
v.checker: fix spurious warning for `if x := map_of_sumtypes[k] {}` 2021-09-15 15:42:28 +03:00
JalonSolov 7145461cc5
arrays: switch panics to optionals (#11497) 2021-09-15 15:17:55 +03:00
yuyi ef690dc06b
testing: remove panics when cleaning up after test runs (#11505) 2021-09-15 15:15:46 +03:00
Ekopalypse 41fc4c55c6
v.builder: simplify target architecture logic for msvc (#11491) 2021-09-14 17:47:26 +03:00
ChAoS_UnItY 0c0e28df6e
arrays: add more modern array operation functions (#11488) 2021-09-14 16:49:23 +03:00
yuyi 9554470985
checker, cgen: fix generic operator overload of 'cmp' (#11489) 2021-09-14 16:20:02 +03:00
yuyi 8862c3af0f
all: implement `if foo in [Foo1, Foo2, Foo3]` (#11486) 2021-09-14 15:56:12 +03:00
Alexander Medvednikov 12ec900d20 checker: fix the void type check 2021-09-14 01:02:32 +03:00
Daniel Däschle b63ec8fbcf
checker: require `params` attribute to use struct as keyword arguments in function (#11135) 2021-09-14 00:05:30 +03:00
Alexander Medvednikov ae41d1d3c6 builtin, cgen: more -nofloat fixes 2021-09-13 19:06:19 +03:00
Alexander Medvednikov 8fc0b486a2 builtin: fix string interpolation when compiling with -nofloat 2021-09-13 18:40:32 +03:00
Alexander Medvednikov c99281709b pref: define nofloat comptime define 2021-09-13 18:35:21 +03:00
Alexander Medvednikov 04d4431299 checker: remove another unnecessary error 2021-09-13 18:35:08 +03:00
Alexander Medvednikov cfcc57f5d3 checker: remove unnecessary "no methods" error; builder: skip float.c.v with -nofloat 2021-09-13 18:14:26 +03:00
ChAoS_UnItY 2ced845e30
arrays: add chunk and window functions (#11476) 2021-09-13 16:13:32 +03:00
playX b9dfc89aa9
js: prefix V builtin functions, so they do not overlap with JS (#11483) 2021-09-13 11:44:55 +03:00
Ulises Jeremias Cornejo Fandos 480fe8041a
math.stats: update math.stats using generics (#11482) 2021-09-13 10:20:38 +03:00
yuyi 30029eaf5d
checker, cgen: fix generic operator overload (fix #11472) (#11479) 2021-09-13 09:49:28 +03:00
Enzo 012da10517
ast, fmt: cleanup (#11477) 2021-09-13 04:08:58 +03:00
yuyi cd7d482c3b
checker: fix generic array append (#11475) 2021-09-12 15:09:11 +03:00
Enzo ccf6285f82
checker: allow mut arg on C functions (#11430) 2021-09-11 14:25:38 +03:00
playX 5b619b99c2
v.gen.js: Interfaces support, fix for error propagation & panic stacktraces (#11471) 2021-09-11 14:24:47 +03:00
Alexander Medvednikov 90e04d03b2 net.http: fix request_test.v 2021-09-11 06:16:00 +03:00
Ekopalypse f9eb14d914
builder: remove fPic argument from windows builds (#11467) 2021-09-11 04:48:02 +03:00
zakuro fb20a92b1e
fmt: fix a bug that break generics call in string inter (#11468) 2021-09-11 04:47:22 +03:00