Uwe Krüger
|
1e5627e777
|
parser: don't require unary `>` prefix for `select` timeout (#10928)
|
2021-07-23 23:24:27 +03:00 |
Lukas Neubert
|
5e4cbcc1e3
|
fmt: unify struct field align code (#10887)
|
2021-07-23 12:12:09 +03:00 |
Lukas Neubert
|
3cc54d8e81
|
vfmt: split up asm code into more granular methods, add test (#10878)
|
2021-07-23 08:58:06 +03:00 |
Lukas Neubert
|
38100faecf
|
fmt, parser: fix pos.last_line for assembly blocks (#10877)
|
2021-07-21 11:48:12 +03:00 |
Lukas Neubert
|
05d0288e8d
|
fmt: move asm related code into it's own file (#10874)
|
2021-07-20 15:07:15 +03:00 |
Daniel Däschle
|
ad3835b598
|
parser: deprecate short struct init (#10842)
|
2021-07-20 11:17:08 +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 |
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 |
Delyan Angelov
|
974737f26b
|
vfmt: keep `module mymodule ... x := []thread MyStruct{}` as it is
|
2021-07-12 10:46:36 +03:00 |
zakuro
|
cb14e42af8
|
fmt: fix removal of selective imported Enum (#10729)
|
2021-07-10 11:06:01 +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 |
Daniel Däschle
|
3881e97a40
|
vlib: remove ustring usage (#10618)
|
2021-06-30 22:30:28 +03:00 |
Lukas Neubert
|
1492eae27d
|
v.fmt: keep selective type imports used for casting (#10597)
|
2021-06-28 13:21:26 +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 |
Delyan Angelov
|
b6bd6d1d35
|
tests: add cmd/tools/vdoc/tests/vdoc_file_test.v, extract a `v.util.diff` module, cleanup
|
2021-06-22 18:52:34 +03:00 |
Delyan Angelov
|
d56ae2d508
|
v.fmt: keep comments after struct embeds
|
2021-06-18 18:42:05 +03:00 |
Delyan Angelov
|
5dff8dc097
|
v.fmt: keep `[ ... \n 123, // end of line comment \n ... ]` as is
|
2021-06-18 16:43:03 +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 |
yuyi
|
1dca06495d
|
checker: implement if smartcast multi conds (part 1) (#10477)
|
2021-06-16 19:16:15 +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 |
Delyan Angelov
|
000790b112
|
vfmt: fix eating JS. from `JS.Struct{}`
|
2021-06-08 21:27:05 +03:00 |
zakuro
|
4089aa38c5
|
fmt: fix removal of `Abc` in `import mod { Abc }`, where `Abc` is used in a `x as Abc` expression #10306
|
2021-06-03 06:35:54 +03:00 |
zakuro
|
90292ce981
|
fmt: fix removal of `Abc` in `import mod { Abc }`, where Abc is used in a `x is Abc` expression (#10286)
|
2021-05-31 17:35:16 +03:00 |
Delyan Angelov
|
eac1e25c5d
|
strings: simplify Builder (#10263)
|
2021-05-31 14:21:06 +03:00 |
Lukas Neubert
|
ddcc22a778
|
fmt: fix removal of selective imported map key type (#10235)
|
2021-05-28 22:29:03 +03:00 |
Lukas Neubert
|
8a109b031c
|
fmt: minor optimization in call_expr (#10228)
|
2021-05-27 22:40:54 +03:00 |
Lukas Neubert
|
d5cacd1e5f
|
ast: use string builder for StringInterLiteral.str() (#10207)
|
2021-05-27 10:17:51 +03:00 |
Ryan Roden-Corrent
|
306c16f0fa
|
fmt: don't break indexing in string interpolation. (#10195)
|
2021-05-25 07:45:32 +03:00 |
Lukas Neubert
|
79b97fa361
|
fmt: keep names of parameters in anonymus function (#10173)
|
2021-05-23 05:54:39 +03:00 |
Delyan Angelov
|
e512caf8f5
|
vfmt: do not error on `field [fsize]Type`, where `fsize` is from another .v file
|
2021-05-22 16:42:38 +03:00 |
Lukas Neubert
|
788520eb52
|
fmt, ast: fix usage of import aliases (#10151)
|
2021-05-21 20:33:04 +03:00 |
zakuro
|
d8cf26aaba
|
fmt: fix trailing arg formatting (#10155)
|
2021-05-21 06:14:07 +03:00 |
Lukas Neubert
|
be189e0059
|
fmt: keep generics for selective import as fn param (#10138)
|
2021-05-19 21:25:02 +03:00 |
Lukas Neubert
|
9a7acd244d
|
fmt: keep selective struct import when used in orm block (#10124)
|
2021-05-18 12:45:42 +03:00 |
yuyi
|
4d7f15b55b
|
fmt: fix formating cascade generic types call_expr (#10107)
|
2021-05-16 11:53:55 +03:00 |
crthpl
|
4273a9697e
|
parser: add support for flags in asm output constraints (#10103)
|
2021-05-14 12:01:15 +03:00 |
Delyan Angelov
|
c16d4911c2
|
v.checker: deprecate `$if linux_or_macos {` in favor of `$if linux || macos {`
|
2021-05-08 21:00:21 +03:00 |
zakuro
|
8c44873674
|
fmt,parser: prevent unknown module error (#10004)
|
2021-05-05 14:09:30 +03:00 |
Lukas Neubert
|
9e717e02c9
|
parser, fmt: prevent error with comment after expr inside match (#9995)
|
2021-05-04 18:26:10 +03:00 |
Lukas Neubert
|
5b826b2663
|
fmt: keep module alias in interfaces (#9985)
|
2021-05-03 15:07:12 +03:00 |
Delyan Angelov
|
4b818fa2be
|
v: implement interface embedding (#9935)
|
2021-05-02 03:00:47 +03:00 |
Lukas Neubert
|
b406de20df
|
parser, vfmt: multi line comments are not treated as follow-up comments anymore (#9892)
|
2021-04-29 09:48:08 +03:00 |
Lukas Neubert
|
e711e8634e
|
fmt: prevent rare code corruption with array pre comments (#9908)
|
2021-04-29 08:28:44 +03:00 |
Lukas Neubert
|
dee733aae4
|
fmt: reset const field align after multi line exprs (#9916)
|
2021-04-29 02:17:37 +03:00 |
Lukas Neubert
|
a065d014a2
|
fmt: keep constant sizes in struct field fixed array types (#9910)
|
2021-04-28 22:11:15 +03:00 |
Louis Schmieder
|
faf2656335
|
orm: support multiline statements (#9888)
|
2021-04-27 15:28:57 +03:00 |
spaceface
|
7acb48df83
|
parser: parse `JS.` interfaces properly (#9876)
|
2021-04-26 09:58:05 +03:00 |