Commit graph

17807 commits

Author SHA1 Message Date
Turiiya
dfc0c91295
checker: turn warnings for private fields into errors (#21296) 2024-06-09 10:19:52 +03:00
Juan de Bruin
da4afef0d7
builtin: implement a JS version of string.split_any (#21612) 2024-06-08 07:10:57 +03:00
Mehmet Ali Şipi
ff865ea110
os.font: return the "segoeui.ttf" font, if its file exists on Windows (#21655) 2024-06-08 07:07:24 +03:00
Alexander Medvednikov
0b2edd0dd1 gc: fix tcc on macos 2024-06-08 01:34:02 +03:00
Alexander Medvednikov
0d52a7d91e openssl: more verbose error; libgc: make compile on arm macs 2024-06-07 11:48:27 +03:00
Turiiya
e2848e1348
tools: don't write vpm logfiles in CI runs (#21649) 2024-06-07 11:05:05 +03:00
Delyan Angelov
0e543fb364
docs: update the array/slice/reallocation examples and comments 2024-06-07 10:54:30 +03:00
Turiiya
7c8b4b8970
v.utils: allow to set the names of the compared items, when diffing strings (#21650) 2024-06-07 10:22:22 +03:00
Juan de Bruin
096226bf05
examples: check array length before access (#21641) 2024-06-04 18:38:06 +03:00
Felipe Pena
1e86e06eb6
orm: fix subquery without where expr (#21598) 2024-06-04 13:22:06 +03:00
Turiiya
a2ce55d922
builtin: update last_index_u8, deprecate index_u8_last string methods, make consistent with last_index (#21604) 2024-06-04 13:21:47 +03:00
Maxwell Geng
2250d60559
cgen: support a -d no_bool option, for cgen compatibility with the C23 language standard (since bool is a builtin type and a keyword in it) (#21637) 2024-06-04 11:18:37 +03:00
Delyan Angelov
cc92dbc8a5
examples: show how to create and pass a V string to a V function, and then get back a V string in Python 2024-06-03 19:26:30 +03:00
Alexander Medvednikov
193a99d1e7 all: @[freed] attribute for assign statements 2024-06-03 17:19:59 +03:00
Felipe Pena
6d2c3a9caa
checker: fix missing option and result wrong type return type definition (#21626) 2024-06-02 17:14:51 +03:00
Alexander Medvednikov
1096173bd3 builtin: vfmt builtin.c.v 2024-06-02 10:43:48 +03:00
Alexander Medvednikov
4884396ee6 vdoc: fix multiline js string generation in search_index.js 2024-06-02 10:35:50 +03:00
Delyan Angelov
8504beaaab
net.http: implement http.download_file_with_progress/2, saving each chunk, as it is received, without growing the memory usage (#21633) 2024-06-02 10:26:37 +03:00
Felipe Pena
2e567ff9e5
checker: fix missing concrete type checking on a generic type specifier (#21614) 2024-06-02 02:10:48 +03:00
Juan de Bruin
7cff1f7972
jsgen: add README.md (#21630) 2024-06-02 01:48:51 +03:00
Juan de Bruin
12de7cff04
ast: add comment showing what blank_ident represents (#21631) 2024-06-02 01:44:12 +03:00
Felipe Pena
03e89b7851
checker: add error for field map (i.e. a plain untyped map), used inside a struct (#21625) 2024-06-02 01:34:41 +03:00
Felipe Pena
ca55da63c3
cgen: fix missing call to a function returning option, when called inside a print (fix #21616) (#21623) 2024-06-02 01:31:12 +03:00
Juan de Bruin
bb3505fdf8
jsgen: cleanup dead code, add TODOs, reduce nesting, use smartcasting (#21629) 2024-06-02 01:20:59 +03:00
Felipe Pena
d750528f06
parser: allow multiple flag values in enum.from() for flag enums (fix #21569) (#21615) 2024-06-02 00:44:28 +03:00
penguindark
ab45d80fa5
regex: implement \xAF and \X1234 BSLS escape codes (fix #21607) (#21632) 2024-06-02 00:39:59 +03:00
Swastik Baranwal
8c249366c4
checker: disallow sum type with Result variants (#21620) 2024-06-01 13:49:19 +03:00
Delyan Angelov
2d12b03435
net.html: quick workaround for a cgen problem for const x = int(0x80000000) 2024-06-01 11:29:09 +03:00
Felipe Pena
19c08f5e8c
cgen: fix generated code for handling fn call with result/option return on match conditional (#21608) 2024-05-31 22:49:17 +03:00
Delyan Angelov
5ac8249af7
tools: increase max_samples in cmd/tools/fast/fast.v to decrease the variations of the results on https://fast.vlang.io/ 2024-05-31 09:15:11 +03:00
Turiiya
5657e28ca5
parser: register selective import aliases as used (#21613) 2024-05-31 08:34:53 +03:00
Turiiya
52dfef1a8c
vfmt: exit with error code if encountering diffs with -diff flag (#21603) 2024-05-30 17:51:30 +03:00
Turiiya
4bda28b718
net.urllib: update parse host to allow for better error handling (#21602) 2024-05-30 17:38:15 +03:00
Turiiya
5f83a4d110
ci: use shebang with better portability in shell scripts, format shell scripts (#21605) 2024-05-30 17:37:07 +03:00
Turiiya
a4afcbaa5c
fmt: don't break it variable name in match expression function calls (#21600) 2024-05-30 02:29:03 +03:00
Turiiya
ea20c1fa58
net.urllib: cleanup parse_authority, add test (#21599) 2024-05-30 02:20:34 +03:00
Delyan Angelov
62416356bb
tools: add v download URL for downloading single files, to avoid curl/wget etc, which are not available uniformly. (#21597) 2024-05-29 21:47:08 +03:00
Felipe Pena
5436d7b928
cgen: fix generic struct init when it is a reference &T (fix #21594) (#21596) 2024-05-29 21:33:48 +03:00
Felipe Pena
f7a0eeb65c
cgen: fix indexexpr with orexpr (fix #21591) (#21592) 2024-05-29 20:20:54 +03:00
Alexander Medvednikov
6c9dd62d35 checker: more alloc warnings 2024-05-29 17:43:05 +03:00
Delyan Angelov
a6016530f1
ci,cgen: put the Interface(unsafe{nil}) change for now behind -experimental (#21593) 2024-05-29 17:38:16 +03:00
Alexander Medvednikov
2d5c457901 checker: -warn-about-allocs; nil interface allocation fix; parser: tmpl @else [cond] 2024-05-29 11:48:30 +03:00
Delyan Angelov
09eaae5f7a
checker: fix checking of default field initialisations, that are part of unions of structs tagged with @[noinit] (#21587) 2024-05-28 17:27:43 +03:00
Felipe Pena
80397e679e
tools,cgen,pref: add -coverage support + vcover tool (#21154) 2024-05-27 23:06:52 +03:00
Delyan Angelov
f97dd8c4fb
Dockerfile.alpine: update to alpine:3.20, add more tools like gdb, libunwind, gc, to ease producing and debugging static executable in more situations (#21583) 2024-05-27 20:12:05 +03:00
Turiiya
31cde9d8f5
ci: extend coverage, move app test from macos_ci to v_apps_and_modules_ci (#21584) 2024-05-27 19:54:45 +03:00
Felipe Pena
6b2d527d9e
cgen: fix array fixed initialization on struct from call (#21568) 2024-05-27 00:40:57 +03:00
Delyan Angelov
37f385c9d0
testing: implement a separate -show-asserts option, for cleaner test output (-stats still works, and still shows both the compilation stats and the asserts) (#21578) 2024-05-26 18:50:42 +03:00
tcn
c689f801ae
toml: fix @[toml: ], support @[skip] (#21571) 2024-05-26 09:35:59 +03:00
Bastian Buck
b4c560d4b8
os: fix debugger_present() for non Windows OSes (#21573) 2024-05-26 00:46:43 +03:00