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

405 Commits

Author SHA1 Message Date
cf230644b6 fmt: enable shared return types (#8614) 2021-02-06 21:25:06 +01:00
9ab1d17cbc fmt: keep __global in struct declarations (#8584) 2021-02-05 16:46:43 +01:00
cf1084105c fmt: allow single line ternary if as function argument (#8486) 2021-02-01 20:08:42 +01:00
d660f2cc6f fmt: insert newline after last HashStmt (#8482) 2021-02-01 14:50:41 +01:00
8755f40430 fmt: keep comments after imports (#8483) 2021-02-01 14:45:08 +01:00
43676330ba fmt: keep braces around @ escaped fields in string interpolation (#8488) 2021-02-01 11:04:57 +02:00
8c70920695 all: add offsetof (#8380) 2021-01-30 12:57:09 +01:00
c0685eeefc parser: add warning for s.$field.name without brackets (#8411) 2021-01-30 12:56:10 +01:00
a044441224 fmt: keep {} in string interpolation for chained CallExprs (#8422) 2021-01-30 11:58:19 +01:00
2774db077d fmt: keep user choice for newlines in match branches (#8418) 2021-01-30 11:57:57 +01:00
391d62bca5 fmt: remove duplicated imports (#8433) 2021-01-30 11:04:36 +02:00
93acc929f7 fmt: keep lines of comments inside an array (#8420) 2021-01-29 20:19:14 +02:00
f5242890b8 fmt: keep multiline selective import (#8412) 2021-01-29 14:48:28 +01:00
e47c13903b fmt: keep newlines between toplevel stmts (#8383) 2021-01-29 12:17:59 +02:00
75d85403a6 fmt: better ternary concat wrapping (#8379) 2021-01-28 11:23:48 +01:00
2007dbc7b5 fmt: put the opening brace on a new line again for infix (#8336) 2021-01-26 11:19:32 +01:00
22847d1ec3 fmt: assert (a == b) -> assert a == b (#8351) 2021-01-26 10:36:21 +01:00
dbaccd4272 vfmt: shorten main.const_name to just const_name 2021-01-25 20:57:33 +02:00
b2f2f387dc fmt: cleanup and expand tests for ternary if (#8333) 2021-01-25 14:22:08 +01:00
997f56a3dc fmt: better newline handling in block comments (#8325) 2021-01-24 22:08:24 +01:00
2238bf9a83 fmt: use new const rule in tests 2021-01-24 10:12:49 +01:00
522eac200f fmt: keep arr << if x {} else {} on a single line (#8289) 2021-01-24 08:02:35 +01:00
8b61891348 fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
500ebf77e4 all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
55efd8309a parser: fix parsing interface methods with varargs (#8229) 2021-01-20 23:15:02 +02:00
129eee346b fmt: keep single empty lines (#8189) 2021-01-19 14:49:40 +01:00
b44c08aff0 fmt: wrap match branch expressions (#8190) 2021-01-19 06:16:42 +01:00
371730f8a8 fmt: correct indent for StructDecl multi line default exprs (#8148) 2021-01-17 05:01:55 +01:00
53941c4a0a fmt: fix if cond break readability (#8132) 2021-01-16 02:12:17 +01:00
f73500f2fe all: add support for the x := $embed_file('v.png') compile time call (#8048) 2021-01-14 16:20:11 +02:00
8a8978fb01 fmt: keep same line comments after arr.sort() in vsh files (#8026) 2021-01-13 20:10:17 +02:00
7458b699d0 fmt: change [1,2,3]!! to [1,2,3]! (#8081) 2021-01-13 08:32:17 +01:00
254df0ca62 fmt: improve string quotes (#8075) 2021-01-13 06:05:27 +01:00
0e490766df fmt: do not move single line block comments to previous line (#8046) 2021-01-13 03:30:24 +01:00
33694665f0 fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
5f95dd54bd builtin: rename any_* -> *_literal - 2. part (#8032) 2021-01-11 22:58:15 +01:00
c1b1ec9005 fmt: keep same line comment in array init (#7980) 2021-01-10 21:06:48 +01:00
2103d9a6c4 fmt: keep new line at both ends of block comment (#8003) 2021-01-10 21:06:29 +01:00
d96a1b8a5f fmt: intelligent newlines for trailing arg syntax (#7748) 2021-01-10 17:39:37 +01:00
a8dd13f086 parser: change array decompose syntax (#7965) 2021-01-09 22:48:23 +01:00
e79695e8fc fmt: keep comments after call_expr in vscript (#7990) 2021-01-09 22:47:33 +01:00
29c2240aef fmt: enable or block for ch <- x (#7969) 2021-01-08 21:39:21 +01:00
cbe7740d97 fmt: do not generate import statements for auto imports (#7966) 2021-01-08 17:42:40 +01:00
46a5c487c1 parser,fmt: implement [manualfree] module abc for opting out *all* fns in a given .v from autofree 2021-01-08 17:24:42 +02:00
653121bad9 fmt: test bin2v output formatting (#7926) 2021-01-07 21:36:59 +01:00
eaba21d81a fmt: keep the shebang header in vsh files (#7893) 2021-01-05 16:14:16 +02:00
5841d5d8e1 all: implement basic comptime field selector (#7888) 2021-01-05 16:11:43 +02:00
a7a8e659f6 fmt: keep generic type in method call (#7874) 2021-01-05 01:29:58 +01:00
7c9fb73b3f vfmt: fix comments before ...f in Abc{...f} (#7870) 2021-01-04 21:01:35 +02:00
164d7bf5fb parser: struct updating syntax with Abc{...oldabc newfield: val} (#7865) 2021-01-04 20:19:03 +02:00