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

1417 Commits

Author SHA1 Message Date
Uwe Krüger
787a63dab6
cgen: execute defer block *after* return expression is evaluated (#9893) 2021-04-27 01:42:16 +03:00
Enzo
4eb8072882
parser: remove ++/-- exception for some modules (#9895) 2021-04-27 01:41:42 +03:00
Lukas Neubert
181b0f1035
parser: improve error message for missing db expr in ORM (#9890) 2021-04-26 19:51:51 +03:00
yuyi
212b4fa089
parser: implement infering generic type parameters from receiver types (fix #5862) (#9870) 2021-04-26 10:56:08 +03:00
spaceface
9d68f924c3
parser: don't disallow closures in the JS backend (#9884) 2021-04-26 10:00:39 +03:00
spaceface
7acb48df83
parser: parse JS. interfaces properly (#9876) 2021-04-26 09:58:05 +03:00
Uwe Krüger
3c0a368af3
all: automatically move (some) referenced objects to heap (#9873) 2021-04-25 21:40:38 +03:00
Louis Schmieder
fc3b628440
v: support $for attr in Test.attributes (#9836) 2021-04-25 18:29:26 +03:00
yuyi
8ccdae6188
all: cleanup generics call_expr (#9856) 2021-04-24 09:44:15 +03:00
Enzo
af8ef12990
ast: use AttrKind (#9845) 2021-04-23 15:51:52 +03:00
yuyi
dd2002cc57
cgen: fix generics with multi generics struct receiver (#9853) 2021-04-23 15:17:57 +03:00
Alexander Medvednikov
c7a6d28e13 all: improve unused variable warning (fix x = 1, x += 1 etc) 2021-04-23 13:33:48 +03:00
Lukas Neubert
aa40dfc1de
checker: check __global type (#9804) 2021-04-23 12:28:08 +03:00
Louis Schmieder
c026d8b6f3
parser: number attributes (#9835) 2021-04-22 18:21:55 +03:00
yuyi
431d806dcf
ast, parser: cleanup of generic structs (#9839) 2021-04-22 18:21:01 +03:00
yuyi
51258923d7
checker: fix generics call with reference arg (fix #9817 #9818) (#9830) 2021-04-21 06:40:11 +03:00
yuyi
953057ef35
parser: check generic receiver method decl has no generic names (fix parts of #9811) (#9819) 2021-04-20 21:38:17 +03:00
Lukas Neubert
2df260acbb
parser: fix last_line of no body C struct (#9809) 2021-04-20 21:37:00 +03:00
Delyan Angelov
d4f31412b7
v: deprecate @VROOT in favour of @VMODROOT (#9795) 2021-04-19 19:01:47 +03:00
Lukas Neubert
70c651ff17
all: make __global behave consistent with const (#9711) 2021-04-19 17:07:47 +03:00
spaceface
73352583e7
ci: fix all -cstrict warnings with gcc and clang (#9792) 2021-04-19 15:38:48 +03:00
yuyi
3158617ce2
parser: simplify parse_generic_struct_inst_type() (#9801) 2021-04-19 14:47:39 +03:00
涂紳騰(Shen-Teng Tu)
3c72c6abc2
parser: disable template variables in <style> (#9777) 2021-04-17 15:47:36 +03:00
Uwe Krüger
1b0f099552
parser: fix handling of - inside array literals (#9771) 2021-04-17 02:37:17 +03:00
涂紳騰(Shen-Teng Tu)
d9fdae1de9
parser: escape js template literal syntax inside <script> tags (#9738) 2021-04-15 12:39:39 +03:00
yuyi
466dc4540b
all: minor cleanup of generics (#9744) 2021-04-15 11:00:23 +03:00
yuyi
1250ce4353
cgen: fix generics with embed generics (fix #8694) (#9724) 2021-04-15 01:44:11 +02:00
Lukas Neubert
f4c8f897fe
parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
crthpl
0099458c0a
all: small asm fixes and number labels (#9730) 2021-04-15 01:30:23 +02:00
crthpl
14434cc86a
all: bare metal support (fix -freestanding) (#9624) 2021-04-14 07:50:50 +02:00
Delyan Angelov
68c3eccec5
v: skip asserts in -prod mode inside non _test.v files 2021-04-13 13:07:57 +03:00
Lukas Neubert
b2c16ced57
parser: filter out vet space indent errors inside StringInterLiterals (#9695) 2021-04-12 16:03:22 +03:00
Louis Schmieder
67d8639917
orm: add unique fields & add drop table stmt (#9684) 2021-04-11 23:57:25 +02:00
Enzo
5a1a1b7c12
all: merge GoExpr and GoStmt (#9685) 2021-04-11 23:56:25 +02:00
yuyi
a2a18ef92c
v: simplify handling of function generic parameters (#9673) 2021-04-11 09:02:57 +03:00
Ned Palacios
6948419595
parser: fix InterfaceDecl's position (#9649) 2021-04-09 17:18:22 +02:00
Ned Palacios
a706215e52
ast, parser: add type_pos to TypeDecl nodes (#9571) 2021-04-09 14:51:25 +03:00
Lukas Neubert
46e7e27ba3
v vet: give an error for trailing whitespace (#9574) 2021-04-09 13:22:14 +03:00
Uwe Krüger
84fa1ae444
boehm-gc: support a [keep_args_alive] tag for C functions (#9641) 2021-04-09 13:13:49 +03:00
zakuro
e6a67e7172
parser: fix error of -foo.bar() (#9646) 2021-04-09 10:54:03 +03:00
Delyan Angelov
de5cf4ac5e
v: show the number of processed bytes and lines for V source code with -stats 2021-04-07 18:12:27 +03:00
Louis Schmieder
ab03357a6e
orm: add table creation (#9621) 2021-04-07 15:27:02 +02:00
crthpl
018a88c3ce
parser: asm: add support for memory clobbers (#9618) 2021-04-06 21:25:24 +02:00
涂紳騰(Shen-Teng Tu)
7d5c1c2ddb
tmpl: inline styles with attributes (#9605) 2021-04-06 15:17:40 +02:00
Lukas Neubert
a0648a3ec2
all: fixes related to Node.pos (#9613) 2021-04-06 15:16:19 +02:00
Ned Palacios
07b1dc66dd
ast, parser: add additional pos info for FnDecl and InterfaceDecl nodes (#9603) 2021-04-05 18:14:21 +03:00
Alexander Medvednikov
ed37512ea9 ci: run wkhtmltopdf only on linux again 2021-04-05 07:55:32 +03:00
Lukas Neubert
094441c863
vet: remove false positive space indent errors inside strings (#9568) 2021-04-03 12:16:49 +02:00
Daniel Däschle
6a5f49afb1
all: support ?Type(none) (#9567) 2021-04-02 16:34:48 +02:00
Lukas Neubert
e438b158a6
vet: remove false positive space indentation error inside block comments (#9565) 2021-04-02 16:26:53 +02:00