18119 Commits

Author SHA1 Message Date
Delyan Angelov
3f8e92bc6d
examples: make draw_static_text.v show the font name too, for easier comparisons 2024-08-22 12:38:42 +03:00
Delyan Angelov
e6b8162bfa
examples: add examples/ttf_font/draw_static_text.v, to make it easier to test x.ttf with different fonts, and texts 2024-08-22 11:59:49 +03:00
Delyan Angelov
75d65a005e
ci, checker, pref: extract .github/workflows/run_sanitizers.sh to ease local testing with different options 2024-08-21 13:18:21 +03:00
Delyan Angelov
0117c7f30b
ci,ast: fix errors with -fsanitize=thread after 7d81633 2024-08-21 10:19:17 +03:00
yuyi
fdc3a9c11c
builtin,fmt: cleanup alignment using string.repeat() instead of strings.repeat() (#22087) 2024-08-21 09:18:10 +03:00
Delyan Angelov
a98a0290a0
tools: use separate .autofuzz.log files too for the separate invocations of fuzz_v_parser_with_radamsa.sh 2024-08-20 22:16:52 +03:00
Delyan Angelov
a23ebcba97
tools: allow passing parameters to fuzz_v_parser_with_radamsa.sh, so that it could be run in several processes from the same folder 2024-08-20 22:07:09 +03:00
Delyan Angelov
7d81633912 ast: protect against too deep recursion in Expr.pos() calls 2024-08-20 19:52:50 +03:00
Delyan Angelov
911428cd5f
parser: fix another panic, affecting recast_as_pointer (discovered by fuzzing with radamsa) 2024-08-20 19:15:29 +03:00
Delyan Angelov
60a8468dde
parser: fix another parser panic, discovered through fuzzing with radamsa 2024-08-20 18:48:13 +03:00
Delyan Angelov
6dbf9c9155
parser: fix more edge case panics on fuzzed V source code in vlib/v/parser/testdata/silent/ 2024-08-20 16:11:59 +03:00
Delyan Angelov
c92577e6ed
parser,scanner,ast: make the scanner and parser more robust, by implementing more limits (preventing panics, discovered by fuzzing) 2024-08-20 15:15:24 +03:00
yuyi
50457647de
tests: add like_operator_outside_orm_error.vv/.out (related #22075) (#22079) 2024-08-20 13:58:07 +03:00
Felipe Pena
cf0fb835e0
cgen,checker: fix map generic fn arg passing (#22071) 2024-08-20 03:40:37 +03:00
Carlos Esquerdo Bernat
8afadfc605
bechmark: add min, max & avg to recorded measurements (#22078) 2024-08-19 23:04:01 +03:00
Felipe Pena
e7c2295f64
cgen: fix free method for option fields (#22070) 2024-08-19 17:25:07 +03:00
yuyi
fbc34741cc
parser: check fn call args without comma between them (related #22021) (#22075) 2024-08-19 17:16:04 +03:00
Carlos Esquerdo Bernat
4188deb96d
x.json2: support @[skip] as well (#22077) 2024-08-19 15:49:31 +03:00
Carlos Esquerdo Bernat
c8dc145468
arrays: simplify arrays.sum and arrays.reduce (#22076) 2024-08-19 15:32:50 +03:00
Delyan Angelov
3965a6c54f
docs: streamline the installation instructions and notes for Windows and Ubuntu weekly.2024.34 2024-08-18 21:17:54 +03:00
Delyan Angelov
18eee344f3
cgen: fix typo (build-essentials -> build-essential) in error messages 2024-08-18 21:04:22 +03:00
Alexander Medvednikov
ae1b9ed571 veb: deprecate x.vweb in favor of veb; checker: show missing variants in the sumtype error 2024-08-18 17:27:08 +03:00
Swastik Baranwal
ceac4baf87
checker: add infix checks for nil (#22045) 2024-08-18 16:15:05 +03:00
Delyan Angelov
acf04a270c
eval: fix ./v interpret examples/hanoi.v 2024-08-17 20:56:40 +03:00
Felipe Pena
d58cd9c672
checker: add error when initializing sumtype with struct as first type (#22067) 2024-08-17 18:16:21 +03:00
Felipe Pena
76d37f6595
cgen: fix for loop with array fixed returned from fn (#22069) 2024-08-17 17:02:38 +03:00
yuyi
e9c9580370
all: remove the obsolete .code and .msg fields of IError (#22066) 2024-08-17 14:34:42 +03:00
yuyi
ee16f6f094
builtin: cleanup interface IError, remove the obsolete .code and .msg fields, deprecated in 2022-02-11 (#22063) 2024-08-17 09:53:46 +03:00
Mike Ward
8210593349
docs: clarify the .precision specification section for string interpolation of floats (#22061) 2024-08-16 21:21:25 +03:00
Felipe Pena
4940f2d41c
v: define a default sumtype value (based on the first variant type) (#22039) 2024-08-16 21:07:57 +03:00
Felipe Pena
310c09f746
cgen: fix fixed array with default init (#22059) 2024-08-16 19:06:12 +03:00
Felipe Pena
ca916afc71
cgen: fix free method generation for option struct (#22060) 2024-08-16 19:02:06 +03:00
yuyi
cb58db56ef
all: change empty comment to newline (#22053) 2024-08-16 12:09:30 +03:00
yuyi
38e23a76f3
fmt: fix interface fields/methods alignment (#22055) 2024-08-16 11:35:53 +03:00
Hitalo Souza
384b5c466f
x.json2.decode2: add another internal test (#22050) 2024-08-16 02:25:02 +03:00
Roman
eb314c93a2
crypto: add a crypto.pbkdf2 module (#22047) 2024-08-15 20:01:06 +03:00
yuyi
4bce71e12f
fmt: fix enum/struct_decl/struct_init fields with empty newlines (#22051) 2024-08-15 17:28:52 +03:00
Delyan Angelov
a7e733538e
tools: colorise the output of cmd/tools/show_ancient_deprecations.v, reduce false positives (#22048) 2024-08-15 11:39:41 +03:00
yuyi
f879368466
fmt: fix interface fields or methods with empty newlines (#22046) 2024-08-15 08:51:06 +03:00
Delyan Angelov
b3938e3e47
table,checker: improve -d trace_checker and error diagnostic information on compiler panics 2024-08-15 08:17:52 +03:00
larpon
21339fe167
flag: fix assigning to @[tail] field when no fields has been matched yet in flag.parse[T]() (#22043) 2024-08-13 20:47:57 +03:00
larpon
198d4f49ef
tools: add a few missing v command entries and their flags in v complete (#22041) 2024-08-13 18:14:42 +03:00
Delyan Angelov
e862aa004d
tools: support a -fix option in v check-md file.v to make usage easier on Windows. Add an usage hint on formatting errors. 2024-08-13 18:05:37 +03:00
yuyi
f52a62b2c6
fmt: keep empty newlines in between interface fields/methods (#22040) 2024-08-13 16:45:45 +03:00
Hitalo Souza
e16d727da1
x.json2.decoder2: rename fields, add more comments (#22037) 2024-08-12 16:08:24 +03:00
Carlos Esquerdo Bernat
e8305d240c
docs: update old [tag] -> @[tag] (#22036) weekly.2024.33 2024-08-12 14:31:03 +03:00
yuyi
c69dfefedb
fmt: cleanup fields comments alignment and add ignore_newline config (#22027) 2024-08-12 10:56:32 +03:00
Kim Shrier
ac3045b472
tools: add an amalgamate tool and description of usage (#22034) 2024-08-12 10:51:08 +03:00
Kim Shrier
95ff9340ea
flag: add custom value descriptions for bool, int, and float flags too (#22032) 2024-08-12 01:13:27 +03:00
Kim Shrier
42d99ba872
tools: sort the match results in the vwhere test, to make it less flaky (#22033) 2024-08-12 01:11:21 +03:00