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

1417 Commits

Author SHA1 Message Date
Emily Hudson
535dcac8fa net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904) 2021-06-13 23:53:38 +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
Uwe Krüger
6acf32b869 v.parser: prepare for splitting of map.v (#10432) 2021-06-12 17:01:37 +03:00
Uwe Krüger
daeeaef030 vfmt: hot fix to allow separate array_d_gcboehm_opt.v (#10413) 2021-06-11 12:00:18 +03:00
crthpl
6576d876fc cgen: support a [_naked] fn attribute (#10418) 2021-06-11 11:03:39 +03:00
Delyan Angelov
3dc4d13160 v.parser: do not treat test_ functions specially outside of _test.v files 2021-06-08 23:01:49 +03:00
yuyi
114c382c46 parser: fix generic fn typeof name (#10363) 2021-06-06 17:40:13 +03:00
Lukas Neubert
3f00ff465b checker: check or block inside println calls (#10354) 2021-06-05 23:01:58 +03:00
crthpl
9553c5a4e6 parser: fix multiple output modifiers in asm (#10347) 2021-06-04 23:18:11 +03:00
Ehsan Afzali
672bb6ca7f parser: fix required function members in struct (#10299) 2021-06-03 02:55:58 +03:00
yuyi
1747e546bf parser, checker: check assert optional (#10319) 2021-06-02 20:38:26 +03:00
Wertzui123
148bb31f6e v.parser: allow for if x { $if y {} } else {}, fix #10243 (#10294) 2021-06-01 12:19:39 +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
Lukas Neubert
6b683d31ac v.parser: support imported enums as map keys (#10234) 2021-05-28 20:09:03 +03:00
Alexander Medvednikov
ca8158ac41 parser: handle casts in match expressions; c2v: minor fixes 2021-05-28 17:59:43 +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
zakuro
607dbd36d7 parser: set is_public of TypeSymbol for fn type decl (#10212) 2021-05-27 10:17:08 +03:00
R cqls
5b8402bccb parser: fix mod_path_to_full_name to be compliant with --path option (#10149) 2021-05-25 07:46:40 +03:00
Delyan Angelov
13d1d28db1 v.parser: fix -autofree for script mode programs that do not have explicit fn main(){} 2021-05-24 14:42:09 +03:00
Delyan Angelov
e9fa53b0c1 v.parser: let fn_decl use 1 loop, instead of multiple p.attrs.contains calls 2021-05-23 16:54:12 +03:00
Delyan Angelov
bf3af40f13 v.markused: support ./v -skip-unused -freestanding run vlib/os/bare/bare_example_linux.v too 2021-05-23 16:25:34 +03:00
Delyan Angelov
bc01de2181 ast: mark ast.File{} with [heap], and use []&ast.File consistently 2021-05-22 19:06:55 +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
be189e0059 fmt: keep generics for selective import as fn param (#10138) 2021-05-19 21:25:02 +03:00
crthpl
0d44c8857e checker: fix position of unknown type errors (#10110) 2021-05-16 04:51:23 +03:00
Uwe Krüger
7bfd89567b shared: support lock on SelectorExpression (#10105) 2021-05-15 04:34:27 +03:00
Delyan Angelov
20a22453cf v.builder: remove default link flags -lm, -ldl, -lpthread (use module specific link flags instead) (#10099) 2021-05-14 14:28:53 +03:00
crthpl
4273a9697e parser: add support for flags in asm output constraints (#10103) 2021-05-14 12:01:15 +03:00
crthpl
8361f714dd cgen: fix deadlock when returning/breaking in lock (#10079) 2021-05-12 11:44:47 +03:00
Alexander Medvednikov
72a135c7c5 vweb: update vweb_test_server.v 2021-05-11 09:52:08 +03:00
Louis Schmieder
23513ae35c v.parser: fix vfmt eating the file name in $tmpl('non_existant_file') (#10056) 2021-05-08 21:11:13 +03:00
Uwe Krüger
d26ac5692e all: various fixes for [heap]/auto-heap handling (#10033) 2021-05-07 15:58:48 +03:00
Delyan Angelov
13ea92a77d ci: use hash.fnv1a.sum64_string instead of hash.sum64_string in Parser.set_path (fix sanitize jobs) 2021-05-07 11:20:13 +03:00
Delyan Angelov
ea74e2bc64 v.parser: add p.unique_prefix, add run_project_folders_test.v (closes #10023) 2021-05-06 21:14:19 +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
zakuro
1e856c0f94 parser: improve error message for mod.unknownsubmod.Type (#9976) 2021-05-04 11:31:31 +03:00
Enzo
106cd384da parser: remove obsolete exceptions (#9987) 2021-05-03 17:35:09 +03:00
yuyi
ae22967d1d parser: ensure generic function declaration specifies type names (fix #9959) (#9967) 2021-05-02 19:30:39 +03:00
Delyan Angelov
4b818fa2be v: implement interface embedding (#9935) 2021-05-02 03:00:47 +03:00
Alexander Medvednikov
e949d4b26c tools/fast: add "V lines" and "V lines/s" 2021-04-30 15:31:50 +03:00
yuyi
d236d6a473 parser, cgen: fix generics fn typeof name (fix #7357) (#9939) 2021-04-30 13:40:36 +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
yuyi
25d9272c84 all: rename table.register_fn_generic_types to table.register_fn_concrete_types (#9914) 2021-04-29 09:06:50 +03:00
crthpl
6945f987cf checker: fix sumtype comparison and sumtype in itself (#9917) 2021-04-29 09:04:02 +03:00
Lukas Neubert
a065d014a2 fmt: keep constant sizes in struct field fixed array types (#9910) 2021-04-28 22:11:15 +03:00
ka-weihe
3edbf71770 parser: fix maps with aliases as key (#9900) 2021-04-28 07:45:21 +03:00
Enzo
4f246222b0 v: replace --enable-globals with -enable-globals (#9898) 2021-04-28 07:44:28 +03:00
Louis Schmieder
faf2656335 orm: support multiline statements (#9888) 2021-04-27 15:28:57 +03:00