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

687 Commits

Author SHA1 Message Date
Enzo
5a1a1b7c12
all: merge GoExpr and GoStmt (#9685) 2021-04-11 23:56:25 +02:00
Louis Schmieder
273655ecc8
vfmt: fix asm volatile & goto (#9688) 2021-04-11 23:32:28 +03:00
Ned Palacios
a706215e52
ast, parser: add type_pos to TypeDecl nodes (#9571) 2021-04-09 14:51:25 +03:00
yuyi
690c0309ad
vfmt: fix fn/method that return generic struct (#9638) 2021-04-08 08:24:34 +03:00
Louis Schmieder
ab03357a6e
orm: add table creation (#9621) 2021-04-07 15:27:02 +02:00
Lukas Neubert
3a07fbc653
fmt: improve match branch wrapping (#9619) 2021-04-07 15:26:10 +02:00
Lukas Neubert
1d5ed89138
fmt: remove trailing space in comments (#9620) 2021-04-07 15:25:11 +02:00
Lukas Neubert
a0648a3ec2
all: fixes related to Node.pos (#9613) 2021-04-06 15:16:19 +02:00
Alexander Medvednikov
57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
Lukas Neubert
0eb59cf2bd
fmt: prevent possible trailing whitespace in wrapped infixes (#9573) 2021-04-03 18:30:25 +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
Alexander Medvednikov
6f318be96c checker: do not allow nil sum types init 2021-03-31 11:13:52 +03:00
Ned Palacios
b319068151
ast, parser: implement simple AST poisoning (#9525) 2021-03-30 09:33:29 +02:00
Lukas Neubert
d9240bd983
fmt: remove cur_short_mod (#9486) 2021-03-27 17:29:49 +02:00
Lukas Neubert
cd74273869
fmt: fix import aliases in type declarations (#9483) 2021-03-27 11:33:41 +01:00
zakuro
e76c8d5dc0
fmt: use type_to_str_using_alias instead of type_to_str in struct.v (#9431)
* fmt: use type_to_str_using_alias instead of type_to_str in struct.v

* update test
2021-03-24 20:13:11 +02:00
Delyan Angelov
ae6420afc7
tools: fix substring in s usages, preventing v -W build-tools 2021-03-23 13:36:50 +02:00
Lukas Neubert
1b572f75e8
fmt: minor array wrap improvement (#9420) 2021-03-22 23:06:12 +01:00
Delyan Angelov
4a12546971
cgen,fmt: improve sizeof(), fix type PPType = &&Type 2021-03-19 22:49:46 +02:00
Lukas Neubert
82c4daa4b7
fmt: fail keep test when bin2v_keep preparation step fails (#9361) 2021-03-19 13:13:03 +02:00
Lukas Neubert
f8fcf3ff66
fmt: reorder and sort methods into section (#9363) 2021-03-19 11:26:34 +02:00
Lukas Neubert
49eeddcd1c
parser: set correct last line for struct inits (#9349) 2021-03-17 20:46:08 +02:00
Lukas Neubert
0a06a83d9b
fmt: fix possible removal of PrefixExpr or blocks (#9351) 2021-03-17 20:43:28 +02:00
crthpl
fafb035fb5
all: reimplement inline assembly (#8645) 2021-03-17 01:43:17 +01:00
Lukas Neubert
05b51c5b01
parser: correctly set pos of sql blocks (#9334) 2021-03-16 23:00:50 +02:00
Lukas Neubert
e554415123
fmt: allow ascii art block comments (#9332) 2021-03-16 20:49:55 +02:00
zakuro
80ac1aaf93
fmt: use type_to_str_using_aliases (#9306) 2021-03-15 06:27:08 +02:00
Lukas Neubert
f648e3f10d
fmt: use iembed cmts in arrays at line start when exprs come afterwards (#9285) 2021-03-13 09:58:50 +02:00
Lukas Neubert
cfbb783649
fmt: fix linebreak in non-block consts (#9260) 2021-03-12 12:27:05 +02:00
Lukas Neubert
a67d49050c
math: add a pure V math.mathutil, with generic min, max and abs functions (#9176), and use it consistently 2021-03-12 11:28:04 +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
Lukas Neubert
f69cef397c
fmt: do not insert a space before struct declaration generics (#9239) 2021-03-11 14:54:40 +02:00
spaceface
7d0cba5e96
v.ast: remove the stmt.position() method (#9233) 2021-03-11 14:50:02 +02:00
zakuro
00399b49ab
v.util: add util.tabs() (#9211) 2021-03-09 13:03:25 +02:00
Delyan Angelov
d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
zakuro
45d51c76da
v.util: add an iabs(x) helper (#9172) 2021-03-07 11:24:05 +02:00
Lukas Neubert
6048d0e974
fmt: fix backslash doubling in attribute string args (#9175) 2021-03-07 09:44:58 +02:00
Lukas Neubert
053d6870d2
fmt: respect user choice of empty lines between type declarations (#9135) 2021-03-06 21:05:55 +02:00
Lukas Neubert
fdcfe397d4
fmt: write empty or blocks the same as empty fn bodies, empty structs, etc (#9136) 2021-03-06 21:04:51 +02:00
Lukas Neubert
043c29cf95
fmt: fix string interpolation with CastExpr (#9137) 2021-03-06 20:47:19 +02:00
zakuro
b83530e0ed
fmt: extract part of fmt.v into struct.v (#9141) 2021-03-06 20:40:44 +02:00
Lukas Neubert
7f7f9dca6b
parser,fmt: fix regression with non-void arrays in if conditions (#9161) 2021-03-06 20:39:38 +02:00
Delyan Angelov
849cde245c
v: support dump(expr) (#9160) 2021-03-06 18:09:28 +01:00
Lukas Neubert
ead2ba6004
fmt: proper single line check for ConcatExpr (#9121) 2021-03-05 15:36:49 +03:00
zakuro
9ba312066e
fmt: extract type decls code into functions to cleanup (#9126) 2021-03-05 15:34:51 +03:00
Lukas Neubert
80356edd8c
fmt: combine simple attributes into a single line (#9120) 2021-03-05 07:17:57 +02:00
Delyan Angelov
6da66226e5
vfmt: keep mut: in interface declarations (#9053) 2021-03-04 15:30:30 +02:00
Delyan Angelov
eb1e1afbc1
ci: fix failing fn_trailing_arg_syntax_keep.vv 2021-03-04 13:05:14 +02:00