Delyan Angelov
a27833ed0d
all: support `volatile field Type` in struct declarations
2021-11-04 09:45:50 +02:00
Delyan Angelov
c4e282a0c8
parser: check fn args in declarations too with `-Wimpure-v`
...
`v -Wimpure-v examples/2048/` now passes cleanly.
2021-11-03 16:20:24 +02:00
Delyan Angelov
6937074e7a
strings,builder: reduce V cgen and parser memory consumption, fix strings.Builder leak ( #12342 )
2021-10-31 12:58:55 +02:00
Delyan Angelov
4c67c01e72
parser,util: improve libleak false positive detection rate
2021-10-29 16:42:55 +03:00
Delyan Angelov
b1bb1d361a
ci: vfmt parser.v
2021-10-28 10:51:55 +03:00
Delyan Angelov
1b6cccaf6d
parser,checker: allow a goto label right after return
2021-10-28 10:40:31 +03:00
yuyi
943a807d30
parser: implement generics method with auto multi generic types ( #12312 )
2021-10-27 15:41:13 +03:00
Wertzui123
ea6d2d53db
parser: disallow `for mut in range` ( fix #12234 ) ( #12277 )
2021-10-27 14:55:36 +03:00
Lucas Jenß
d7fd4a563b
parser: remove commented out debug statement ( #12316 )
2021-10-27 14:30:22 +03:00
Delyan Angelov
f2cda1a529
parser: update p.inside_or_expr consistently (fix `v fmt -w vls/analyzer/symbol_registration.v`)
2021-10-19 13:36:10 +03:00
yuyi
6aca360507
parser: fix checking unexpected name ( #12233 )
2021-10-19 12:27:59 +03:00
playX
a3de67de28
js: support WASM interoperability using `wasm_import`/`wasm_export` fn tags ( #12212 )
2021-10-18 10:56:21 +03:00
ChAoS_UnItY
4d1307f29b
all: index accessor in array init expression ( #12181 )
2021-10-15 03:57:49 +03:00
yuyi
c9b2f878b3
parser, checker: optimize checking generic struct type mismatch ( #12179 )
2021-10-15 00:11:31 +03:00
Delyan Angelov
4c2cb1b6df
vdoc: prevent leaking to the docs the `pure_v_but_overriden_by_` prefix
2021-10-14 11:47:50 +03:00
Alexander Ivanov
0386f2bbea
checker: add an interface check for mutability, fixes #1081 , fixes #7038 ( #11963 )
2021-10-11 15:41:31 +03:00
ChAoS_UnItY
3647fc6633
parser: perform constant folding before checking size of fixed array ( #12126 )
2021-10-10 01:55:25 +03:00
pancake
32259af2c9
v.parser: improve error message when no arch is set 'asm{}' ( #12093 )
2021-10-07 03:44:27 +03:00
yuyi
f1742a6f62
v.ast: change 'type.to_ptr()' to 'type.ref()' ( #12086 )
2021-10-06 20:49:39 +03:00
crthpl
7cf9c198fe
asm: add segment addressing and fix [10] ( #12068 )
2021-10-05 18:57:15 +03:00
yuyi
82e6d6e51d
cgen: fix threads array wait without go calls ( fix #12009 ) ( #12050 )
2021-10-03 18:24:44 +03:00
crthpl
85b58b03a3
cgen: parallelize ( #10844 )
2021-09-28 10:28:04 +03:00
Delyan Angelov
6a2ef733de
v.parser: add a generated `.all(.flag1|.flag2)` method to `[flag]` enums
...
Unlike `.has(.flag1|.flag2)`, which is true, for any of `.flag1` or `.flag2`,
the new method `.all()` tests whether *all flags* are set at the same time.
2021-09-26 21:40:44 +03:00
Delyan Angelov
bf2569a9a8
all: support `mut volatile x := 123` declarations ( #11940 )
2021-09-22 13:06:30 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init ( fix #11448 ) ( #11562 )
2021-09-21 16:20:09 +03:00
ChAoS_UnItY
95136cbfc7
all: add unsigned shift operators ( #11536 )
2021-09-21 14:02:17 +03:00
Alexander Medvednikov
f6bdc6b87e
tmpl: fix <div> inside <div>
2021-09-21 07:54:10 +03:00
Enzo
b2ecca3966
all: remove `size_t` ( #11478 )
2021-09-21 02:12:38 +03:00
05st
f9f4867c25
tmpl: fix $tmpl comptime operation only working in return statement ( #11541 )
2021-09-19 23:22:26 +03:00
yuyi
8862c3af0f
all: implement `if foo in [Foo1, Foo2, Foo3]` ( #11486 )
2021-09-14 15:56:12 +03:00
Daniel Däschle
b63ec8fbcf
checker: require `params` attribute to use struct as keyword arguments in function ( #11135 )
2021-09-14 00:05:30 +03:00
playX
b9dfc89aa9
js: prefix V builtin functions, so they do not overlap with JS ( #11483 )
2021-09-13 11:44:55 +03:00
Enzo
ccf6285f82
checker: allow mut arg on C functions ( #11430 )
2021-09-11 14:25:38 +03:00
Daniel Däschle
be0c54caf9
checker: require or block for sumtype map ( #11089 )
2021-09-10 16:07:39 +03:00
yuyi
af75789bbf
parser: fix reference var followed by block expr ( #11456 )
2021-09-10 15:31:09 +03:00
Dialga
66ef27a776
tmpl: fix escaping @ ( #11452 )
2021-09-09 20:27:24 +03:00
Alexander Medvednikov
ab3adf3346
checker: no longer allow automatic dereferncing in `a = b`
2021-09-09 20:21:01 +03:00
Enzo
bef3390f36
builtin: fix compilation ( #11445 )
2021-09-08 14:19:21 +03:00
Enzo
e3b65092d6
parser: deprecate `size_t` ( #11443 )
2021-09-08 13:09:32 +03:00
Ruofan XU
892971024e
parser: fix generic detection of `foo < bar<T>()` ( #11434 )
2021-09-08 05:54:15 +03:00
Enzo
79c2bca401
v.scanner: fix error messages with unexpected token `?` ( #11428 )
2021-09-07 20:46:56 +03:00
Ned Palacios
aedb6b8e84
v.builder: implement a `-check` mode, that runs only the parser + the checker, without codegen ( #11414 )
2021-09-07 07:17:53 +03:00
Dialga
905c292a81
tmpl: enforce stricter line checking for html interpolation ( #11413 )
2021-09-07 02:21:23 +03:00
Dialga
87f38bf6e7
tmpl: don't trim whitespace and escape \ ( #11393 )
2021-09-06 03:12:53 +03:00
zakuro
19a43db2de
fmt: fix removal of comment before embed in struct ( #11384 )
2021-09-04 11:02:04 +03:00
Delyan Angelov
37b4553f52
v.parser: fix running `math` programs, from V installed in folders containing `.v`
2021-08-31 09:16:12 +03:00
yuyi
187c1c160b
parser: minor cleanup in comp_call() ( #11311 )
2021-08-26 07:57:10 +03:00
Delyan Angelov
ec196cfcd1
all: support overriding individual function from .v files in .c.v or .js.v files.
2021-08-22 15:51:26 +03:00
yuyi
3d22dc1608
all: fix formating Foo<A,B> to Foo<A, B> ( #11225 )
2021-08-18 17:17:21 +03:00
Leo Developer
b3094b0667
checker: abort prematurely on too many errors ( #11185 )
2021-08-15 13:41:51 +03:00
Leo Developer
8a8a0932f7
all: add limit to accumulated errors / warnings ( #11183 )
2021-08-14 19:49:21 +03:00
Delyan Angelov
deb26b92b9
cgen: support `typeof(x).idx`, as well as `iface.type_idx()` ( #11178 )
2021-08-14 17:22:25 +03:00
Delyan Angelov
900c37aa65
v.gen.c: support `T.typ` - an int for the type index of the generic type `T` ( #11175 )
2021-08-14 08:48:25 +03:00
Daniel Däschle
6dbc6f233b
v.parser: add checks for interoperability (C. or JS.) function declarations ( #11140 )
2021-08-12 10:47:24 +03:00
yuyi
89a8854e57
v.parser: fix generics type name in if_expr ( #11156 )
2021-08-12 10:19:06 +03:00
Enzo
da53f818df
all: initial support for closures (x64 / linux-only) ( #11114 )
2021-08-10 21:27:15 +03:00
yuyi
1d3786ff1e
v.parser: fix `if a == Abc{} {` ( #11092 )
2021-08-07 18:05:22 +03:00
Daniel Däschle
8d2567740b
parser: make [..] work ( #11064 )
2021-08-06 03:54:24 +03:00
Daniel Däschle
f59119485a
v.parser: add check for existing type on sum type declaration ( #11054 )
2021-08-04 18:14:16 +03:00
yuyi
5162c257a2
v.parser: minor cleanup in parse_type.v ( #11047 )
2021-08-04 12:49:36 +03:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions ( #11035 )
2021-08-04 12:44:41 +03:00
Daniel Däschle
815c4b7420
all: rename generic_struct_inst to generic_inst ( #11044 )
2021-08-04 03:37:27 +03:00
Florian Blasius
69f31d8d5c
checker: check int literal to enum cast ( fix #10125 ) ( #10348 )
2021-08-02 07:12:29 +03:00
Uwe Krüger
6068777e03
parser/checker: deduce type of global from initialization expression ( #11005 )
2021-07-31 16:35:19 +03:00
Uwe Krüger
08aa6c08f6
all: more improvements for global variables ( #10986 )
2021-07-29 10:57:31 +03:00
yuyi
cb7be87d4e
parser: fix struct init and assign using `sql` variable ( #10968 )
2021-07-26 21:14:31 +03:00
zakuro
3979e5c5ff
v.parser: show better position for sort struct init warning ( #10939 )
2021-07-24 20:41:59 +03:00
Uwe Krüger
1e5627e777
parser: don't require unary `>` prefix for `select` timeout ( #10928 )
2021-07-23 23:24:27 +03:00
shadow
fe5e3c452f
parser: disable generic type aliases ( #10917 )
2021-07-23 01:17:16 +03:00
Lukas Neubert
38100faecf
fmt, parser: fix pos.last_line for assembly blocks ( #10877 )
2021-07-21 11:48:12 +03:00
Daniel Däschle
ad3835b598
parser: deprecate short struct init ( #10842 )
2021-07-20 11:17:08 +03:00
Daniel Däschle
9127e202d5
v.parser: fix error on empty name expr ( #10860 )
2021-07-19 17:09:51 +03:00
playX
425ca5e3c3
v.gen.js: add three backend options for JS, and comptime if support ( #10859 )
2021-07-19 15:55:03 +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
Delyan Angelov
fc8a8e3b6f
ci: fix failure for function_stored_in_global.vv
2021-07-17 18:19:20 +03:00
Delyan Angelov
568aa742b2
v.parser: improve conditions for debugging ast.CastExpr parsing
2021-07-17 17:49:29 +03:00
yuyi
3a0fa550b6
checker: fix generics fn inferring map type ( fix #10835 ) ( #10839 )
2021-07-17 17:49:21 +03:00
yuyi
fe64346ae2
parser: minor optimization of array filtering judgement ( #10821 )
2021-07-16 12:00:37 +03:00
yuyi
aca66d503d
parser: minor optimization in call_expr() ( #10809 )
2021-07-15 17:47:59 +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
crthpl
5089eb4a84
parser: fix pointer cast expressions hack ( #10777 )
2021-07-13 12:01:24 +03:00
shadowninja55
d1f1c5ae51
v doc: add attribute tags to `v doc -f html` ( #10778 )
2021-07-13 08:27:20 +03:00
yuyi
581280e6fc
parser: cleanup check_cross_variables() ( #10754 )
2021-07-12 12:10:42 +03:00
yuyi
938e9b61b5
parser: check undefined variables in assign_stmt ( #10755 )
2021-07-11 19:09:35 +03:00
yuyi
71e8237483
parser: check undefined variables in array inits ( #10746 )
2021-07-11 03:49:07 +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
Alexander Medvednikov
0f72bc9819
parser: temporary [c2v_variadic] fn attr for c2v'ed code
2021-07-05 11:32:15 +03:00
Delyan Angelov
972542d6ee
checker: `[noreturn]` part 2 (cleanup) ( #10667 )
2021-07-05 05:05:37 +03:00
Delyan Angelov
6aecda3be8
all: support `[noreturn] fn abc() { for{} }`, mark panic/1 and exit/1with it too. ( #10654 )
2021-07-04 20:24:19 +03:00
yuyi
2bcc733ff6
v.parser: rename pratt.v to expr.v ( #10566 )
2021-06-28 19:35:06 +03:00
shadowninja55
06a6a8e199
checker: check for empty branches in match expressions ( #10593 )
2021-06-28 19:32:28 +03:00
shadowninja55
2e5ed08558
v.parser: allow anonymous function to return a function ( #10592 )
2021-06-28 11:51:24 +03:00
shadowninja55
830cf4645c
v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) ( #10579 )
2021-06-28 10:26:09 +03:00
shadowninja55
9b84faad6f
v.parser: prohibit redeclaration of imported functions ( #10564 )
2021-06-25 14:27:58 +03:00
shadowninja55
be8be3d319
v.parser: prohibit redeclaration of builtin types ( #10563 )
2021-06-25 13:08:56 +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
Yuriy Zymlex
6736817bba
parser: fix `rewind_scanner_to_current_token_in_new_mode` ( #10495 )
2021-06-22 20:17:36 +03:00
Delyan Angelov
79df7f51c3
v: deprecate `[if ident]` in favour of `[if ident ?]`
2021-06-22 10:30:14 +03:00
Uwe Krüger
f32a76b268
all: promote value type function arguments to heap if necessary ( #10528 )
2021-06-20 18:40:24 +03:00
Delyan Angelov
d56ae2d508
v.fmt: keep comments after struct embeds
2021-06-18 18:42:05 +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
crthpl
4abb1a8b7b
cgen: fix unknown labels in addressing ( #10503 )
2021-06-18 13:03:38 +03:00
crthpl
4688c75389
cgen, parser: fix several assembly bugs ( #10498 )
2021-06-18 01:20:46 +03:00
Delyan Angelov
39e7290416
v: support for `[if expr]`, part 2 (old `[if ident]` is not yet deprecated)
2021-06-17 18:55:20 +03:00
yuyi
c58b04bcbf
checker: implement if smartcast multi conds (part 2) ( #10487 )
2021-06-17 12:27:31 +03:00
Delyan Angelov
c2a7a84c72
v.parser: support for [if expr], part 1
...
Enables bootstrapping.
Supports the new [if x?] syntax, without using it.
2021-06-17 10:31:44 +03:00
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
Uwe Krüger
787a63dab6
cgen: execute `defer` block *after* return expression is evaluated ( #9893 )
2021-04-27 01:42:16 +03:00
Enzo
4eb8072882
parser: remove ++/-- exception for some modules ( #9895 )
2021-04-27 01:41:42 +03:00
Lukas Neubert
181b0f1035
parser: improve error message for missing db expr in ORM ( #9890 )
2021-04-26 19:51:51 +03:00
yuyi
212b4fa089
parser: implement infering generic type parameters from receiver types ( fix #5862 ) ( #9870 )
2021-04-26 10:56:08 +03:00
spaceface
9d68f924c3
parser: don't disallow closures in the JS backend ( #9884 )
2021-04-26 10:00:39 +03:00
spaceface
7acb48df83
parser: parse `JS.` interfaces properly ( #9876 )
2021-04-26 09:58:05 +03:00
Uwe Krüger
3c0a368af3
all: automatically move (some) referenced objects to heap ( #9873 )
2021-04-25 21:40:38 +03:00
Louis Schmieder
fc3b628440
v: support `$for attr in Test.attributes` ( #9836 )
2021-04-25 18:29:26 +03:00
yuyi
8ccdae6188
all: cleanup generics call_expr ( #9856 )
2021-04-24 09:44:15 +03:00
Enzo
af8ef12990
ast: use `AttrKind` ( #9845 )
2021-04-23 15:51:52 +03:00
yuyi
dd2002cc57
cgen: fix generics with multi generics struct receiver ( #9853 )
2021-04-23 15:17:57 +03:00
Alexander Medvednikov
c7a6d28e13
all: improve unused variable warning (fix `x = 1`, `x += 1` etc)
2021-04-23 13:33:48 +03:00
Lukas Neubert
aa40dfc1de
checker: check __global type ( #9804 )
2021-04-23 12:28:08 +03:00
Louis Schmieder
c026d8b6f3
parser: number attributes ( #9835 )
2021-04-22 18:21:55 +03:00
yuyi
431d806dcf
ast, parser: cleanup of generic structs ( #9839 )
2021-04-22 18:21:01 +03:00
yuyi
51258923d7
checker: fix generics call with reference arg ( fix #9817 #9818 ) ( #9830 )
2021-04-21 06:40:11 +03:00
yuyi
953057ef35
parser: check generic receiver method decl has no generic names (fix parts of #9811 ) ( #9819 )
2021-04-20 21:38:17 +03:00
Lukas Neubert
2df260acbb
parser: fix last_line of no body C struct ( #9809 )
2021-04-20 21:37:00 +03:00
Delyan Angelov
d4f31412b7
v: deprecate `@VROOT` in favour of `@VMODROOT` ( #9795 )
2021-04-19 19:01:47 +03:00
Lukas Neubert
70c651ff17
all: make __global behave consistent with const ( #9711 )
2021-04-19 17:07:47 +03:00
spaceface
73352583e7
ci: fix all `-cstrict` warnings with gcc and clang ( #9792 )
2021-04-19 15:38:48 +03:00
yuyi
3158617ce2
parser: simplify parse_generic_struct_inst_type() ( #9801 )
2021-04-19 14:47:39 +03:00
涂紳騰(Shen-Teng Tu)
3c72c6abc2
parser: disable template variables in `<style>` ( #9777 )
2021-04-17 15:47:36 +03:00
Uwe Krüger
1b0f099552
parser: fix handling of `-` inside array literals ( #9771 )
2021-04-17 02:37:17 +03:00
涂紳騰(Shen-Teng Tu)
d9fdae1de9
parser: escape js template literal syntax inside <script> tags ( #9738 )
2021-04-15 12:39:39 +03:00
yuyi
466dc4540b
all: minor cleanup of generics ( #9744 )
2021-04-15 11:00:23 +03:00
yuyi
1250ce4353
cgen: fix generics with embed generics ( fix #8694 ) ( #9724 )
2021-04-15 01:44:11 +02:00
Lukas Neubert
f4c8f897fe
parser: proper unexpected eof errors in const declarations ( #9712 )
2021-04-15 01:31:49 +02:00
crthpl
0099458c0a
all: small asm fixes and number labels ( #9730 )
2021-04-15 01:30:23 +02:00
crthpl
14434cc86a
all: bare metal support (fix `-freestanding`) ( #9624 )
2021-04-14 07:50:50 +02:00
Delyan Angelov
68c3eccec5
v: skip asserts in -prod mode inside non _test.v files
2021-04-13 13:07:57 +03:00
Lukas Neubert
b2c16ced57
parser: filter out vet space indent errors inside StringInterLiterals ( #9695 )
2021-04-12 16:03:22 +03:00
Louis Schmieder
67d8639917
orm: add unique fields & add drop table stmt ( #9684 )
2021-04-11 23:57:25 +02:00
Enzo
5a1a1b7c12
all: merge GoExpr and GoStmt ( #9685 )
2021-04-11 23:56:25 +02:00
yuyi
a2a18ef92c
v: simplify handling of function generic parameters ( #9673 )
2021-04-11 09:02:57 +03:00
Ned Palacios
6948419595
parser: fix InterfaceDecl's position ( #9649 )
2021-04-09 17:18:22 +02:00
Ned Palacios
a706215e52
ast, parser: add type_pos to TypeDecl nodes ( #9571 )
2021-04-09 14:51:25 +03:00
Lukas Neubert
46e7e27ba3
v vet: give an error for trailing whitespace ( #9574 )
2021-04-09 13:22:14 +03:00
Uwe Krüger
84fa1ae444
boehm-gc: support a `[keep_args_alive]` tag for C functions ( #9641 )
2021-04-09 13:13:49 +03:00
zakuro
e6a67e7172
parser: fix error of `-foo.bar()` ( #9646 )
2021-04-09 10:54:03 +03:00
Delyan Angelov
de5cf4ac5e
v: show the number of processed bytes and lines for V source code with -stats
2021-04-07 18:12:27 +03:00