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

1361 Commits

Author SHA1 Message Date
yuyi
cb7be87d4e parser: fix struct init and assign using sql variable (#10968) 2021-07-26 21:14:31 +03:00
zakuro
3979e5c5ff v.parser: show better position for sort struct init warning (#10939) 2021-07-24 20:41:59 +03:00
Uwe Krüger
1e5627e777 parser: don't require unary > prefix for select timeout (#10928) 2021-07-23 23:24:27 +03:00
shadow
fe5e3c452f parser: disable generic type aliases (#10917) 2021-07-23 01:17:16 +03:00
Lukas Neubert
38100faecf fmt, parser: fix pos.last_line for assembly blocks (#10877) 2021-07-21 11:48:12 +03:00
Daniel Däschle
ad3835b598 parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
Daniel Däschle
9127e202d5 v.parser: fix error on empty name expr (#10860) 2021-07-19 17:09:51 +03:00
playX
425ca5e3c3 v.gen.js: add three backend options for JS, and comptime if support (#10859) 2021-07-19 15:55:03 +03:00
yuyi
a5c784830b all: simplify global_scope processing (#10848) 2021-07-18 15:29:34 +03:00
Delyan Angelov
6edfb2c7fe v.parser: eliminate PrefixExpr from &Type(x).name and &Type(x)[idx] too (fix vinix build) 2021-07-17 20:20:20 +03:00
Delyan Angelov
fc8a8e3b6f ci: fix failure for function_stored_in_global.vv 2021-07-17 18:19:20 +03:00
Delyan Angelov
568aa742b2 v.parser: improve conditions for debugging ast.CastExpr parsing 2021-07-17 17:49:29 +03:00
yuyi
3a0fa550b6 checker: fix generics fn inferring map type (fix #10835) (#10839) 2021-07-17 17:49:21 +03:00
yuyi
fe64346ae2 parser: minor optimization of array filtering judgement (#10821) 2021-07-16 12:00:37 +03:00
yuyi
aca66d503d parser: minor optimization in call_expr() (#10809) 2021-07-15 17:47:59 +03:00
spaceface
6e942bf4c2 v: initial support for generic interfaces and sumtypes (#10795) 2021-07-15 08:29:13 +03:00
Delyan Angelov
bd0653abab parser: cleanup &Type(x) more, add fmt regression test 2021-07-13 13:12:37 +03:00
crthpl
5089eb4a84 parser: fix pointer cast expressions hack (#10777) 2021-07-13 12:01:24 +03:00
shadowninja55
d1f1c5ae51 v doc: add attribute tags to v doc -f html (#10778) 2021-07-13 08:27:20 +03:00
yuyi
581280e6fc parser: cleanup check_cross_variables() (#10754) 2021-07-12 12:10:42 +03:00
yuyi
938e9b61b5 parser: check undefined variables in assign_stmt (#10755) 2021-07-11 19:09:35 +03:00
yuyi
71e8237483 parser: check undefined variables in array inits (#10746) 2021-07-11 03:49:07 +03:00
Louis Schmieder
eb96ad11d9 checker: add pkgconfig to comptime if (#10692) 2021-07-09 18:17:04 +03:00
crthpl
d14de5fdaf all: fix generic functions with pointer args (#10686) 2021-07-07 11:51:05 +03:00
Alexander Medvednikov
0f72bc9819 parser: temporary [c2v_variadic] fn attr for c2v'ed code 2021-07-05 11:32:15 +03:00
Delyan Angelov
972542d6ee checker: [noreturn] part 2 (cleanup) (#10667) 2021-07-05 05:05:37 +03:00
Delyan Angelov
6aecda3be8 all: support [noreturn] fn abc() { for{} }, mark panic/1 and exit/1with it too. (#10654) 2021-07-04 20:24:19 +03:00
yuyi
2bcc733ff6 v.parser: rename pratt.v to expr.v (#10566) 2021-06-28 19:35:06 +03:00
shadowninja55
06a6a8e199 checker: check for empty branches in match expressions (#10593) 2021-06-28 19:32:28 +03:00
shadowninja55
2e5ed08558 v.parser: allow anonymous function to return a function (#10592) 2021-06-28 11:51:24 +03:00
shadowninja55
830cf4645c v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
shadowninja55
9b84faad6f v.parser: prohibit redeclaration of imported functions (#10564) 2021-06-25 14:27:58 +03:00
shadowninja55
be8be3d319 v.parser: prohibit redeclaration of builtin types (#10563) 2021-06-25 13:08:56 +03:00
crthpl
500b48788e parser, cgen: fix basic asm registers, fix numbered labels in addressing, support indirect branching (#10545) 2021-06-23 14:20:07 +03:00
Yuriy Zymlex
6736817bba parser: fix rewind_scanner_to_current_token_in_new_mode (#10495) 2021-06-22 20:17:36 +03:00
Delyan Angelov
79df7f51c3 v: deprecate [if ident] in favour of [if ident ?] 2021-06-22 10:30:14 +03:00
Uwe Krüger
f32a76b268 all: promote value type function arguments to heap if necessary (#10528) 2021-06-20 18:40:24 +03:00
Delyan Angelov
d56ae2d508 v.fmt: keep comments after struct embeds 2021-06-18 18:42:05 +03:00
Delyan Angelov
9f6ddb4c21 v.fmt: add an independent Comment.is_inline flag. Use it for fixing [ .. //x ] => [ .. //x, ] 2021-06-18 15:52:31 +03:00
crthpl
4abb1a8b7b cgen: fix unknown labels in addressing (#10503) 2021-06-18 13:03:38 +03:00
crthpl
4688c75389 cgen, parser: fix several assembly bugs (#10498) 2021-06-18 01:20:46 +03:00
Delyan Angelov
39e7290416 v: support for [if expr], part 2 (old [if ident] is not yet deprecated) 2021-06-17 18:55:20 +03:00
yuyi
c58b04bcbf checker: implement if smartcast multi conds (part 2) (#10487) 2021-06-17 12:27:31 +03:00
Delyan Angelov
c2a7a84c72 v.parser: support for [if expr], part 1
Enables bootstrapping.
Supports the new [if x?] syntax, without using it.
2021-06-17 10:31:44 +03:00
Emily Hudson
535dcac8fa net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904) 2021-06-13 23:53:38 +03:00
Uwe Krüger
2ac39d9112 all: new function isreftype(T) to know if T contains pointers (#10438) 2021-06-13 06:26:13 +03:00
Uwe Krüger
6acf32b869 v.parser: prepare for splitting of map.v (#10432) 2021-06-12 17:01:37 +03:00
Uwe Krüger
daeeaef030 vfmt: hot fix to allow separate array_d_gcboehm_opt.v (#10413) 2021-06-11 12:00:18 +03:00
crthpl
6576d876fc cgen: support a [_naked] fn attribute (#10418) 2021-06-11 11:03:39 +03:00
Delyan Angelov
3dc4d13160 v.parser: do not treat test_ functions specially outside of _test.v files 2021-06-08 23:01:49 +03:00