Ruofan XU
|
834cf40ab2
|
cgen, fmt, scanner: fix and use nested lambda in scanner (#11967)
|
2021-09-24 18:21:22 +03:00 |
Ekopalypse
|
400ab7876b
|
ast: fix fixed array typedef generation issue (#11962)
|
2021-09-24 17:01:42 +03:00 |
Anton Zavodchikov
|
c75271fcb7
|
cgen: json sumtype inlining (#11961)
|
2021-09-24 16:49:00 +03:00 |
yuyi
|
430677a0c0
|
cgen: format generated C code of nested array call (#11955)
|
2021-09-23 19:56:12 +03:00 |
zakuro
|
b354f9ae9a
|
cgen: fix c error of if-expression when debug mode (#11950)
|
2021-09-23 14:52:32 +03:00 |
Delyan Angelov
|
ece5fa183c
|
fast.v: freebsd fixes
|
2021-09-23 13:48:41 +03:00 |
Delyan Angelov
|
930b95f76c
|
v.gen.c: fix uninitialised value usages regression after e5fb4e4
|
2021-09-23 12:24:03 +03:00 |
Delyan Angelov
|
8837712f2b
|
rand: fix leaks with -autofree
|
2021-09-23 12:24:03 +03:00 |
Delyan Angelov
|
79e33d92f1
|
v.markused: remove `hash.init()` function (map fn usages are detected more precisely)
|
2021-09-23 12:24:02 +03:00 |
Alexander Ivanov
|
4d0f835548
|
checker: fix detection of invalid insertions, fixes #3600 (#11945)
|
2021-09-23 11:59:43 +03:00 |
Alexander Medvednikov
|
27f5c35bde
|
autofree: test returning optionals
|
2021-09-23 09:18:01 +03:00 |
yuyi
|
b8935551f1
|
cgen: fix nested array call (#11948)
|
2021-09-23 08:50:37 +03:00 |
Alexander Medvednikov
|
7b60367512
|
autofree: free reference types with -experimental for now
|
2021-09-23 04:35:09 +03:00 |
Ruofan XU
|
52b53f17b2
|
scanner: clean up scanning of `>` (#11943)
|
2021-09-23 02:24:23 +03:00 |
Delyan Angelov
|
bf2569a9a8
|
all: support `mut volatile x := 123` declarations (#11940)
|
2021-09-22 13:06:30 +03:00 |
yuyi
|
76e360ce86
|
cgen: format the generated C code for array map/filter/all/any methods (#11936)
|
2021-09-22 09:24:36 +03:00 |
yuyi
|
e5fb4e4845
|
cgen: fix if expr with array call (fix #11557) (#11569)
|
2021-09-22 02:21:18 +03:00 |
Alexander Ivanov
|
b9720f5d9e
|
cgen: fix struct init with multiple branches, fixes #11564 (#11570)
|
2021-09-22 00:46:07 +03:00 |
yuyi
|
2f3925a0cf
|
fmt: format vlib/v/token/token.v (#11568)
|
2021-09-21 23:29:53 +03:00 |
yuyi
|
de4c0c237b
|
cgen: fix if infix expr with array.all/any() (#11567)
|
2021-09-21 16:20:41 +03:00 |
yuyi
|
108a01d65f
|
fmt: fix unnecessary line break in array init (fix #11448) (#11562)
|
2021-09-21 16:20:09 +03:00 |
yuyi
|
d6fa6a459c
|
checker: fix generic sumtype method (#11565)
|
2021-09-21 16:19:43 +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 |
Alexander Medvednikov
|
4aa99e4303
|
tmpl: add a <div> test
|
2021-09-21 02:11:33 +03:00 |
Ruofan XU
|
1430ebc5e3
|
scanner: cleanup scanning of `>` (#11558)
|
2021-09-21 00:57:05 +03:00 |
Anton Zavodchikov
|
d51f8ed878
|
v.gen.c: use unmangled variant name for encoding sumtype values in json (#11554)
|
2021-09-20 21:19:16 +03:00 |
Delyan Angelov
|
5cf0ee46b3
|
v.pref,v.builder: support overriding the C cross compiler by setting `VCROSS_COMPILER_NAME`
|
2021-09-20 19:57:43 +03:00 |
El Koulali András
|
9c4507d115
|
cgen: fix illegal character encoding with rune consts above 127 (#11550)
|
2021-09-20 10:45:42 +03:00 |
Delyan Angelov
|
1de4f1af2e
|
ci: reduce chance of spurious go_wait_option_test.v failures by retrying it 3 times
|
2021-09-20 10:32:40 +03:00 |
05st
|
f9f4867c25
|
tmpl: fix $tmpl comptime operation only working in return statement (#11541)
|
2021-09-19 23:22:26 +03:00 |
Rémi
|
2534946ead
|
json: support sumtypes (#11549)
|
2021-09-19 21:36:26 +03:00 |
Delyan Angelov
|
7bd145d88a
|
os,net: cleanup deprecated @VROOT usages
|
2021-09-19 16:24:24 +03:00 |
Ruofan XU
|
b343f19bec
|
v.scanner: fix ambiguity of two-level generics and shift-right (#11540)
|
2021-09-19 16:22:28 +03:00 |
Delyan Angelov
|
76f70d51f3
|
ci: fix another options_test.v failute, refactor for readability
|
2021-09-19 08:49:52 +03:00 |
Delyan Angelov
|
b5d8c53a0c
|
v.gen.c: fix the :X string interpolation format for isize/usize on 64bit systems
|
2021-09-19 05:09:03 +03:00 |
Alexander Medvednikov
|
6799f3ac5c
|
orm: verify column name in updates
|
2021-09-19 04:49:29 +03:00 |
Rémi
|
e76be4ba37
|
checker: temporary error for optional struct fields (#11293) (#11534)
|
2021-09-18 23:22:24 +03:00 |
Delyan Angelov
|
0b4e03ad5c
|
ci: fix the failing new options_test.v on the `ubuntu` job
|
2021-09-18 21:10:41 +03:00 |
Delyan Angelov
|
6b2cc9c5cf
|
v.pref: add a simple options_test.v to check for -cflags regressions
|
2021-09-18 16:08:15 +03:00 |
yuyi
|
8501217a4e
|
cgen: add gen_free_for_type_array/map() (#11530)
|
2021-09-18 15:18:32 +03:00 |
Delyan Angelov
|
0a7fb34613
|
checker: simplify noreturn.v
|
2021-09-18 13:43:15 +03:00 |
Delyan Angelov
|
df8a4a03a0
|
tests: support `// vtest retry: 4` for marking flaky tests
|
2021-09-18 11:48:32 +03:00 |
yuyi
|
39ad6da506
|
checker, cgen: generate .free() methods for custom structs automatically (#11529)
|
2021-09-18 09:38:42 +03:00 |
Delyan Angelov
|
2eeba4758a
|
v.builder: fix `-cc msvc -cflags /O2` and support CFLAGS and LDFLAGS env vars
|
2021-09-18 09:14:21 +03:00 |
Alexander Medvednikov
|
219a764a83
|
autofree: only free user reference types
|
2021-09-18 06:32:25 +03:00 |
Alexander Medvednikov
|
6d47dd22df
|
autofree: free references
|
2021-09-18 04:19:16 +03:00 |
yuyi
|
44ec8a8cd4
|
v.fmt, v.gen.js: use 'if foo in [TypeA, TypeB]' in fmt.v and js.v (#11524)
|
2021-09-17 21:59:16 +03:00 |
Delyan Angelov
|
bd65ceb463
|
v.markused: remove __print_assert_failure from all_fn_root_names
|
2021-09-17 21:47:22 +03:00 |
Ruofan XU
|
9180647f99
|
scanner, fmt: fix multi-level generics (#11517)
|
2021-09-17 21:44:31 +03:00 |
Alexander Ivanov
|
30e53c95c7
|
checker: handle `if _likely_(x is Interface) {` from #11485 (#11519)
|
2021-09-17 21:01:12 +03:00 |
yuyi
|
fb75d528eb
|
builder: remove panics, when cleaning up tmp files after tests (#11525)
|
2021-09-17 20:56:33 +03:00 |
yuyi
|
467afad065
|
cgen: use `if foo in [TypeA, TypeB]` in cgen.v (#11518)
|
2021-09-16 19:26:53 +03:00 |
Delyan Angelov
|
0a18690a4f
|
v.gen.c: fix assert `f().len == 1` calling f() twice (closes issue 11501)
|
2021-09-16 19:01:35 +03:00 |
playX
|
c175b4fd48
|
v.gen.js: refactor code, fix alias codegen, `-stats` now again works with tests on the JS backend (#11512)
|
2021-09-16 14:00:15 +03:00 |
yuyi
|
d5e00b0920
|
checker, cgen: fix generic arrays sum() (#11502)
|
2021-09-16 07:08:28 +03:00 |
yuyi
|
09ded16e3d
|
checker: use 'if foo in [TypeA, TypeB]' in checker.v (#11494)
|
2021-09-16 07:08:14 +03:00 |
playX
|
7d1776b84d
|
js: equality method generation for V types (#11503)
|
2021-09-16 07:07:48 +03:00 |
Alexander Medvednikov
|
d00808660f
|
json: omitempty
|
2021-09-16 07:02:43 +03:00 |
Delyan Angelov
|
5bc6cc9512
|
v.checker: fix spurious warning for `if x := map_of_sumtypes[k] {}`
|
2021-09-15 15:42:28 +03:00 |
Ekopalypse
|
41fc4c55c6
|
v.builder: simplify target architecture logic for msvc (#11491)
|
2021-09-14 17:47:26 +03:00 |
yuyi
|
9554470985
|
checker, cgen: fix generic operator overload of 'cmp' (#11489)
|
2021-09-14 16:20:02 +03:00 |
yuyi
|
8862c3af0f
|
all: implement `if foo in [Foo1, Foo2, Foo3]` (#11486)
|
2021-09-14 15:56:12 +03:00 |
Alexander Medvednikov
|
12ec900d20
|
checker: fix the void type check
|
2021-09-14 01:02:32 +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 |
Alexander Medvednikov
|
ae41d1d3c6
|
builtin, cgen: more -nofloat fixes
|
2021-09-13 19:06:19 +03:00 |
Alexander Medvednikov
|
8fc0b486a2
|
builtin: fix string interpolation when compiling with -nofloat
|
2021-09-13 18:40:32 +03:00 |
Alexander Medvednikov
|
c99281709b
|
pref: define nofloat comptime define
|
2021-09-13 18:35:21 +03:00 |
Alexander Medvednikov
|
04d4431299
|
checker: remove another unnecessary error
|
2021-09-13 18:35:08 +03:00 |
Alexander Medvednikov
|
cfcc57f5d3
|
checker: remove unnecessary "no methods" error; builder: skip float.c.v with -nofloat
|
2021-09-13 18:14:26 +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 |
yuyi
|
30029eaf5d
|
checker, cgen: fix generic operator overload (fix #11472) (#11479)
|
2021-09-13 09:49:28 +03:00 |
Enzo
|
012da10517
|
ast, fmt: cleanup (#11477)
|
2021-09-13 04:08:58 +03:00 |
yuyi
|
cd7d482c3b
|
checker: fix generic array append (#11475)
|
2021-09-12 15:09:11 +03:00 |
Enzo
|
ccf6285f82
|
checker: allow mut arg on C functions (#11430)
|
2021-09-11 14:25:38 +03:00 |
playX
|
5b619b99c2
|
v.gen.js: Interfaces support, fix for error propagation & panic stacktraces (#11471)
|
2021-09-11 14:24:47 +03:00 |
Ekopalypse
|
f9eb14d914
|
builder: remove fPic argument from windows builds (#11467)
|
2021-09-11 04:48:02 +03:00 |
zakuro
|
fb20a92b1e
|
fmt: fix a bug that break generics call in string inter (#11468)
|
2021-09-11 04:47:22 +03:00 |
playX
|
07bd61582c
|
js: fix strconv build, BigInt infix fix (#11464)
|
2021-09-11 00:11:36 +03:00 |
Enzo
|
c8471528ce
|
fmt: format long sum-types with a line for each type (#11461)
|
2021-09-10 20:56:55 +03:00 |
Alexander Medvednikov
|
5c4385a472
|
cgen: nofloat for kernel code
|
2021-09-10 20:54:48 +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 |
yuyi
|
91c6eeeae5
|
cgen: fix `b := &[5, 6, 7]` (#11457)
|
2021-09-10 14:30:30 +03:00 |
Delyan Angelov
|
bdd053fcf1
|
v.builder: fix `./v examples/v_script.vsh` on windows (this quickfix is thanks to yuyi98)
|
2021-09-10 12:30:40 +03:00 |
Delyan Angelov
|
7143b8ab37
|
v.checker: allow assigning pointers to fn variables (fix vinix compilation)
|
2021-09-10 11:48:36 +03:00 |
Alexander Medvednikov
|
afeb1525a1
|
native: rename cgen to code_gen to avoid confusion with cgen
|
2021-09-10 03:17:53 +03:00 |
Alexander Medvednikov
|
0370d4f268
|
native: fix macho test
|
2021-09-09 23:00:54 +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 |
Delyan Angelov
|
4faa0f8487
|
v.checker: add checks for `.free()` methods
|
2021-09-09 09:54:06 +03:00 |
playX
|
72089c4feb
|
js: use prefixed names for functions and global symbols (#11387)
|
2021-09-08 20:30:46 +03:00 |
Alexander Medvednikov
|
4a2728e1bf
|
checker: verify json.decode type
|
2021-09-08 14:49:02 +03:00 |
yuyi
|
e5360e164a
|
fmt: remove unnecessary parentheses after `return` (fix #11423) (#11435)
|
2021-09-08 14:19:53 +03:00 |
Enzo
|
bef3390f36
|
builtin: fix compilation (#11445)
|
2021-09-08 14:19:21 +03:00 |
Enzo
|
56ad5d72ef
|
builtin: add `.str` method for `i/usize` (#11441)
|
2021-09-08 13:41:08 +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
|
cc8ee5fb84
|
all: introduce `isize` and `usize` (#11437)
|
2021-09-08 05:53:39 +03:00 |
Enzo
|
79c2bca401
|
v.scanner: fix error messages with unexpected token `?` (#11428)
|
2021-09-07 20:46:56 +03:00 |
yuyi
|
bee5e7de03
|
v.gen.c: fix generics array delete (#11429)
|
2021-09-07 20:40:21 +03:00 |
pancake
|
ddc62ab0d3
|
native: native prints (#11426)
|
2021-09-07 15:44:15 +03:00 |
Delyan Angelov
|
0b6d585b07
|
v.gen.c: allow overriding of the == operator on C.Struct type aliases
|
2021-09-07 12:02:01 +03:00 |
Delyan Angelov
|
aec016bb14
|
v.builder: change exit code of `v -check file.v` to 0, when file.v is clean from any errors.
|
2021-09-07 07:29:45 +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 |
penguindark
|
bd10a63839
|
builtin: string interpolation: binary format support (#11421)
|
2021-09-07 00:12:54 +03:00 |
yuyi
|
6084c0fc54
|
checker, cgen: fix complex generic sumtype (fix #11392) (#11400)
|
2021-09-06 03:15:53 +03:00 |
Dialga
|
87f38bf6e7
|
tmpl: don't trim whitespace and escape \ (#11393)
|
2021-09-06 03:12:53 +03:00 |
Alexander Medvednikov
|
71f1be5388
|
checker: fix a typo
|
2021-09-05 18:46:14 +03:00 |
yuyi
|
3fd2dd45a4
|
checker: do now allow type name shadowing (#11401)
|
2021-09-05 18:34:21 +03:00 |
zakuro
|
aefe267970
|
fmt: fix removal of selective imported generic type (#11395)
|
2021-09-05 17:59:35 +03:00 |
Delyan Angelov
|
6b55b6d417
|
ci: add more details for diagnosing the sporadically failing init_global_test.v
|
2021-09-05 16:19:00 +03:00 |
yuyi
|
48e65a7bb2
|
checker: check type in match range (fix #11337) (#11389)
|
2021-09-05 04:50:43 +03:00 |
yuyi
|
87934ecf39
|
cgen: fix variable name are 'array' or 'string' (fix #10991 #11343) (#11378)
|
2021-09-04 19:51:45 +03:00 |
yuyi
|
5181031480
|
builtin: check array.sort_with_compare() arg mismatch (#11385)
|
2021-09-04 15:02:05 +03:00 |
yuyi
|
923ef733c0
|
checker: disallow array sort with fancy args for now (#11388)
|
2021-09-04 14:34:29 +03:00 |
zakuro
|
19a43db2de
|
fmt: fix removal of comment before embed in struct (#11384)
|
2021-09-04 11:02:04 +03:00 |
Delyan Angelov
|
96ef553f59
|
checker: check sumtype common fields for mutability when assigning too
|
2021-09-03 13:33:25 +03:00 |
playX
|
a4df418a68
|
js: support `[export: 'AnotherName']` for FnDecl codegen (#11377)
|
2021-09-03 13:00:24 +03:00 |
yuyi
|
67ab5b858b
|
checker: fix checking fn prototype mismatch (#11369)
|
2021-09-03 12:26:46 +03:00 |
yuyi
|
939a6417ce
|
cgen: fix reserved keywords as struct field (#11370)
|
2021-09-03 12:18:45 +03:00 |
playX
|
08c517c966
|
strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364)
|
2021-09-03 12:16:07 +03:00 |
Enzo
|
d1974f500f
|
cgen: cleanup `Gen.cc_type` (#11357)
|
2021-08-31 23:55:37 +03:00 |
Delyan Angelov
|
a208138283
|
v.markused: support a const used as default value in struct init
|
2021-08-31 15:55:32 +03:00 |
Delyan Angelov
|
f68bdb7805
|
v.markused.walker: support `for x in struct{}` iterators
|
2021-08-31 15:15:05 +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 |
zakuro
|
ebed01c946
|
v.tests: add a test_ fn, that returns an optional (#11340)
|
2021-08-31 08:50:26 +03:00 |
Alexander Medvednikov
|
b72a2de931
|
0.2.4
|
2021-08-30 22:25:14 +03:00 |
playX
|
a9b705bfd8
|
js: fix printing, make builtins for result and option types behave correctly (#11336)
|
2021-08-30 20:47:18 +03:00 |
Delyan Angelov
|
f33f216698
|
v.markused: fix compilation with `-prod -skip-unused` of programs that embed files
|
2021-08-30 17:57:33 +03:00 |
Delyan Angelov
|
9496fcdfe1
|
v.builder: fix compilation with tcc on FreeBSD 13.0
|
2021-08-30 13:21:49 +00:00 |
yuyi
|
f44eb88a8d
|
vfmt: fmt '!(a in/is b)' to 'a !in/is b' (#11335)
|
2021-08-30 09:45:36 +03:00 |
playX
|
61ac7b671d
|
js: add initial support for optional types, IfGuardExpr codegen for `if` (#11332)
|
2021-08-29 14:27:17 +03:00 |
yuyi
|
985fe85de2
|
checker: show concretes type name in error message (#11333)
|
2021-08-29 12:08:57 +03:00 |
Daniel Däschle
|
ac442abc11
|
checker: allow noreturn in match expr (#11126)
|
2021-08-29 11:57:11 +03:00 |
yuyi
|
4ce9ad6a56
|
util/module: fix mod_path_to_full_name() (#11329)
|
2021-08-29 11:56:05 +03:00 |
yuyi
|
8be2be8311
|
all: change 'if !(a in b)' to 'if a !in b' (#11330)
|
2021-08-29 11:55:18 +03:00 |
playX
|
118c5fdcd8
|
js: fix -stats compilation of tests, proper alias codegen (#11327)
|
2021-08-28 16:57:33 +03:00 |
Delyan Angelov
|
f41939f005
|
ci: fix deprecations.out (time is now > 2021/08/28 00:00:00)
|
2021-08-28 13:02:59 +03:00 |
Alexander Medvednikov
|
cf4081e2dd
|
all: more chdir/chmod fixes
|
2021-08-28 12:52:48 +03:00 |
yuyi
|
e90a624738
|
checker: fix generic fn infer variadic parameter with arrays (#11324)
|
2021-08-28 10:32:51 +03:00 |
Alexander Medvednikov
|
853d3cb83e
|
os: make chmod() return error
|
2021-08-28 09:37:24 +03:00 |
Alexander Medvednikov
|
858ba25d55
|
os: make chdir() return error
|
2021-08-28 09:35:39 +03:00 |
William Gooch
|
4d5521bbf7
|
scanner: clarify the float literal warning (#11313)
|
2021-08-27 16:49:29 +03:00 |
crthpl
|
a85467eb0f
|
cgen: fix `expr in shared_array` (#11319)
|
2021-08-27 11:48:32 +03:00 |
Delyan Angelov
|
16455a7660
|
fmt: preserve local fn parameter, when a module const with the same name is declared
|
2021-08-27 09:22:53 +03:00 |
playX
|
bdf11d969a
|
js: add basic support for running tests, fix string.replace_each (#11314)
|
2021-08-26 15:20:54 +03:00 |
yuyi
|
187c1c160b
|
parser: minor cleanup in comp_call() (#11311)
|
2021-08-26 07:57:10 +03:00 |
yuyi
|
b635ff80de
|
fmt: format '1.' to '1.0' (#11312)
|
2021-08-26 07:18:27 +03:00 |
Alexander Medvednikov
|
714fa3215c
|
scanner: make the 1. float error a warning for now
|
2021-08-25 16:58:54 +03:00 |
playX
|
109d5d5847
|
js: `os` now compiles to the JS backend, more builtins & minor codegen fixes (#11302)
|
2021-08-25 14:40:53 +03:00 |
yuyi
|
f257a23313
|
checker: check non-generic struct init (#11300)
|
2021-08-25 14:40:40 +03:00 |
yuyi
|
4d078edb72
|
scanner: no longer allow `1.` float literals (#11301)
|
2021-08-25 14:39:37 +03:00 |
yuyi
|
96398efd2b
|
checker: check array insert/prepend arguments (#11295)
|
2021-08-24 20:28:05 +03:00 |
pancake
|
3c85a03b8a
|
v.gen.native: initial support for the asm statement in the native backend (#11292)
|
2021-08-24 15:30:41 +03:00 |
pancake
|
57b148032f
|
v.gen.native: initial support for cast statements (#11291)
|
2021-08-24 15:26:49 +03:00 |
Lukas Neubert
|
3249f8f0e7
|
cgen: properly cast to sumtypes in array prepend and insert (#11289)
|
2021-08-24 06:25:09 +03:00 |
Alexander Medvednikov
|
4824b409b1
|
builder: simplify the C error message
|
2021-08-24 06:24:35 +03:00 |
playX
|
d78e7e3b2b
|
js: codegen fixes, W.I.P `os` availability for JS backend (#11281)
|
2021-08-23 14:25:02 +03:00 |
playX
|
dd486bb0fb
|
js: match support (#11269)
|
2021-08-22 19:36:49 +03:00 |
yuyi
|
b80777df4b
|
table: fix alias of sumtype method_call (#11268)
|
2021-08-22 17:20: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
|
2e28c9a4d6
|
checker: remove a duplicate check (#11265)
|
2021-08-22 12:09:14 +03:00 |
playX
|
2f6b2dd189
|
js: math.big support, f{32,64}_bits,from_bits support, typeof(expr).name support (#11260)
|
2021-08-21 17:18:57 +03:00 |
yuyi
|
0d81d0c0c6
|
table, checker: fix sumtype array appending aggregate type values (fix #11197) (#11258)
|
2021-08-21 17:18:01 +03:00 |
pancake
|
02d823fa6e
|
v.gen.native: support infinite loops `for {}` in amd64 and arm64 (#11254)
|
2021-08-20 14:23:15 +03:00 |
pancake
|
82b16453e4
|
v.gen.native: improve error messages for unsupported features (#11253)
|
2021-08-20 14:21:05 +03:00 |
yuyi
|
e87cf8bac6
|
checker: cleanup checker.v (#11251)
|
2021-08-20 10:25:16 +03:00 |
yuyi
|
6201e78201
|
checker: fix generic struct with non-generic interface in generic fn (#11252)
|
2021-08-20 09:28:26 +03:00 |
playX
|
1570e613b5
|
math: inf,nan,fmod for the JS backend (#11246)
|
2021-08-20 01:14:49 +03:00 |
yuyi
|
a440b43630
|
checker, cgen: fix generic struct with non_generic interface (#11240)
|
2021-08-20 01:13:48 +03:00 |
spaceface
|
67e8031a08
|
cgen: fix interface parameters in fn type aliases (#11247)
|
2021-08-20 01:12:31 +03:00 |
Leo Developer
|
7bffabbce2
|
vdoc: add `-comments` and new comment merger (#11221)
|
2021-08-19 10:20:43 +03:00 |
yuyi
|
3d22dc1608
|
all: fix formating Foo<A,B> to Foo<A, B> (#11225)
|
2021-08-18 17:17:21 +03:00 |
div72
|
881510e7ce
|
cgen: fix enum print (#11218)
|
2021-08-18 17:11:12 +03:00 |
spaceface
|
d2ce1f74d6
|
ast.table: fix aggregate field type equality check (#11210)
|
2021-08-18 14:09:54 +03:00 |
yuyi
|
e07678d6f3
|
checker: check using redundant parentheses (#11228)
|
2021-08-18 13:49:50 +03:00 |
spaceface
|
09e854c064
|
cgen: small interface conversion fix (#11229)
|
2021-08-18 13:47:57 +03:00 |
Delyan Angelov
|
9ca99c6f93
|
v.builder: add `-Wl,--allow-multiple-definition` when targeting FreeBSD
|
2021-08-18 12:57:44 +03:00 |
playX
|
0121c8b4fd
|
v.gen.js: fix method calls and other codegen parts, rand module compiles (#11205)
|
2021-08-18 11:33:37 +03:00 |
yuyi
|
c51f83efba
|
checker: fix match expr type mismatch (#11220)
|
2021-08-18 08:52:01 +03:00 |
spaceface
|
7d9969ac17
|
all: support runtime interface conversions (#11212)
|
2021-08-17 21:00:27 +03:00 |
spaceface
|
7c9a1defa4
|
fmt: preserve method receiver mutability in interface decls (#11222)
|
2021-08-17 19:39:53 +03:00 |
yuyi
|
e1c762a616
|
cgen: fix assert fn_call with parentheses (fix #11207) (#11214)
|
2021-08-17 18:21:15 +03:00 |
yuyi
|
8521e227b4
|
cgen: fix if expr of multi stmts (#11208)
|
2021-08-16 21:48:58 +03:00 |
Delyan Angelov
|
405ed584a1
|
v.vmod: return errors instead of panic-ing
|
2021-08-16 16:54:41 +03:00 |
Louis Schmieder
|
482eecbc13
|
cgen: fix comptime selector reserved field names (#11199)
|
2021-08-16 14:58:23 +03:00 |
yuyi
|
90b052b1db
|
v.gen.c: fix error of if_expr in infix_expr (#11200)
|
2021-08-16 11:23:19 +03:00 |
Lukas Neubert
|
1c847e04c8
|
fmt: fix malformed import for incorrect module lookup paths (#11192)
|
2021-08-16 05:15:32 +03:00 |
playX
|
659f823c5c
|
js: initial work on porting rand module to JS backend (#11188)
|
2021-08-15 18:09:51 +03:00 |
Delyan Angelov
|
0be20f1556
|
v.pref: keep the -error-limit option for now too
|
2021-08-15 13:46:50 +03:00 |
Leo Developer
|
b3094b0667
|
checker: abort prematurely on too many errors (#11185)
|
2021-08-15 13:41:51 +03:00 |
Delyan Angelov
|
6843b85063
|
ci: fix `clang -std=c99 -D_DEFAULT_SOURCE -o v vc/v.c` warnings
|
2021-08-15 11:12:48 +03:00 |
Delyan Angelov
|
eef7eea7bc
|
v.pref, v.builder: support `-no-std` (skips passing `-std=c99` to the C backend)
|
2021-08-15 11:05:06 +03:00 |
Delyan Angelov
|
f7cbcc241a
|
v.pref, v.builder: support `-no-rsp` (pass C options directly to the C compiler backend, without writing response files)
|
2021-08-15 10:47:44 +03:00 |
Delyan Angelov
|
f67e5d12e5
|
v.gen.c: fix v_typeof_interface_idx codegen (add `static `)
|
2021-08-15 09:15:33 +03:00 |
Delyan Angelov
|
3ffa6c1664
|
v.pref: fix `./v -usecache -cg run examples/hello_world.v`
|
2021-08-15 08:35:41 +03:00 |
yuyi
|
d3cf53ec41
|
cgen: fix a bug with autofree in if expr (#11182)
|
2021-08-15 07:55:27 +03:00 |
Delyan Angelov
|
d540b3f1a8
|
v.util: improve formatted_error by adding cached_file2sourcelines, so .split_into_lines is called just once (important for long source files with many errors)
|
2021-08-14 23:01:30 +03:00 |
Leo Developer
|
f6d7170e77
|
checker: changes related to warn/error limit (#11184)
|
2021-08-14 22:14:13 +03:00 |
Delyan Angelov
|
1743ad05c0
|
v.util: add a small cache for util.read_file, so reading individual source files is done just once
|
2021-08-14 21:59:28 +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 |
playX
|
b72d1e5e86
|
v.gen.js: implement `u64` and `i64` with BigInt (#11174)
|
2021-08-13 21:24:10 +03:00 |
Delyan Angelov
|
34d39ccb64
|
builtin: fix leak in rune.str(), fix leaks in most assert x == y statements in tests (#11091)
|
2021-08-13 18:37:34 +03:00 |
playX
|
aa14fd1b05
|
v.gen.js: support operator overloading (#11171)
|
2021-08-13 10:06:59 +03:00 |
yuyi
|
083a90148d
|
tests: supplement multi-instances generic testing (#11170)
|
2021-08-13 08:38:20 +03:00 |
yuyi
|
579aa7b1b5
|
v.checker: fix multi insts of generics fn with generic struct (#11161)
|
2021-08-12 22:58:02 +03:00 |
Delyan Angelov
|
47884dfd1f
|
builtin: move C. calls to .c.v files (#11164)
|
2021-08-12 21:46:38 +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 |
yuyi
|
90adf4d092
|
v.checker: fix multi insts of generics struct with array (#11142)
|
2021-08-11 16:59:13 +03:00 |
Delyan Angelov
|
a64a4d932c
|
v.checker: turn `interface field ... must be initialized` to a notice temporarily
|
2021-08-11 16:39:41 +03:00 |
Enzo
|
9d4d0a9894
|
v.gen.c: generate the closure helper for the choosen target platform, not the current one (#11134)
|
2021-08-11 14:09:40 +03:00 |
wilesun
|
18be9e52be
|
log: avoid using string__plus memory leak (#11128)
|
2021-08-11 09:26:02 +03:00 |
playX
|
70124d2d23
|
js: time module: implement utc,now,local (#11138)
|
2021-08-11 09:22:53 +03:00 |
Enzo
|
da53f818df
|
all: initial support for closures (x64 / linux-only) (#11114)
|
2021-08-10 21:27:15 +03:00 |
pancake
|
2cfb8fd697
|
native: document arm64 registers with comments (#11122)
|
2021-08-10 21:15:32 +03:00 |
yuyi
|
aceaaa681d
|
ast: fix formatting fn variadic of reference param (#11130)
|
2021-08-10 21:14:37 +03:00 |
Daniel Däschle
|
2ae77c1998
|
v.scanner: fix escaped backslash after string interpolation (#11118)
|
2021-08-10 17:04:42 +03:00 |
yuyi
|
11794039e2
|
v.gen.c: fix fn variadic of reference param (#11115)
|
2021-08-10 10:36:11 +03:00 |
pancake
|
e7b8cf17e5
|
v.gen.native: add support for assert statements for amd64 (#11117)
|
2021-08-10 10:29:44 +03:00 |
Enzo
|
506c30a291
|
builtin: remove methods that can be autogenerated (#11109)
|
2021-08-09 15:42:31 +03:00 |
Enzo
|
1a555ab898
|
v.gen.c: fix generation for `string.index` (#11106)
|
2021-08-09 07:39:15 +03:00 |
Daniel Däschle
|
a64b191ce5
|
checker: forbid multiple pointer yields (#11105)
|
2021-08-09 02:11:53 +03:00 |
yuyi
|
eed8c4671f
|
cgen: fix fn mut arg of array (#11104)
|
2021-08-09 01:49:30 +03:00 |
playX
|
7a67a08d2f
|
js: implement codegen for array.sort and implement .any,.all (#11100)
|
2021-08-09 01:46:40 +03:00 |
yuyi
|
1f3f7705a2
|
cgen: fix struct_init with fixed array field (#11099)
|
2021-08-08 10:54:52 +03:00 |
Alexander Medvednikov
|
03ed32f805
|
ast: bring back Table.free() for now
|
2021-08-08 07:07:06 +03:00 |
Alexander Medvednikov
|
eaf8b63dd2
|
cgen: fix a c2v bug with variadics
|
2021-08-08 06:23:22 +03:00 |
Daniel Däschle
|
9af65d8830
|
checker: protect against assigning to a typeless variable (#11094)
|
2021-08-07 18:09:07 +03:00 |
yuyi
|
1d3786ff1e
|
v.parser: fix `if a == Abc{} {` (#11092)
|
2021-08-07 18:05:22 +03:00 |
playX
|
94c321c80d
|
v.gen.js: port fully the array test suite & add fixes (#11073)
|
2021-08-07 17:58:49 +03:00 |
Uwe Krüger
|
c560d58f1e
|
cgen: use heuristic to detect circular reference in auto str (#11090)
|
2021-08-07 14:56:09 +03:00 |
Caden Haustein
|
cf0767ad6c
|
v: add constant folding AST transformation (#11085)
|
2021-08-06 23:19:18 +03:00 |
yuyi
|
ec39e38e14
|
cgen: fix generic method on alias struct receiver (#11080)
|
2021-08-06 21:26:54 +03:00 |
Daniel Däschle
|
3b116d2455
|
cgen: support embedded struct fields on sumtype common fields (#11084)
|
2021-08-06 21:26:19 +03:00 |
Dialga
|
25d49bc615
|
orm: handle empty fields (#11083)
|
2021-08-06 21:25:38 +03:00 |
alula
|
e1cc1665dc
|
cgen: push function arguments in fn_args() (#11086)
|
2021-08-06 20:01:20 +03:00 |
Uwe Krüger
|
e89bed3e25
|
ci: temporarily deactivate test case for #11061 (fixes CI timeouts) (#11079)
|
2021-08-06 12:46:56 +03:00 |
zakuro
|
490dec222f
|
fmt: keep char literal, `'` (#11060)
|
2021-08-06 06:21:28 +03:00 |
Daniel Däschle
|
91ade5bf8c
|
cgen: fix shared field init (#11061)
|
2021-08-06 05:11:03 +03:00 |
Enzo
|
44bacfc931
|
cgen: fix optional generation order (#11070)
|
2021-08-06 03:57:34 +03:00 |
Enzo
|
7346aeca5f
|
cgen: refactor array sort generation (#11067)
|
2021-08-06 03:55:48 +03:00 |
Daniel Däschle
|
8d2567740b
|
parser: make [..] work (#11064)
|
2021-08-06 03:54:24 +03:00 |
yuyi
|
c30cda3daf
|
v.gen.c: fix error of `println(alias of struct)` (#11062)
|
2021-08-05 20:20:10 +03:00 |
yuyi
|
11784279ba
|
checker: check fn_call().sort() (fix #11040) (#11056)
|
2021-08-04 21:23:22 +03:00 |