18767 Commits

Author SHA1 Message Date
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
Felipe Pena
b76d05dac9
scanner,checker: optimize Scanner.scan_remaining_text and Checker.expr, based on branch prediction analysis (#22823) 2024-11-11 12:45:49 +02:00
yuyi
a132d97926
parser: fix struct field name using keyword (fix #22826) (#22829) 2024-11-11 12:23:15 +02:00
Felipe Pena
2e353d209d
cgen: fix default T{} when T is ref type + dereferencing issue when comparing int alias to int (fix #22795) (#22807) 2024-11-11 12:08:34 +02:00
blackshirt
fdc49dc51a
vlib: initial addition of x.encoding.asn1 (#22783) 2024-11-10 20:21:07 +02:00
Felipe Pena
c9ecc5b0dd
v: add typeof(expr).unaliased_typ (#22806) 2024-11-10 20:15:01 +02:00
Delyan Angelov
e3dfe60e9b
v.util: use temporary workaround for the vinix build problem (when VFLAGS is set, and -ldflags is passed at the same time) 2024-11-10 17:33:17 +02:00
mintsuki
1818e63253
ci: fix vinix_ci.yml for latest Vinix commits (#22818) 2024-11-10 14:25:09 +02:00
Delyan Angelov
5fa643dea1
v.util.diff: un-deprecate diff helper fnss, that are still used by important tests, without a good migration strategy 2024-11-10 14:04:42 +02:00
Delyan Angelov
4f160b00e8
ci: fix spurious failures for printing_struct_with_thread_field.vv on windows 2024-11-10 13:58:54 +02:00
Delyan Angelov
ee957e8fa6 ci: extract ci/common/runner.v, use it to simplify ci/macos_ci.vsh even more 2024-11-10 13:39:08 +02:00
Delyan Angelov
ce1fbaa0bd ci: improve output of macos_ci.vsh 2024-11-10 13:13:38 +02:00
Delyan Angelov
3223da69a1 ci: ensure that all examples can still be compiled, by v compiled with tcc on macos 2024-11-10 12:13:35 +02:00