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
Ned Palacios
1bb48c3577
ast, parser: patches for VLS ( #9562 )
2021-04-02 16:26:37 +02:00
Alexander Medvednikov
7385f8e56b
all: a massive merge of ast and table modules
2021-04-02 01:57:09 +03:00
crthpl
8d5e310189
asm: make fixed labels possible as displacement ( #9549 )
2021-04-01 09:58:33 +03:00
Ned Palacios
0b39de2fd3
ast, parser: add syms_pos to import ast ( #9541 )
2021-03-31 12:17:06 +02:00
Alexander Medvednikov
6f318be96c
checker: do not allow nil sum types init
2021-03-31 11:13:52 +03:00
Ned Palacios
3ced970b17
ast, parser: add additional info for CallExpr, StructInit nodes ( #9526 )
2021-03-30 09:43:17 +02:00
Ned Palacios
b319068151
ast, parser: implement simple AST poisoning ( #9525 )
2021-03-30 09:33:29 +02:00
yuyi
36cc4880a6
parser: fix generic fn with upper name type ( #9460 ) ( #9478 )
2021-03-26 16:50:35 +02:00
Delyan Angelov
87494fad1d
parser: allow passing `mut a AliasOfPointerType`
2021-03-26 13:38:16 +02:00
yuyi
478bb9ce8e
parser, checker: fix generic fn that returns a generic struct ( #9469 )
2021-03-26 08:32:11 +02:00
Ned Palacios
b9cbb4f177
scanner: fix eof token position ( #9432 )
2021-03-23 08:51:09 +01:00
Ned Palacios
aa4e22c287
scanner, token: add column information to tokens ( #9407 )
2021-03-23 06:23:46 +01:00
ka-weihe
3753a58ce0
parser: fix if-guard redefinition ( #9425 )
2021-03-23 04:38:36 +01:00
Lukas Neubert
1b572f75e8
fmt: minor array wrap improvement ( #9420 )
2021-03-22 23:06:12 +01:00
Delyan Angelov
a00c80b98f
v: support compiler notices. Use them for `[deprecated_after: '2021-05-01']` tags
...
Compiler notices are like warnings, with these differences:
a) notices use a different color.
b) notices use a different label.
c) notices do not prevent compilation with -prod.
(warnings are converted to errors with -prod)
2021-03-22 19:59:00 +02:00
yuyi
cf6faaf215
parser: fix anon_fn with array arguments ( #9414 )
2021-03-22 03:22:29 +01:00
zakuro
dfd58293ef
parser: fix parse error when using `f<Foo<int> >` ( #9401 )
2021-03-21 13:09:43 +02:00
Delyan Angelov
a386be6505
v.table: correct `table.types` to `table.type_symbols`
2021-03-19 22:51:52 +02:00
Miccah
7222ee476b
all: implement array .any and .all ( #9347 )
2021-03-18 15:24:16 +01:00
yuyi
a6c2c5ba88
parser: minor cleanup in call_args() ( #9344 )
2021-03-18 15:06:48 +02:00
Delyan Angelov
db46ad5481
v.parser: fix `xxx.fncall(map{x: []string{}})` treatment as `[]xxx.string{}`
2021-03-18 11:07:25 +02:00
Lukas Neubert
49eeddcd1c
parser: set correct last line for struct inits ( #9349 )
2021-03-17 20:46:08 +02:00
crthpl
fafb035fb5
all: reimplement inline assembly ( #8645 )
2021-03-17 01:43:17 +01:00
Enzo
4b6244c9c1
gen: fix generic variadic ( #9333 )
2021-03-17 00:18:43 +02:00
Lukas Neubert
05b51c5b01
parser: correctly set pos of sql blocks ( #9334 )
2021-03-16 23:00:50 +02:00
Anton Zavodchikov
1ad4623fb8
tmpl: move to v/parser ( #9052 )
2021-03-15 13:35:55 +02:00
yuyi
e235022e10
cgen: fix error of for_in map_literal ( #9310 )
2021-03-15 12:22:32 +02:00
yuyi
945769a4f6
all: implement reference receiver optimization for big structs ( #9268 )
2021-03-14 18:11:21 +01:00
Delyan Angelov
69f1e7c9c3
v: fixes for `v -autofree -o v2 cmd/v`
2021-03-14 09:37:38 +02:00
Nick Treleaven
9db8a61b92
checker: disallow array append in an expression ( #9265 )
2021-03-12 16:09:01 +01:00
Nick Treleaven
3be78d6777
parser: require anonymous fn to use `_` for unused parameters ( #9262 )
...
Fixes a C error with gcc.
2021-03-12 14:17:37 +02:00
Lukas Neubert
c40ab0db72
fmt: fix removal of attrs with comments afterwards ( #9255 )
2021-03-11 21:44:33 +01:00
Miccah
f26d2f02b7
ast, cgen, checker, parser: support method arguments in comptime $for ( #9208 )
2021-03-11 15:04:34 +02:00
spaceface
7d0cba5e96
v.ast: remove the `stmt.position()` method ( #9233 )
2021-03-11 14:50:02 +02:00
Delyan Angelov
5a231326d7
parser: improve syntax errors in module declarations
2021-03-11 10:42:36 +02:00
spaceface
f1469a8761
checker: allow accessing fields common to all sumtype members ( #9201 )
2021-03-09 19:16:18 +02:00
zakuro
4c3ce97763
parser: fix Enum.value when Enum is an imported symbol ( #9046 )
2021-03-07 16:44:38 +01:00