17988 Commits

Author SHA1 Message Date
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) weekly.2024.22 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
Turiiya
0fdc32e225
builtin: simplify splint_nth methods (#21563) 2024-05-25 16:47:11 +03:00
Delyan Angelov
a1ad658d27
net.http: change default http.Server listening address to :9009, to avoid conflicts with tools, that start their own http servers on 8080 like bytehound (#21570) 2024-05-25 14:30:10 +03:00
Turiiya
25be36296e
os: make minior improvement to C function semantics and related code (#21565) 2024-05-25 11:30:04 +03:00
Turiiya
a7cf1ad7d5
io: cleanup prefix_and_suffix/1 util function (#21562) 2024-05-25 03:46:34 +03:00
Turiiya
14018f1c45
os: remove mut declarions for unchanged vars in os_nix.c.v (#21564) 2024-05-25 03:32:59 +03:00
Delyan Angelov
c9e6a120f6
builtin: reduce allocations in s.index_kmp/1 and s.replace/2 (#21561) 2024-05-25 03:25:38 +03:00
Delyan Angelov
cc72c2e579
ci: shorten path used for unix domain socket tests (to fit in Windows path limits) 2024-05-24 20:15:50 +03:00
Delyan Angelov
75fe4eaab7
cgen: cleanup // scopeobjects.len == lines, when -autofree is not used 2024-05-24 13:08:45 +03:00
Delyan Angelov
1cd561feb4
tests: reduce the likelyhood of naming collisions for v test session folders, started at the exact same time (the time resolution on windows is much lower) 2024-05-24 13:08:45 +03:00
Turiiya
527559c656
examples: cleanup process/execve.v (#21557) 2024-05-24 11:01:01 +03:00
Delyan Angelov
ccfa65aa14
bootstrap: cleanup code checking for overflowing int literals, ease forwards compatibility with V versions before ef758a7 2024-05-24 10:36:07 +03:00
Kim Shrier
5407dbbde7
sokol: fix audio example to work on FreeBSD (#21558) 2024-05-24 08:12:41 +03:00
Alexander Medvednikov
27833e0dbe examples: limit news_fetcher.v 2024-05-23 21:30:41 +03:00
Alexander Medvednikov
115ecdd60a examples: fix news_fetcher.v 2024-05-23 20:48:41 +03:00
Swastik Baranwal
ef758a76dd
checker: fix unknown fixed array size for const n = int(sizeof(u64)); _ = [n]int{} (fix #21544) (#21548) 2024-05-23 19:51:46 +03:00
Delyan Angelov
0fe2d6052d
tests: make the failures of vmodules_overrides_test.v more informative 2024-05-23 17:57:55 +03:00
Delyan Angelov
416b37bcb3
checker: fix v -W vlib/v/tests/enum_bitfield_64bit_test.v too 2024-05-23 17:40:02 +03:00
Delyan Angelov
eb73a53551
tests: remove generated interop_test.js 2024-05-23 16:27:18 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00