Commit Graph

8783 Commits (41a3b115a16c228213bc93d76705d22c02769306)

Author SHA1 Message Date
Rémi Garde 41a3b115a1
gen1m.v: update generated code (#8888) 2021-02-22 14:51:00 +02:00
Nick Treleaven 59446d7051
cgen: use `(void)` parameter list instead of `()` for type safety (#8898) 2021-02-22 14:48:32 +02:00
zakuro f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
Thomas Treffner 36a6bc270c
v symlink: fix for termux (#8896) 2021-02-22 13:08:41 +02:00
Lukas Neubert 9dc770e29c
fmt: do not struggle with comments inside maps (#8897) 2021-02-22 13:04:48 +02:00
Delyan Angelov 5d653a37b6
os: make process_test.v more portable (prepare for windows) 2021-02-22 09:42:00 +02:00
Delyan Angelov c37daba41d
ci: fix the remaining obsolete reference to time.sleep and time.usleep 2021-02-22 09:12:23 +02:00
Delyan Angelov da05c7ed1a
ci: fix a deprecation time.sleep warning in `clipboard` 2021-02-22 09:00:30 +02:00
Delyan Angelov 9ab291319c
builder: fix thirdparty object files compilation with tcc (no -lxyz with -c) 2021-02-22 08:18:24 +02:00
Lukas Neubert f18adf7759
parser,fmt: handle array pre-comments separately from exprs (#8884) 2021-02-21 20:18:19 +02:00
Lukas Neubert 18e88d2fc8
test-cleancode: add more of vlib/v (#8882) 2021-02-21 20:17:12 +02:00
Louis Schmieder 7a35131721
vweb: add handle static root & documentation (#8865) 2021-02-21 20:01:29 +02:00
Delyan Angelov 0ccd9f9c6e
ci: add match_in_map_init_test.v to skip_with_asan_compiler and skip_with_fsanitize_address in `v test-self` 2021-02-21 19:56:17 +02:00
yuyi 1a838b1f43
checker: fix error of match in map_init (fix #8579) (#8879) 2021-02-21 17:09:42 +02:00
zakuro ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
Delyan Angelov b1209aac1b
ci: fix building of vlib/x/websocket/websocket_test.v 2021-02-21 17:03:25 +02:00
Delyan Angelov 07df2d3484
ci: fix missing `jobs:` in websockets.yml 2021-02-21 16:42:09 +02:00
Delyan Angelov 772baa74f1
ci: shorten the new job name to just autobahn_tests 2021-02-21 16:38:46 +02:00
Delyan Angelov f2ce72c2bf
ci: split the websockets tests into their own CI .yml file 2021-02-21 16:35:27 +02:00
Lukas Neubert cfe9f6d5d3
help: remove http doc server options (#8839) 2021-02-21 16:18:50 +02:00
zakuro 95e5f68b64
cli: don't sort flags / commands by default (#8813) 2021-02-21 16:17:50 +02:00
ka-weihe 1039d39846
ci: test-self with address sanitized compiler (#8866) 2021-02-21 16:09:19 +02:00
spaceface 260f677469
term.ui: use the new `[flag]` enums (#8881) 2021-02-21 16:07:49 +02:00
Joe Conigliaro 0470baafa6
cgen: fix duplicate optional generation for struct field 2021-02-22 00:00:39 +11:00
Delyan Angelov 514cabd7c8
strings: cleanup strings builder, allow reusing it 2021-02-21 13:34:29 +02:00
yuyi 6e46f3850c
ast: change `expr.is_mut_ident()` to `expr.is_auto_deref_var()` (#8869) 2021-02-21 12:15:36 +02:00
zakuro 7928689ee2
parser: set is_public when registering enum type symbols (#8875) 2021-02-21 12:13:52 +02:00
Ben-Fields b9edc4a414
docs: document the `[console]` attribute (#8870)
Document the [console] attribute in docs.md.

Co-authored-by: Ben-Fields <>
2021-02-21 11:56:34 +02:00
yuyi 9a744b6750
cgen: fix in map_literal (fix #8868) (#8871) 2021-02-21 11:54:30 +02:00
Ben-Fields 3907a1ab49
docs: document enum <-> int assignment and casting (#8872) 2021-02-21 11:54:13 +02:00
Ben-Fields cb7c5d58d9
docs: add a unions section (#8873) 2021-02-21 11:51:34 +02:00
yuyi e106dc3ad5
cgen: fix match_return with complex expr stmts (#8876) 2021-02-21 11:47:46 +02:00
Stanislav Ershov 44177c4e7c
builder: use stable MSVC version instead preview (#8867) 2021-02-21 00:00:44 +02:00
Nicolas Sauzede f67a4c3ee0
checker, cgen: allow | between bitfield enum values, autogenerate a more specific .str method for them too (#8856) 2021-02-20 21:51:54 +02:00
penguindark cc565b22a9
regex: remove [deprecated] functions/methods, code clean, add test for regex_base (#8862) 2021-02-20 21:39:08 +02:00
yuyi 8f486cb8cf
ast: minor cleanup of ast.v (#8859) 2021-02-20 20:50:43 +02:00
Stanislav Ershov c190b6a131
vlib: remove older deprecated functions (#8864) 2021-02-20 20:42:55 +02:00
Stanislav Ershov 30ed201600
cgen: cleanup header for MSVC (#8863) 2021-02-20 20:39:46 +02:00
Delyan Angelov 746dfe6317
ci: make vweb and websocket tests more robust to transient errors 2021-02-20 20:24:21 +02:00
Nick Treleaven 28088cc494
checker: check fixed array index when it's a literal (#8831) 2021-02-20 20:18:47 +02:00
Delyan Angelov 5a333b0fdc
gen,parser: allow enums as map keys 2021-02-20 19:39:25 +02:00
Nick Treleaven 1e71c0eaca
checker: warn for deprecated methods too (#8861) 2021-02-20 19:25:54 +02:00
Wink Saville 5243c5adce
doc: update the cross-platform shell scripts section (#8791) 2021-02-20 18:55:24 +02:00
spaceface adf2aa8760
pref: add a `-debug-tcc` alias option (#8834) 2021-02-20 18:53:22 +02:00
spaceface cc3fd5333b
builder: print tcc output, when the system C compiler also failed (#8835) 2021-02-20 18:52:54 +02:00
yuyi c704a49283
parser: fix error of $tmpl in anon_fn (fix #8847) (#8849) 2021-02-20 18:51:08 +02:00
Delyan Angelov 8327c9afc1
checker: support a custom `[deprecated: 'message']` 2021-02-20 17:35:44 +02:00
Stanislav Ershov 44cb0426f4
cli: fix checking callbacks (#8858) 2021-02-20 17:30:39 +02:00
Lukas Neubert a86bf3254a
fmt: keep empty line between if statement and comment (#8846) 2021-02-20 16:05:05 +02:00
Lukas Neubert 901aa83e65
vdoc: hide README toc entry without readme (#8841) 2021-02-20 16:03:10 +02:00