20129 Commits

Author SHA1 Message Date
Felipe Pena
864845bccd
cgen: fix array fixed code generation for more than 1 dimension (fix #22866) (#22876) 2024-11-17 10:12:43 +02:00
Delyan Angelov
e234a2d37e tools: make compare_pr_to_master.v use /opt/homebrew/bin/gtime on macos, and a pure V fallback, not just for windows 2024-11-17 09:05:42 +02:00
Delyan Angelov
b4fd5d331f tools: fix compilation of hw with vnew -> vold, in compare_pr_to_master.v 2024-11-17 08:57:29 +02:00
Turiiya
ca236e967e
parser, checker, pref: allow getting notified about unused function params (#22879) 2024-11-17 08:52:03 +02:00
Felipe Pena
466c282d30
v.markused: cleanup the implementation of mark_used/3 (#22877) 2024-11-17 08:36:00 +02:00
Felipe Pena
76c21fbefe
v: minor optimizations on cmd/v (#22878) 2024-11-17 08:33:26 +02:00
Delyan Angelov
be4aec882a
docs: update the documentation of the @[console] tag, add advice to use -subsystem windows instead 2024-11-16 14:29:10 +02:00
Delyan Angelov
1dd5f8eb2c
ci: check more compile flag combinations in puzzle_vibes_ci.yml 2024-11-16 14:22:26 +02:00
Delyan Angelov
375051f6a2
ci: add .yml file for testing compilation of Larpon's Shy library and the Puzzle Vibes game (#22874) 2024-11-16 14:14:33 +02:00
Delyan Angelov
6e2f2cc35c
checker,markused: fix detection of using array_last/array_pop/array_first in user code 2024-11-16 13:16:13 +02:00
Delyan Angelov
945de7e37e
v.embed_file: use @[markused] for find_index_entry_by_path/3 2024-11-16 12:25:50 +02:00
Delyan Angelov
b5813c25e2
tools: measure execution speed, even if the compilation commands fail, in order to not break https://fast.vlang.io/ 2024-11-16 12:13:23 +02:00
Delyan Angelov
c41ff725c4
builtin: fix v -skip-unused -cc tcc examples/hello_world.v on *BSD 2024-11-16 11:57:52 +02:00
Kim Shrier
30093737cc
x.encoding.asn1: fix time creation to also accommodate negative timezone offsets (#22861) 2024-11-16 11:41:16 +02:00
yuyi
8300a0671c
checker: check struct aliased field unsign type assigning negative value (fix #22868) (#22871) 2024-11-16 11:40:44 +02:00
Delyan Angelov
719d9a5784
cgen: small cleanup of the "// THE END" comment generated at the end of each C program 2024-11-16 11:05:05 +02:00
Felipe Pena
4c557cf815
checker, cgen: fix generic static method call return type resolution (#22865) 2024-11-16 09:19:52 +02:00
Felipe Pena
7d6a301bc0
v: improve -skip-unused by removing code related to unused builtin types, interfaces, etc (#22856) 2024-11-16 08:07:34 +02:00
yuyi
4dce49da4e
checker: cleanup and move test files to tests directory (#22870) 2024-11-16 08:01:08 +02:00
Felipe Pena
c4fd61cec7
v: adjust some checks, based on branch prediction analysis (#22848) 2024-11-15 22:55:02 +02:00
Delyan Angelov
561efd1463
examples: simplify and reorder output of poll_coindesk_bitcoin_vs_usd_rate.v 2024-11-15 14:32:27 +02:00
Delyan Angelov
6845db9831
examples: add poll_coindesk_bitcoin_vs_usd_rate.v 2024-11-15 14:16:22 +02:00
Swastik Baranwal
3954e05455
checker: disallow struct init with mutable_field: const_array (fix #22862) (#22863) 2024-11-15 11:57:27 +02:00
Delyan Angelov
df51e840f9
os: work towards being able to again use -autofree while recompiling the V compiler several times 2024-11-14 13:58:50 +02:00
Delyan Angelov
2831b61a0b
ci,v.help: work around -autofree bugs, fix ./v -autofree -o v2 cmd/v 2024-11-14 13:48:37 +02:00
yuyi
d6cfe642cc
checker: check alias of array op overloading and fix op overloading (fix #22851) (#22854) 2024-11-14 13:34:53 +02:00
yuyi
409f6fb642
checker: check array builtin method calls, that do need a mutable receiver, but are called on an immutable one (fix #22850) (#22853) 2024-11-14 13:24:34 +02:00
Delyan Angelov
58e5799ac2
v.help: cleanup the v help installation text 2024-11-14 09:32:54 +02:00
Delyan Angelov
9bba3a07ca
v.help: add help topic for v help repeat 2024-11-14 09:19:45 +02:00
Delyan Angelov
0a47a1fe68
v.help: add topic for v help retry 2024-11-14 09:14:59 +02:00
Delyan Angelov
9d97e18eb6
v.help: add download.txt, so that v help download works too, cleanup help.v 2024-11-14 09:12:56 +02:00
Delyan Angelov
ee3a182dfd
tools: allow for v download -RD URL/script.vsh, to download script.vsh, then run it locally, then remove it, in a single command 2024-11-13 20:38:45 +02:00
blackshirt
897ec51480
x.encoding.asn1: cleanup code and comments (#22847) 2024-11-13 19:38:27 +02:00
Felipe Pena
62bdf990d0
checker: fix missing or-block check for callexpr (fix #22835) (#22840) 2024-11-13 12:30:06 +02:00
Delyan Angelov
7c3c5891b0
builder: fix cross compiling from linux to windows, when passing -g/-cg 2024-11-13 11:59:04 +02:00
Delyan Angelov
4aa87796ed
net.http: ensure that http.download_file_with_progress/3 works (in a degraded mode), on windows, even without passing -d no_vschannel 2024-11-13 11:43:37 +02:00
Felipe Pena
ebb3a8eb25
orm: fix crash when working with array field (fix #22822) (#22824) 2024-11-13 09:59:04 +02:00
yuyi
1a9dab29c6
checker: fix generic fn call with empty array argument (fix #22843) (#22846) 2024-11-13 09:56:50 +02:00
yuyi
70112d84a9
checker: minor cleanup of commented code in lambda_expr.v (#22844) 2024-11-13 02:48:46 +02:00
Swastik Baranwal
f4d3c7eb70
parser,checker: improve the position underlining, for last statements in branches of if expressions (#22845) 2024-11-13 02:46:12 +02:00
Hitalo Souza
8ebbacecd6
json: move _test.v files to vlib/json/tests/ (#22731) 2024-11-12 20:33:01 +02:00
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