19177 Commits

Author SHA1 Message Date
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
Delyan Angelov
584cedd1bb
cgen: apply the a in [x,y,z] optimisation for ast.IndexExpr and ast.SelectorExpr again (#22767) 2024-11-05 14:42:07 +02:00
Felipe Pena
4a0a9fba99
cgen: fix codegen for -no-builtin flag (when used separately from -d no_main) (#22765) 2024-11-05 14:38:00 +02:00
Felipe Pena
07eed88df7
v: support in expr with number ranges: if var in 1..4 { (fix #20352) (#22754) 2024-11-05 12:47:17 +02:00
Hector Peeters
2dd65872dc
v: fix redundant emission of left expression in in infix expressions (#22763) 2024-11-05 12:35:22 +02:00
Felipe Pena
744ac80d36
checker: fix missing info about generic fn var usage without concrete types (fix #22733, #22734) (#22743) 2024-11-04 22:03:07 +02:00
Delyan Angelov
164c68174a
ci: use macos-14 instead of macos-12 because of https://github.com/actions/runner-images/issues/10721 2024-11-04 21:47:50 +02:00
Felipe Pena
3108820d90
parser, checker: fix option map fn type and missing check for result param type (fix #22736) (#22738) weekly.2024.45 2024-11-03 18:54:27 +02:00
yuyi
ea1992380c
builtin: add string.is_pure_ascii() (#22748) 2024-11-03 18:52:23 +02:00
Delyan Angelov
462f1869bb
ci: rename one of the duplicate main_test.v files, to reduce false positives (workaround) 2024-11-03 14:05:28 +02:00
yuyi
335bb6359e
builtin: improve fixed_array_any_all_test.v (#22746) 2024-11-03 10:03:38 +02:00
yuyi
abb40577f9
cgen: fix assert [2, 3, 1]!.sorted() == [1, 2, 3]!, add tests (#22739) 2024-11-03 10:02:13 +02:00
yuyi
f00d93477c
cgen: fix assert [1, 2, 3]!.reverse() == [3, 2, 1]! (#22745) 2024-11-03 10:00:46 +02:00
Delyan Angelov
6c94c24ea8
parser, builder: add :parse_text to the paths of .v files, printed by -print-v-files, for parse time generated snippets 2024-11-02 17:02:31 +02:00
Felipe Pena
1937cdd841
checker: fix none check for match expr with option (fix #22728) (#22732) 2024-11-02 14:09:55 +02:00
Felipe Pena
769699ede6
cgen: fix spawn with non-pointer receiver (fix #22718) (#22719) 2024-11-02 10:58:05 +02:00
Hitalo Souza
5384a2e77a
x.json2: pre-arranging the replacement of the decoder, to match https://github.com/enghitalo/v/tree/decoder2_to_json2 (#22729) 2024-11-02 10:57:18 +02:00
Felipe Pena
45b7a0e6e2
checker, cgen: fix comptime T.methods with generic types and interface checking with is operator (fix #22721) (#22724) 2024-11-02 10:53:08 +02:00
yuyi
9e2592e429
cgen: fix assert [1, 2, 3]!.index(2) == 1 (#22727) 2024-11-02 10:49:00 +02:00
yuyi
3b828f3ca1
cgen: fix assert [1, 2, 3]!.contains(2) (#22725) 2024-11-02 10:16:54 +02:00
yuyi
fc6e481bc3
cgen: cleanup array.v (#22723) 2024-11-01 13:44:04 +02:00
yuyi
2c887e2017
cgen: fix [1, 2, 3]!.map(it * 2) (#22722) 2024-11-01 09:39:17 +02:00
Felipe Pena
a9e814ff68
cgen: fix ptr field encoding for json (fix #22717) (#22720) 2024-11-01 07:28:37 +02:00
Felipe Pena
ee4f29fd87
v: optimize the compiler performance (#22709) 2024-10-31 20:40:30 +02:00
Delyan Angelov
2ad5d0cd15
tools: change v test to allow for // vtest hide_retries so that retry_test.v can hide its own (deliberate) retries 2024-10-31 20:23:19 +02:00
Delyan Angelov
d48cb18c3a
tools: show the full test output, on known flaky test failure with v test folder/ (#22716) 2024-10-31 19:02:14 +02:00
Delyan Angelov
a189d7f8e8
net: fix resolving of ::1:48872 (pass the *should_listen_on_both_ipv4_and_ipv6_by_default_test.v tests) (#22715) 2024-10-31 18:22:25 +02:00
yuyi
97941b97f8
checker, cgen: implement methods reverse()/reverse_in_place() for fixed arrays (#22712) 2024-10-31 13:46:36 +02:00
Jose Mendoza
b210278c31
parser: make C struct fields public and mutable by default (fix #22695) (#22706) 2024-10-31 13:43:58 +02:00
kbkpbot
86470abc77
strings: add hamming_distance/jaro_similarity/jaro_winkler_similarity functions (#22701) 2024-10-31 13:34:37 +02:00
Delyan Angelov
c32c2d732a Duplicate ./examples/assets/v.svg history in ./examples/veb/veb_assets/assets/v-logo.svg history. 2024-10-31 11:56:18 +02:00
Delyan Angelov
e665760d99 Duplicate ./examples/assets/v.svg history in ./examples/vweb/server_sent_events/assets/v-logo.svg history. 2024-10-31 11:56:17 +02:00
Delyan Angelov
4cbd11419d Duplicate ./examples/assets/v.svg history in ./examples/vweb_fullstack/src/assets/v-logo.svg history. 2024-10-31 11:56:17 +02:00
Delyan Angelov
b5f170258d examples: add examples/assets/v.svg and examples/assets/v_16x16.svg 2024-10-31 11:56:17 +02:00
yuyi
4e9b21f9d0
checker, cgen: implement methods sort_with_compare()/sorted_with_compare() for fixed arrays (#22702) 2024-10-31 06:52:06 +02:00
Felipe Pena
730b3f5e0f
checker: check for receiver name clashing with global var (fix #22698) (#22708) 2024-10-31 06:46:08 +02:00
Delyan Angelov
63a192ccb3
cgen: ensure proper saving/restoring of cgen map[k] := fn () state, when assigning anonymous fns (fix #22705) (#22707) 2024-10-31 06:12:48 +02:00