20180 Commits

Author SHA1 Message Date
Delyan Angelov
a5f9899ae3
v: support -div-by-zero-is-zero, which allows for x / 0 == 0 and x % 0 == x, avoiding division by zero traps/panics (#24981) weekly.2025.31 2025-07-28 10:41:18 +03:00
Delyan Angelov
c1db6006bd
time: fix more panics in the supported specifiers in Time.custom_format/1 (#24988) 2025-07-27 20:34:11 +03:00
Delyan Angelov
6aede65485
markused,checker: fix hello world size after the introduction of builtin.closure in 2d87ac4 (#24989) 2025-07-27 20:29:28 +03:00
Delyan Angelov
ace5df7236
ci: workaround -usecache issue afte 2d87ac4 2025-07-27 20:24:13 +03:00
kbkpbot
2d87ac4837
cgen: move closure C code to V code under vlib/builtin/closure/ (#24912) 2025-07-27 17:44:06 +03:00
Delyan Angelov
a08ea74167
time: fix timezone test on windows 2025-07-27 15:56:36 +03:00
kbkpbot
dc2a7b2b7c
time: fix custom_format panic (fix #24977) (#24987) 2025-07-27 15:46:56 +03:00
Delyan Angelov
f719c2cbe3
ci: force changes to vlib/x/json2 to trigger the full sanitized checks (the implementation there uses unsafe blocks and vmemcmp/3...) 2025-07-26 16:57:00 +03:00
Delyan Angelov
b511f2239e
ci,x.json2.decoder2: fix sanitize jobs 2025-07-26 16:53:53 +03:00
Delyan Angelov
318394dd47
tests: move newer fn tests to vlib/v/tests/fns/ 2025-07-26 07:15:08 +03:00
Delyan Angelov
dff623e143
tests: move newer struct related tests to vlib/v/tests/structs/ 2025-07-26 07:15:07 +03:00
Delyan Angelov
2e9f101cfc
tests: move new test from 261a4fb to vlib/v/tests/loops/ 2025-07-26 07:15:07 +03:00
Larsimusrex
66c669fffd
decoder2: rework decoding of sumtypes (#24949) 2025-07-26 07:06:43 +03:00
Krchi
261a4fb31b
parser: fix syntax error for for c in [othermod.Struct{field: 255}] { (fix #24943) (#24978) 2025-07-26 06:55:30 +03:00
Delyan Angelov
ec5eeb57b2
net.http: fix panic in parse_multipart_form for invalid boundary (fix #24974) (#24976) 2025-07-25 21:30:36 +03:00
Delyan Angelov
34cfe19ae3
tests: bump timeouts in cmd/tools/vtimeout_test.v to reduce false positives when the CI runners are slow 2025-07-25 19:07:50 +03:00
Felipe Pena
d9c7387da0
cgen: fix struct field init within fn without result type (fix #24970) (#24973) 2025-07-25 18:11:18 +03:00
kbkpbot
e5eed5c5a4
eval: fix if-else; add infix op; fix func calls (#24972) 2025-07-25 17:45:31 +03:00
Delyan Angelov
38beb23c6a
v.builder: add a clearer error message for v -shared run empty.v (issue found by Felipe Pena) 2025-07-25 15:15:05 +03:00
Delyan Angelov
6fb46cc30f
fmt: fix eating the attribute from @[deprecated] pub type Alias = int (fix #24968), workaround -usecache bug (#24969) 2025-07-25 10:57:52 +03:00
Felipe Pena
73db18bc0d
markused: cleanup and improve the code structure (#24959) 2025-07-25 09:21:33 +03:00
Delyan Angelov
e22f4d2979
ci: retry 2 times vlib/net/http/server_test.v to avoid false positives for unrelated commits/PRs 2025-07-25 09:05:24 +03:00
Krchi
e1147c73d8
cgen: move sort fn after interface definitions(fix #24465) (#24967) 2025-07-25 07:27:51 +03:00
Delyan Angelov
da0485f1d1
ci: add checks for compilation of vlang/gui to v_apps_and_modules_compile_ci.yml 2025-07-24 23:31:58 +03:00
kbkpbot
af046e1c6e
eval: add more infix op support; fix early func return (#24965) 2025-07-24 21:10:10 +03:00
Felipe Pena
a309593f56
markused: fix interface fields and chan usage (fix #24961) (#24962) 2025-07-24 18:25:41 +03:00
Delyan Angelov
05479f3bd9
tools: improve alignment for v repeat "program" "program_that_is_over_10x_faster" 2025-07-24 15:46:54 +03:00
Felipe Pena
267d8262b3
parser,markused: support @[markused] for interface declarations too (#24963) 2025-07-24 08:14:30 +03:00
Delyan Angelov
93a1989b0b
regex: fix OOB bug discovered through ./v -g -force-bounds-checking vlib/regex/ (fix by @penguindark) (#24960) 2025-07-24 08:10:45 +03:00
Delyan Angelov
66946738fb
tests: fix some of the notices/warnings/errors discovered through find . |grep _test.v$ |xargs -i ./v -g -keepc -skip-running {} 2025-07-24 07:38:03 +03:00
kbkpbot
e5c3b65895
eval: reset return value after const eval and fix if-expr (#24955) 2025-07-24 07:33:34 +03:00
Felipe Pena
edf6c22e9c
cgen: fix callback codegen on generic struct resolution (fix #24947) (#24948) 2025-07-23 20:49:25 +03:00
Felipe Pena
7472a745e0
parser: allow keyword as struct param key on fn call (fix #24957) (#24958) 2025-07-23 20:48:03 +03:00
Delyan Angelov
4037765828
builtin: fix OOB bugs in s.is_bin, s.is_oct, s.is_hex, discovered through ./v -force-bounds-checking test vlib/builtin/ 2025-07-23 15:52:18 +03:00
Delyan Angelov
bf03add8eb
v.help: document the new -force-bounds-checking option 2025-07-23 15:44:50 +03:00
Delyan Angelov
5c56909547
strconv: fix bounds check bug, discovered by the equivalent of ./v -g -force-bounds-checking test vlib/toml/ (thanks to tankf33der) 2025-07-23 15:38:04 +03:00
Delyan Angelov
2eacc6fadb
pref,parser: implement support for -force-bounds-checking to enable easier testing of functions tagged with @[direct_array_access] (essentially turning off that flag) 2025-07-23 15:33:51 +03:00
Delyan Angelov
da00a46bcc
builtin: prepare for adding a -force-bounds-checking option 2025-07-23 15:26:17 +03:00
Delyan Angelov
ba826c047b
ci: retry session_app_test.v 2 times, since it is network dependent, and sometimes (rarely) fails 2025-07-23 15:09:58 +03:00
Delyan Angelov
43a4f3fa76
math.big: fix validate_string and integer_from_regular_string (check for characters.len > 0, before accessing characters[0]) 2025-07-23 15:04:55 +03:00
kbkpbot
735f8efb61
native: add comptime cpu archs support (#24956) 2025-07-23 14:33:19 +03:00
Laurent Cheylus
1f11b2b99c
ci: use FreeBSD version 14.3 after the bump of cross-platform-actions/action to 0.29.0 (#24953) 2025-07-23 13:25:47 +03:00
Mike
864e68527b
slow_tests: fix crash on clang for asm_test.amd64.v (#24954) 2025-07-23 13:24:24 +03:00
Delyan Angelov
f2fe971369
make.bat: add /F 16777216 option to cl.exe, to fix msvc v.exe bootstrapping 2025-07-23 12:57:56 +03:00
Felipe Pena
ae1fa8aced
markused: skip unused symbols, dump fns and generic specialization (fix #24921) (fix #24927) (#24924) 2025-07-23 08:50:31 +03:00
dependabot[bot]
938f462daf
ci: bump cross-platform-actions/action from 0.28.0 to 0.29.0 (#24952) 2025-07-23 08:38:36 +03:00
Krchi
708c73b4ea
cgen: fix const fixed array with type alias (fix #24936) (#24946) 2025-07-22 17:52:00 +03:00
Delyan Angelov
810a90efa6
ci: add a watchdog timer thread to ringbuffer_test.v, to make sure the program exits in a reasonable time (~10s). Let the test be retried 2 times in a row if it fails. 2025-07-22 12:48:29 +03:00
Delyan Angelov
9f0094b0b4
ci: skip ringbuffer_test.v in the tcc-windows and msvc-windows jobs too, to avoid flakyness for unrelated commits/PRs. 2025-07-22 12:39:14 +03:00
Delyan Angelov
4205697d88
fmt: fix if x := g() { x } else { return } adding newline after return (fix #24908) (#24945) 2025-07-22 11:45:59 +03:00