1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

12562 Commits

Author SHA1 Message Date
381cf4b61d ci: bump retries to 3, for flaky vlib/v/tests/go_array_wait_test.v 2022-03-21 21:47:01 +02:00
c0437afbcd cgen: fix error for casting int to interface (#13790) 2022-03-21 21:18:11 +02:00
9ad64b0bd8 vweb: support -d trace_request and -d trace_response 2022-03-21 19:48:47 +02:00
178afd006b examples: avoid flash of unstyled content in the vweb_assets example 2022-03-21 19:13:53 +02:00
3bae489e35 examples: make the vweb_assets.v example more robust (always change work folder to the folder of the executable). Document the vweb.Context.handle_static behaviour. 2022-03-21 19:05:18 +02:00
f2e0ab5912 docs: add formatting example for "[${10.0000:.2f}]" 2022-03-21 14:42:18 +02:00
5815ab8d00 cgen: minor cleanup in index.v (#13788) weekly.2022.12 2022-03-21 13:10:10 +02:00
81bb1ea71f tests: cleanup go_anon_fn_variable_call_test.v (#13786) 2022-03-21 13:04:43 +02:00
f5036629ca cgen: add true and false to C reserved words (#13781) 2022-03-21 11:00:30 +02:00
d9cca53bd0 checker: check error for index of optional (#13785) 2022-03-21 10:17:57 +02:00
21e9b1deb0 ci: fix -usecache failure on macos 2022-03-21 08:52:25 +02:00
80c94ea73e cgen: fix c2v consts in .o files 2022-03-21 04:56:37 +03:00
c4b424717c cgen: fix error for map get anon fn value (#13782) 2022-03-21 00:20:55 +02:00
aaf87e04a2 tools: make the mini greeting text in the REPL more informative 2022-03-20 23:22:46 +02:00
7216b5df11 tools: force showing V errors in color in interactive REPLs 2022-03-20 23:04:20 +02:00
caa0e25939 cgen: fix struct type dependency sorting, when struct field types, are aliases to struct types from other modules (#13779) 2022-03-20 20:23:48 +02:00
71edaa071a builtin: use malloc, instead of calloc in array.ensure_cap/1 2022-03-20 15:08:42 +02:00
0a78847782 checker: check error for unknown type in anon fn field of struct (#13778) 2022-03-20 13:28:35 +02:00
8c3687aa10 checker: check error for struct field init with nobody anon fn (#13777) 2022-03-20 13:04:31 +02:00
8ab0bcb6aa Revert "builtin: improve performance for common array ops, based on VTune analysis"
This reverts commit 57db261538.
2022-03-20 12:57:27 +02:00
57db261538 builtin: improve performance for common array ops, based on VTune analysis 2022-03-20 12:42:04 +02:00
3e40cd5baa ast, checker, cgen: fix error for go anon fn variable call (#13776) 2022-03-20 07:45:23 +02:00
c05634ebd1 ci: fix sanitize job failures after 02b889d 2022-03-19 21:45:58 +02:00
02b889dac3 cgen: generate smaller switch statements for sumtypes/enums with else{} 2022-03-19 21:12:27 +02:00
eb7c9cec3d parser: short circuit if conditions in Parser.name_expr 2022-03-19 20:31:03 +02:00
4dd68d3965 ast: small cleanup of using simple string interpolation in a string builder .write_string/1 parameter 2022-03-19 17:25:53 +02:00
0cc63107ff cgen: fix duplicate auto generation of free methods, add test 2022-03-19 01:01:08 +02:00
ee6b23c2a7 toml: use toml.parse_text and toml.parse_file in the tests 2022-03-18 23:32:06 +02:00
5237d1d446 cgen: fix error for empty interface (#13764) 2022-03-18 22:41:06 +02:00
156efec278 toml: deprecate input.auto_config() and toml.parse() (#13770) 2022-03-18 22:33:51 +02:00
3e41be1ff4 checker: minor cleanup in check_or_last_stmt() (#13763) 2022-03-18 22:27:53 +02:00
1734e72638 v.vmod: make the v.mod parser more robust, show line numbers in errors, add tests 2022-03-18 22:23:11 +02:00
5f79fa8a30 checker: handle invalid smartcast with if/match none ident or selector (fix #12317) (#13762) 2022-03-18 17:50:54 +03:00
f903ef24e8 cgen: simplify slicing fixed array (#13767) 2022-03-18 17:50:30 +03:00
bb2ddb98a3 parser: check if guard condition (#13765) 2022-03-18 17:49:20 +03:00
54b0a2aa62 toml: fix toml.scanner.new_simple/1 to *always* create a scanner, based on text, not a file path 2022-03-18 16:14:44 +02:00
0ca87ad09f parser: fix small performance regression after 1d83ab6b (by avoiding needless interpolation in hot paths) 2022-03-18 12:52:03 +02:00
236bcda549 tools: speedup v fmt -verify when there are no file differences, avoiding diff.color_compare_files 2022-03-18 12:15:55 +02:00
817bedec5d checker: show available sumtype variants in match branches on typos 2022-03-18 11:50:28 +02:00
00563a130d cgen: fix double evaluation of rvalue array expression in slice (#13737) 2022-03-18 11:43:15 +02:00
d87b5d40b6 docs: add installation-issues discussion in README (#13761) 2022-03-18 11:32:56 +02:00
8a2d3f6470 strings: add a Builder.ensure_cap() method (#13755) 2022-03-18 10:36:53 +02:00
136f39a2d4 cgen: cleanup in if_expr() (#13754) 2022-03-17 01:09:49 +02:00
7a4715288c checker: make the errors for call expression shared/mut mismatches more detailed 2022-03-16 22:45:35 +02:00
7f62346213 cgen: fix error for if expr returning sumtype (#13752) 2022-03-16 15:43:17 +02:00
315e07abf6 checker: minor cleanup in match_expr() (#13753) 2022-03-16 15:39:57 +02:00
33167960ed checker: check the sumtype mismatch returned by match expr (#13751) 2022-03-16 09:31:38 +02:00
57cba4d3f0 ast: minor cleanup in is_blank_ident() (#13748) 2022-03-16 09:30:37 +02:00
089c93b613 x: add a mostly empty vlib/x/x.v file, to workaround a v doc bug
The bug is that `v doc` ignores README.md in a folder without .v files,
leading to tree nodes with empty # links and no content.
2022-03-15 20:19:39 +02:00
49155ec312 parser: notice unnecessary parenthesis of reference (fix #11179) (#13739) 2022-03-15 16:11:53 +02:00