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

4464 Commits

Author SHA1 Message Date
Lukas Neubert
dc431a3c47
checker: prevent enum value duplication check bypass (#10287) 2021-06-05 12:28:17 +03:00
crthpl
9553c5a4e6
parser: fix multiple output modifiers in asm (#10347) 2021-06-04 23:18:11 +03:00
zakuro
b0c9a87292
v: show an error and exit, when no module name is given in v build-module (#10338) 2021-06-04 18:30:43 +03:00
yuyi
f4486d79c3
checker: minor cleanup of selector_expr() (#10316) 2021-06-03 16:49:50 +03:00
yuyi
fedf07ddd8
checker: minor cleanup of assign_stmt() (#10314) 2021-06-03 09:49:03 +03:00
yuyi
86d70fade7
checker: minor cleanup of struct_init() (#10310) 2021-06-03 09:48:19 +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
Ehsan Afzali
672bb6ca7f
parser: fix required function members in struct (#10299) 2021-06-03 02:55:58 +03:00
yuyi
b0bafa6376
cgen: fix or_block in for declaration (#10317) 2021-06-03 01:18:52 +03:00
Delyan Angelov
b28def7c11
tests: add vlib/v/tests/failing_tests_test.v, support testdata in v test-self too 2021-06-03 00:32:09 +03:00
yuyi
1747e546bf
parser, checker: check assert optional (#10319) 2021-06-02 20:38:26 +03:00
Delyan Angelov
5400a765a4
tests: make fn test_fn() ? { return error(fail) } count as a fail 2021-06-02 19:14:37 +03:00
pancake
4b2319fd67
native: fix macho header for amd64 macOS 'Big Sur' (#10304) 2021-06-02 16:09:57 +03:00
Delyan Angelov
14d09aa7c2
ci: fix failing v -cstrict vlib/v/tests/channels_test.v 2021-06-01 16:48:49 +03:00
Delyan Angelov
5cb2683e97
v.gen.c,v.markused: fix println(ch) when ch is a channel 2021-06-01 13:46:59 +03:00
zakuro
0afeba5588
cgen: fix C error with clang, when declaring a fn type with an alias type argument (#10297) 2021-06-01 12:37:27 +03:00
Wertzui123
148bb31f6e
v.parser: allow for if x { $if y {} } else {}, fix #10243 (#10294) 2021-06-01 12:19:39 +03:00
youyuanwu
98505207c4
mssql: support orm create and drop table (#10296) 2021-06-01 11:10:27 +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
yuyi
cb19079d53
all: move cur_concrete_types to Table (#10269) 2021-05-31 17:14:45 +03:00
yuyi
9fc5b9dc54
cgen: fix match in map or expr (#10283) 2021-05-31 17:10:33 +03:00
Uwe Krüger
d39a55ac11
checker: forbid leaving function from inside defer block (#10285) 2021-05-31 17:09:57 +03:00
Louis Schmieder
38796521fa
all: allow defer use from other scope (#10284) 2021-05-31 14:43:44 +03:00
Delyan Angelov
eac1e25c5d
strings: simplify Builder (#10263) 2021-05-31 14:21:06 +03:00
yuyi
5aa4f622b6
checker: fix match expr returning optional (#10281) 2021-05-31 12:34:55 +03:00
Lukas Neubert
5b9256ba0b
cgen: write alias typedefs just before interfaces (#10272) 2021-05-31 12:26:06 +03:00
Lukas Neubert
09e3099580
checker: error on direct map alias init (#10282) 2021-05-31 12:14:37 +03:00
Delyan Angelov
955dc12523
v: replace execuast => executable 2021-05-31 09:39:18 +03:00
KJ Lawrence
9a5768395d
cgen: fix embeds for msvc (fix #10244) (#10259)
* cgen: fix embed file for mvsc

* define struct fields during init

* vfmt

* wrap string in `cestring` to escape properly

Co-authored-by: klawrence <klawrence@netpark.us>
2021-05-31 07:50:23 +03:00
Uwe Krüger
aa861d1cac
docs: describe array/slice behaviour (#10252) 2021-05-30 14:48:33 +03:00
yuyi
13ddfaa433
checker: fix generic fn infer nested struct (#10262) 2021-05-30 14:06:52 +03:00
yuyi
c67891d69f
checker: minor cleanup in match_expr() (#10261) 2021-05-30 13:33:19 +03:00
Delyan Angelov
b29bc9cdce
checker: fix panic on fn abc()?{ return error() } 2021-05-29 23:46:56 +03:00
yuyi
e4f6369cd1
checker: fix match error to none (#10245) 2021-05-29 19:30:57 +03:00
yuyi
8785599094
checker, cgen: fix optional with if expr (#10242) 2021-05-29 10:00:12 +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
6b683d31ac
v.parser: support imported enums as map keys (#10234) 2021-05-28 20:09:03 +03:00
yuyi
9ea753e853
checker: fix generic with fixed array parameter (#10233) 2021-05-28 18:51:55 +03:00
penguindark
7089ff3957
builtin: fix a bug in str_intp (#10238) 2021-05-28 18:44:30 +03:00
Alexander Medvednikov
ca8158ac41 parser: handle casts in match expressions; c2v: minor fixes 2021-05-28 17:59:43 +03:00
yuyi
6e493ca8ca
checker: check index_expr or_expr types mismatch (#10224) 2021-05-28 11:40:59 +03:00
Delyan Angelov
39de06c200
v.pref: cleanup V options, support the documented -output and -backend 2021-05-28 09:07:06 +03:00
Lukas Neubert
8a109b031c
fmt: minor optimization in call_expr (#10228) 2021-05-27 22:40:54 +03:00
Enzo
df2b688337
checker: cleanup type alias pascal case check (#10217) 2021-05-27 22:40:32 +03:00
Ruofan XU
4e55b9c08e
example: improve binary search tree example (#10226) 2021-05-27 20:13:02 +03:00
Delyan Angelov
2b62dca000
v: support for $if threads {}, depending on whether go ` was used at all (#10227) 2021-05-27 18:36:07 +03:00
Uwe Krüger
8828054e5b
builtin: fix arrays/slices memory bug (#10219) 2021-05-27 15:50:06 +03:00
Lukas Neubert
d5cacd1e5f
ast: use string builder for StringInterLiteral.str() (#10207) 2021-05-27 10:17:51 +03:00
zakuro
607dbd36d7
parser: set is_public of TypeSymbol for fn type decl (#10212) 2021-05-27 10:17:08 +03:00
yuyi
7c0cd2f41d
checker, cgen: fix match with complex sumtype exprs (#10215) 2021-05-27 10:13:50 +03:00