Nick Treleaven
|
50163508f8
|
gen: implement type_name method for sum type instances (#6802)
|
2020-11-14 13:59:03 +02:00 |
Delyan Angelov
|
ba8cdb2977
|
vfmt: fix `$for method in App.methods {}` turning to App(methods)
|
2020-11-14 12:24:46 +02:00 |
Delyan Angelov
|
023cddb160
|
cgen: remove .replace('T', ...)
|
2020-11-14 10:36:59 +02:00 |
Daniel Däschle
|
9c569246ef
|
cgen: fix typeof union sum type (#6794)
|
2020-11-12 12:27:54 +01:00 |
Daniel Däschle
|
43ce098043
|
cgen: fix default value init for union sum types (#6795)
|
2020-11-11 19:56:13 +02:00 |
Daniel Däschle
|
6271798ce3
|
cgen: union sum types implementation (#6745)
|
2020-11-11 09:18:15 +01:00 |
spaceface777
|
bb91dc90a5
|
checker: fix `&` on pointers (#6787)
|
2020-11-10 13:12:21 +02:00 |
Nick Treleaven
|
c76e486765
|
parser: implement `T.name` for generic types (#6783)
|
2020-11-09 14:35:26 +01:00 |
Alexander Medvednikov
|
1c257abc23
|
autofree: simplify: merge tmp arg logic with scope vars
|
2020-11-09 14:24:46 +01:00 |
Alexander Medvednikov
|
507d724ee6
|
autofree: free before return tests
|
2020-11-09 11:54:45 +01:00 |
Nick Treleaven
|
931882d720
|
checker: support ?T, &T generic return types (#6772)
|
2020-11-07 18:27:10 +02:00 |
Nick Treleaven
|
125650c986
|
cgen: fix using brackets for match expression (#6768)
|
2020-11-07 14:47:27 +01:00 |
Alexander Medvednikov
|
0e8c7ca2e3
|
autofree: fix string reassignment
|
2020-11-07 04:00:45 +01:00 |
Nick Treleaven
|
62cae1ba00
|
parser: parse func<T>() when T is a map or array type (#6765)
|
2020-11-07 02:55:28 +01:00 |
Ned Palacios
|
6d8a7ced24
|
cgen: fix setting nested map elements fields (#6744)
|
2020-11-06 16:32:44 +02:00 |
Alexander Medvednikov
|
3e5871ffb3
|
autofree: disable optional_return test for now
|
2020-11-06 10:30:27 +01:00 |
Alexander Medvednikov
|
212e6fe52c
|
autofree: do not run in `builtin`
|
2020-11-06 10:13:05 +01:00 |
Nick Treleaven
|
ca8d23acab
|
table: make Table.type_to_str generate proper function type, not fn name (#6716)
|
2020-11-05 06:34:56 +01:00 |
Daniel Däschle
|
9d5be12517
|
gen: add prefix when printing type aliases (#6701)
|
2020-11-03 14:13:35 +01:00 |
Nick Treleaven
|
788de9938a
|
cgen: fix typeof(expr).name for generic type, pointers, etc (#6712)
|
2020-11-02 22:59:48 +01:00 |
Delyan Angelov
|
2202ee5d66
|
tests: add tests for continue/break in last statement of an `or{}`
|
2020-11-02 12:54:45 +02:00 |
Alexander Medvednikov
|
06e4c45350
|
tests: re-enable valgrind tests
|
2020-11-02 01:25:16 +01:00 |
Delyan Angelov
|
e2505479ee
|
cgen: encode newlines as \n in the assert meta information
|
2020-11-01 17:01:45 +02:00 |
Daniel Däschle
|
9fdf04b7ff
|
cgen: make generics printable (#6700)
|
2020-10-31 19:43:06 +02:00 |
Alexander Medvednikov
|
791fda16d3
|
fmt: handle "it" in lambdas
|
2020-10-30 07:35:44 +01:00 |
Alexander Medvednikov
|
2c75b1397c
|
all: struct embedding
|
2020-10-30 07:09:26 +01:00 |
Alexander Medvednikov
|
423044d4d6
|
autofree: skip lambda for now
|
2020-10-29 08:59:13 +01:00 |
Alexander Medvednikov
|
71dfec3c4d
|
autofree: generate unique names for each arg
|
2020-10-29 08:26:45 +01:00 |
Alexander Medvednikov
|
21002bf2de
|
autofree: fix re-assigning an optional
|
2020-10-29 07:06:58 +01:00 |
Alexander Medvednikov
|
f19ca6b411
|
autofree: simplify, use more scoping, fix expressions inside or blocks
|
2020-10-29 01:09:38 +01:00 |
Delyan Angelov
|
0c192cfd64
|
tests: fix warnings when doing `./v -W -progress -check-syntax test-fixed`
|
2020-10-26 14:41:57 +02:00 |
Alexander Medvednikov
|
42da37e900
|
autofree: fix if expressions
|
2020-10-24 19:06:31 +02:00 |
Alexander Medvednikov
|
3b3501cf09
|
autofree: if expression fixes
|
2020-10-23 22:50:22 +02:00 |
Alexander Medvednikov
|
66b8462d7a
|
autofree: handle method chains
|
2020-10-22 03:51:28 +02:00 |
Alexander Medvednikov
|
6d11caf784
|
autofree: string.replace() test
|
2020-10-21 19:44:31 +02:00 |
Delyan Angelov
|
5c93f942be
|
docs,tests: add project_with_c_code_2 (passing structs from C to V to C)
|
2020-10-20 17:59:48 +03:00 |
Delyan Angelov
|
2440413310
|
tests: turn off live_test.v on macos for now (due to frequent false positives)
|
2020-10-18 19:45:49 +03:00 |
Alexander Medvednikov
|
55536bb364
|
autofree: handle more statements
|
2020-10-18 00:48:06 +02:00 |
Lukas Neubert
|
dea8662d6b
|
cli: show help for empty root command (#6636)
|
2020-10-17 19:06:27 +03:00 |
Delyan Angelov
|
140166e1cd
|
interpolation: support '' (rounding like in C)
|
2020-10-16 17:28:11 +03:00 |
Delyan Angelov
|
6cea20e427
|
tests: fix warnings in live_test.v
|
2020-10-15 23:15:00 +03:00 |
Alexander Medvednikov
|
3d4ab7de1e
|
checker: update tests
|
2020-10-15 12:39:32 +02:00 |
Delyan Angelov
|
3795aaab5c
|
v test-fmt: reformat some skipped files, comment on the remaining ones
|
2020-10-15 00:39:09 +03:00 |
Alexander Medvednikov
|
9355c60b4d
|
cgen: fix for mut val and enable the test
|
2020-10-14 13:34:49 +02:00 |
Alexander Medvednikov
|
25947a7b23
|
autofree: handle args in optional returns
|
2020-10-14 13:23:58 +02:00 |
Alexander Medvednikov
|
ea09bd5e45
|
checker/fmt: `for mut val` fixes
|
2020-10-14 12:50:19 +02:00 |
Alexander Medvednikov
|
a07f31feae
|
all: `for mut val in vals {` (part 1)
|
2020-10-13 16:27:30 +02:00 |
Nick Treleaven
|
78bcda14c4
|
checker: infer T from parameter of type `[]T` (#6611)
|
2020-10-13 15:15:25 +03:00 |
Delyan Angelov
|
62f6e65509
|
repl: fix `reset`; make `echo "print(2.0 * 3.14159)" | ./v` print only the result
|
2020-10-11 10:50:24 +03:00 |
Delyan Angelov
|
604b28b1c5
|
cgen: fix for `type FdfFn = fn(...) (x,y)`
|
2020-10-11 09:53:35 +03:00 |
Enzo
|
6038264a4c
|
gen: fix slicing mutable arguments (#6596)
|
2020-10-10 12:03:23 +02:00 |
Alexander Medvednikov
|
1332bba7af
|
autofree: wrap up optionals
|
2020-10-10 10:34:51 +02:00 |
Alexander Medvednikov
|
c463c26983
|
autofree: optionals fix
|
2020-10-09 01:13:31 +02:00 |
Alexander Medvednikov
|
7d65e4cb10
|
autofree: fix and test var declarations
|
2020-10-08 17:10:20 +02:00 |
Swastik Baranwal
|
aea52af9ae
|
checker: add is_mut check for disallowing taking address of map's key and array's element outside unsafe (#6573)
|
2020-10-08 09:37:18 +03:00 |
shnorbluk
|
b940dc4f8a
|
cli: help displayed when a Command has no execute function (fix #6530) (#6567)
|
2020-10-07 05:39:13 +02:00 |
Nick Treleaven
|
f7decfe399
|
checker: infer generic type T from matching fn call argument (#6298)
|
2020-10-06 15:34:02 +02:00 |
Delyan Angelov
|
06a02c41c3
|
tests: reduce probability of locks during macos runs of live_test.v
|
2020-10-05 21:20:42 +03:00 |
Swastik Baranwal
|
d77669da80
|
test: add tests for disallowing map/array get element/key address (#6568)
|
2020-10-05 18:40:51 +03:00 |
Swastik Baranwal
|
5f07b255bd
|
checker: disallow address of array and map index outside unsafe (#6557)
|
2020-10-05 13:08:30 +02:00 |
Enzo
|
35a83464d0
|
gen: separate sumtype from classic match (#6547)
|
2020-10-04 19:50:23 +02:00 |
Delyan Angelov
|
0c174104fc
|
checker: allow &=,|=,^=,%= on an integer number type aliases
|
2020-10-04 15:29:09 +03:00 |
Swastik Baranwal
|
7e13518cc2
|
parser: disallow match expr at certain places (#6490)
|
2020-10-03 16:30:58 +03:00 |
Enzo
|
677b0ba2d2
|
gen: access fields in multi-type sumtype match (#6541)
|
2020-10-03 11:19:43 +02:00 |
kalapalo
|
eefe067c27
|
cgen: fix `as` cast when sumtype is the result of a function call (#6537)
|
2020-10-03 05:04:15 +02:00 |
Daniel Däschle
|
2204bad7cf
|
gen: removes space on struct printing (#6535)
|
2020-10-02 13:06:02 +02:00 |
Delyan Angelov
|
70c87137a9
|
live_test.v: wait 5 times more on macos
|
2020-10-02 11:38:49 +03:00 |
Daniel Däschle
|
8e8e808fc9
|
gen: fix sumtype custom str (#6534)
|
2020-10-02 09:32:07 +02:00 |
Enzo
|
324d547cdb
|
parser: allow multiple types in match branch (#6505)
|
2020-10-01 01:07:36 +02:00 |
Alexander Medvednikov
|
ae7689f739
|
autofree: simplify, clean up, and fix complex arg exprs
|
2020-09-30 07:27:24 +02:00 |
Daniel Däschle
|
c38a050125
|
cgen: fix array and map printing (#6508)
|
2020-09-30 01:26:27 +02:00 |
Ned Palacios
|
1aec041371
|
json: fix encode/decode support for generic structs (#6489)
|
2020-09-29 03:15:00 +02:00 |
Daniel Däschle
|
06cade6c31
|
all: change .ReturnType and .Type to .return_type and .typ (#6494)
|
2020-09-28 06:13:38 +02:00 |
Alexander Medvednikov
|
3d5292b63f
|
tcp/udp: fix mutability
|
2020-09-27 03:40:59 +02:00 |
Alexander Medvednikov
|
e2c7126d11
|
checker: verify mutability of method args
|
2020-09-27 03:14:24 +02:00 |
Daniel Däschle
|
d782de5b00
|
gen: struct str fixes (#6483)
|
2020-09-25 23:12:33 +02:00 |
Daniel Däschle
|
abc98c273c
|
parser: require assign on type alias (#6477)
|
2020-09-25 12:02:32 +02:00 |
Daniel Däschle
|
90d1a689db
|
gen: fix str gen for pointers in structs (#6462)
|
2020-09-24 21:14:16 +02:00 |
Alexander Medvednikov
|
47a62b12d4
|
autofree: advanced expr test
|
2020-09-24 19:22:16 +02:00 |
Daniel Däschle
|
4f09ddccb4
|
cgen: implement sum type str gen (#6454)
|
2020-09-23 20:51:51 +02:00 |
Uwe Krüger
|
9c0758639b
|
cgen: fix `for match {...} {` and `for select {...} {` (#6441)
|
2020-09-23 06:05:12 +02:00 |
Henrixounez
|
e429a77de2
|
gen: named imported structs operator overloading and str methods (#6433)
|
2020-09-20 19:51:14 +02:00 |
Nick Treleaven
|
9958881cbe
|
parser: support parsing unsafe (as first token) as UnsafeExpr (#6032)
|
2020-09-19 19:18:36 +03:00 |
Delyan Angelov
|
78e6ddee75
|
tests: enable running `v test .` inside vlib/v/ too
|
2020-09-18 19:20:01 +03:00 |
Henrixounez
|
4038ac463c
|
gen: bytes array print not ending prematurely when null byte (#6401)
|
2020-09-18 01:12:32 +02:00 |
Delyan Angelov
|
bbf4983524
|
autofree: add option_reassigned.v and option_simple.v tests.
|
2020-09-14 13:04:24 +03:00 |
Alexander Medvednikov
|
bffa100aa6
|
autofree: optional fix
|
2020-09-13 21:36:33 +02:00 |
Alexander Medvednikov
|
fc88f43e50
|
autofree: make optional methods work
|
2020-09-13 03:20:34 +02:00 |
Alexander Medvednikov
|
f074d766e5
|
ci: disable gitly autofree build for now
|
2020-09-13 03:06:16 +02:00 |
Alexander Medvednikov
|
b74c1805d7
|
cgen/autofree: fix and simplify optionals
|
2020-09-12 16:40:52 +02:00 |
Delyan Angelov
|
96c22a26b9
|
tests: cleanup if_smartcast_test.v
|
2020-09-11 22:00:13 +03:00 |
Delyan Angelov
|
d46c1f0f20
|
tests: fix sporadic waitgroup failure on slow windows VMs in anon_fn_test.v
|
2020-09-11 16:00:24 +03:00 |
Alexander Medvednikov
|
e0d20eadff
|
autofree: free strings on re-assignments
|
2020-09-11 13:55:20 +02:00 |
Alexander Medvednikov
|
17882db635
|
autofree: disable ?string test for now
|
2020-09-10 22:19:18 +02:00 |
Alexander Medvednikov
|
67cc515e74
|
autofree: ?string test
|
2020-09-10 13:41:30 +02:00 |
Alexander Medvednikov
|
03327e5161
|
time: minor fixes + vfmt
|
2020-09-10 13:26:01 +02:00 |
Alexander Medvednikov
|
925f1781b3
|
checker: default field fixes
|
2020-09-09 14:05:56 +02:00 |
Ruofan XU
|
90128ed4ee
|
cc: add support for tcc backend on windows-i386 (#6297)
|
2020-09-08 15:15:35 +02:00 |
Enzo
|
18034bb95c
|
gen: fix multiple call of expression in match (#6324)
|
2020-09-08 00:38:24 +02:00 |
Nick Treleaven
|
497bf226e2
|
add TESTS.md file to explain different tests (#6318)
|
2020-09-07 13:48:15 +02:00 |
Uwe Krüger
|
2cb711ee15
|
checker/channels: check `mut`/`&` state of transmitted objects (#6315)
|
2020-09-06 21:24:41 +02:00 |
Alexander Medvednikov
|
9fbea31f47
|
autofree: fix exprs N levels deep
|
2020-09-06 13:02:32 +02:00 |
Uwe Krüger
|
047bf02985
|
builtin: fix `in` for various numeric types (#6311)
|
2020-09-06 12:45:02 +02:00 |
Alexander Medvednikov
|
3410705974
|
autofree: lots of fixes
|
2020-09-05 12:00:35 +02:00 |
Uwe Krüger
|
cbcba2e4cf
|
parser: enable module auto import (of `sync`) (#6271)
|
2020-08-31 10:44:39 +02:00 |
Nick Treleaven
|
5d3d14da53
|
cgen: support `typeof(expr).name` (#6253)
|
2020-08-30 08:56:18 +02:00 |
Uwe Krüger
|
fe8286c53c
|
checker: implement implicit conversions/promotions to `rune` (#6249)
|
2020-08-29 01:59:07 +02:00 |
Alexander Medvednikov
|
789674bd5a
|
tests: autofree: use -experimental flag
|
2020-08-28 10:22:28 +02:00 |
Alexander Medvednikov
|
0890562663
|
tests: autofree tmp expr test
|
2020-08-28 10:08:32 +02:00 |
spaceface777
|
eff319f869
|
comp_for: allow checking full mehod and arg types (#5997)
|
2020-08-27 15:00:44 +02:00 |
Alexander Medvednikov
|
15bdb8f7cd
|
autofree: tmp arg var frees fixes
|
2020-08-27 11:30:35 +02:00 |
Alexander Medvednikov
|
84b8e0a7e4
|
tests: enable live tests on macos
|
2020-08-26 06:50:32 +02:00 |
Delyan Angelov
|
e3f79df3ac
|
tests: support .vv in compiler_test.v too
|
2020-08-25 18:52:28 +03:00 |
Delyan Angelov
|
1619beda91
|
tests: fix repl_test.v
|
2020-08-25 15:59:07 +03:00 |
Delyan Angelov
|
ceca1547fb
|
valgrind: fix valgrind_test.v
|
2020-08-25 15:48:11 +03:00 |
Alexander Medvednikov
|
c8b3cd2957
|
tests: simplify valgrind tests, remove .vv
|
2020-08-25 13:58:21 +02:00 |
Alexander Medvednikov
|
33b4ff75d0
|
builder: handle bad extensions and support .vv
|
2020-08-25 13:32:27 +02:00 |
Nick Treleaven
|
479bfa28de
|
cgen: implement fixed array `.len` property (#6212)
|
2020-08-25 08:48:28 +02:00 |
Alexander Medvednikov
|
d547f74cb0
|
checker/cgen: interface smart casts
|
2020-08-24 11:10:26 +02:00 |
Yarila682
|
7dde82322a
|
cgen: fix dereferencing a mutable array (#6191)
|
2020-08-22 12:48:09 +02:00 |
Nick Treleaven
|
98c39a37c0
|
scanner: warn about interpolation for `$f(expr)` (#6179)
|
2020-08-22 05:48:06 +02:00 |
Nick Treleaven
|
217f04e311
|
checker: disallow casting to bool, use `some_int != 0` instead (#6138)
|
2020-08-19 14:37:55 +02:00 |
Nick Treleaven
|
e69f091bbd
|
parser: require `(` on same line as name token for fn call or cast (#6160)
|
2020-08-19 02:37:17 +02:00 |
Daniel Däschle
|
b5c1ea44dc
|
all: fix mutability after if-smartcast (#6129)
|
2020-08-17 21:11:11 +02:00 |
Nick Treleaven
|
36c98b3e5d
|
cgen: implement fixed array 'for in' for lvalue condition (#6151)
|
2020-08-17 21:10:47 +02:00 |
Delyan Angelov
|
191c908f3a
|
tests/valgrind: vfmt fn_with_return_should_free_local_vars.vv
|
2020-08-16 13:22:32 +03:00 |
Delyan Angelov
|
fbe02c5ae1
|
tests/valgrind: add skipped fn_with_return_should_free_local_vars.vv (-autofree)
|
2020-08-16 13:20:02 +03:00 |
Nick Treleaven
|
0f0a91fc9e
|
parser: support custom fixed size ArrayInit: `[3]int{init: -1}` (#6114)
|
2020-08-15 11:01:54 +02:00 |
Nick Treleaven
|
75212f9fab
|
cgen: error if ForInStmt is not handled (#6131)
|
2020-08-14 21:01:43 +02:00 |
Nick Treleaven
|
6016f28171
|
cgen: fix assigning ArrayInit to fixed array: `a = [3]int` (#6115)
|
2020-08-14 13:57:00 +02:00 |
Nick Treleaven
|
078ab47a9a
|
cgen: support `==`, `!=` on FixedArray (#6119)
|
2020-08-14 02:03:38 +02:00 |
Daniel Däschle
|
64e8125807
|
cgen: fixe calling anon fn asynchronously (closes #6088) (#6121)
|
2020-08-13 20:06:56 +02:00 |
Alexander Medvednikov
|
1a9dba0005
|
checker: make << shifts work with custom number types
|
2020-08-11 01:05:34 +02:00 |
Alexander Medvednikov
|
88988817d0
|
parser: minor `match` simplification
|
2020-08-10 19:54:38 +02:00 |
Delyan Angelov
|
36eae1c175
|
builtin: x.vstring() instead of string(x) (#6102)
|
2020-08-10 18:05:26 +02:00 |
Nick Treleaven
|
2dd90de993
|
parser: error on `[unsafe_fn]` (#6090)
|
2020-08-09 12:22:11 +03:00 |
Nick Treleaven
|
6cc8815931
|
parser: support [unsafe] instead of [unsafe_fn] (#6066)
|
2020-08-08 16:24:05 +02:00 |
Alexander Medvednikov
|
ce4ee2b247
|
v0.1.29
|
2020-08-06 19:36:52 +02:00 |
Uwe Krüger
|
d63daa0798
|
sync: use `mfence` on windows-tcc (#6079)
|
2020-08-06 17:31:05 +02:00 |
Uwe Krüger
|
863cf8af60
|
sync: channel implementation (#6074)
|
2020-08-06 15:28:19 +02:00 |
Delyan Angelov
|
d1257f5590
|
tests/valgrind: add skipped fn_returning_string_param.vv (-autofree)
|
2020-08-05 19:35:18 +03:00 |
Delyan Angelov
|
6c27ce58ed
|
v.util.vtest: extract the common code for VTEST_ONLY in a single place
|
2020-08-05 19:34:27 +03:00 |
Nick Treleaven
|
c33dbbc216
|
fmt: don't add newlines for UnsafeExpr (#6048)
|
2020-08-04 00:29:10 +02:00 |
Alexander Medvednikov
|
f269cbdc94
|
Revert "parser: Support `unsafe(expr)` (#5973)"
This reverts commit 19c226fcf8 .
|
2020-07-29 21:41:47 +02:00 |
Delyan Angelov
|
9c9533dad9
|
checker: add error for `fn f() Struct { return &Struct{} }` (#6019)
|
2020-07-29 21:40:43 +02:00 |
Delyan Angelov
|
81f8e910e6
|
compiler: remove space at the end of warn/error messages to minimize diff churn
|
2020-07-29 20:37:55 +03:00 |
Ruofan XU
|
1d59d35129
|
cgen: fix sum type match (#5978)
|
2020-07-28 22:17:25 +02:00 |
Nick Treleaven
|
19c226fcf8
|
parser: Support `unsafe(expr)` (#5973)
|
2020-07-28 11:20:52 +03:00 |
Enzo
|
2de1437a1e
|
ci: vet all files from the compiler (#5994)
|
2020-07-27 12:15:29 +02:00 |
Delyan Angelov
|
88345d759a
|
tests: add support for skipping to valgrind_test.v
|
2020-07-26 16:09:58 +03:00 |
Ruofan XU
|
7027b2354b
|
cgen: fix array and map with fns (#5938)
|
2020-07-26 14:22:02 +02:00 |
Delyan Angelov
|
9e652c4f40
|
ci: fix remaining failing tests. Do mut ptr check only outside unsafe{} blocks.
|
2020-07-26 10:59:07 +03:00 |
Louis Schmieder
|
b58b15993c
|
gen: compile time for (methods and fields) (#5957)
|
2020-07-25 00:02:44 +02:00 |
Delyan Angelov
|
d204c926a8
|
tests: fix compilation of if_smartcast_test.v
|
2020-07-24 10:30:22 +03:00 |
Delyan Angelov
|
276c1de190
|
unsafe: tag with unsafe{} some more pointer manipulations
|
2020-07-22 21:42:51 +03:00 |
Ryan Willis
|
938e71b468
|
v: fix for `import cli { Command }`
|
2020-07-22 20:33:43 +03:00 |
Ruofan XU
|
a370dd2867
|
cgen: further fixes to and array/map of fns (#5916)
|
2020-07-22 02:30:44 +02:00 |
Delyan Angelov
|
0af415fa28
|
vlib: add unsafe{} wrappers to C. fn calls, to allow compiling with -prod again
|
2020-07-21 09:05:31 +03:00 |
Nick Treleaven
|
15ca64d81d
|
tests: rename pointer_arithmetic_should_be_checked.vv -> unsafe_required.vv (#5897)
|
2020-07-20 23:04:22 +03:00 |
Ruofan XU
|
88c8e194d0
|
cgen: fix map and array with fns (#5894)
|
2020-07-20 19:53:02 +03:00 |
Delyan Angelov
|
fb4c3ff31a
|
tests: split unsafe.v to vlib/v/tests/unsafe_test.v and a checker output .vv&.out test
|
2020-07-20 16:53:27 +03:00 |
Delyan Angelov
|
587b9dd8aa
|
tests: reduce iterations for the atomic and semaphore tests, to speed up test-fixed
|
2020-07-20 11:14:55 +03:00 |
Ruofan XU
|
9f6aacb739
|
cgen: fix array of fns init (#5884)
|
2020-07-19 21:44:03 +02:00 |
Ryan Willis
|
1114fd28d0
|
all: import individual symbols feature (#5872)
|
2020-07-18 21:34:38 +02:00 |
XeGrox
|
e5a508c0d7
|
checker: fix inability to access aliased struct fields (#5861)
|
2020-07-18 13:58:16 +02:00 |
Nick Treleaven
|
105a0e015e
|
checker: warn if unsafe method called outside unsafe block (#5863)
|
2020-07-17 19:14:12 +02:00 |
Nick Treleaven
|
39f90e25f3
|
all: `if` guard optional: define `err` in `else` branch (#5853)
|
2020-07-17 19:10:01 +02:00 |
Uwe Krüger
|
ea322bdd97
|
checker, cgen: fix call of generic function returning normal type (#5865)
|
2020-07-17 18:28:45 +02:00 |
Uwe Krüger
|
f6947d111b
|
parser: fix `sizeof(int)` when used as call arg for external function (#5855)
|
2020-07-17 11:31:35 +03:00 |
spaceface777
|
3583302ad4
|
parser: force `...` rather than `..` in matches for inclusive ranges (#5852)
|
2020-07-17 11:30:21 +03:00 |
spaceface777
|
b900577dae
|
compiler: handle ranges as `match` conditions (#5847)
|
2020-07-16 16:41:18 +03:00 |
Uwe Krüger
|
8df6e59678
|
sync: add semaphores (#5831)
|
2020-07-15 10:22:33 +02:00 |
Enzo
|
880c8e4dc9
|
cgen: else if guard (#5822)
|
2020-07-14 17:19:55 +02:00 |
Delyan Angelov
|
a565848dfa
|
tests: remove duplicate test autolock_array_1_test.v
|
2020-07-13 15:02:44 +03:00 |
Uwe Krüger
|
6e6010d198
|
checker, cgen: implement auto-lock for `a[i]++`, `a[i]--` (#5817)
|
2020-07-13 15:01:32 +03:00 |
Delyan Angelov
|
b04fff272e
|
tests: move autolock_array_1.v to autolock_array_1_test.v
|
2020-07-13 14:21:44 +03:00 |
Uwe Krüger
|
aa364ddaca
|
checker, cgen: checks for shared/lock, first autolock (#5815)
|
2020-07-13 12:19:28 +02:00 |
Nick Treleaven
|
53023c1ca9
|
all: add UnsafeExpr (#5793)
|
2020-07-12 12:58:33 +02:00 |
Delyan Angelov
|
2fb5c91f4d
|
scanner: remove error check for embedded \x00 chars in c'literals'
|
2020-07-10 21:42:03 +03:00 |
yuyi
|
bf14e666ea
|
cgen: add `gen_map_equality_fn` to compare maps (#5770)
|
2020-07-10 18:08:17 +02:00 |
Daniel Däschle
|
c5dc1a33b6
|
all: remove `it` smartcast and replace with original variable name (#5764)
|
2020-07-09 17:14:14 +02:00 |
Delyan Angelov
|
73a259496e
|
tests: support `VTEST_ONLY=fn_,match_ ./v test-fixed` and in compiler_test.v
|
2020-07-09 10:47:16 +03:00 |
Tomas Hellström
|
2790890bc2
|
ci: use pre built docker containers for musl (#5759)
|
2020-07-08 21:30:57 +03:00 |
Daniel Däschle
|
c0fa31e75a
|
cgen: if smartcast part 3 (#5755)
|
2020-07-08 19:14:47 +02:00 |
Nick Treleaven
|
f834276803
|
doc: struct literals (#5726)
|
2020-07-08 16:02:35 +02:00 |
yuyi
|
64e9bdc213
|
parser: fix non-void optional fn missing return value (fix #5736) (#5741)
|
2020-07-08 16:01:17 +02:00 |
Delyan Angelov
|
69d3c3f596
|
cgen: sort const inits/cleanups topologically, skip calling non `fn init(){}` fns
|
2020-07-08 14:28:58 +03:00 |
Alexander Medvednikov
|
2425c05c42
|
Revert "cgen: sort const inits/cleanups topologically too"
This reverts commit 38000f8622 .
|
2020-07-08 12:56:56 +02:00 |
Uwe Krüger
|
88248b1b66
|
cgen: add support for shared arrays (#5721)
|
2020-07-08 11:05:43 +02:00 |
Delyan Angelov
|
38000f8622
|
cgen: sort const inits/cleanups topologically too
|
2020-07-08 11:22:30 +03:00 |
Ruofan XU
|
9c87ace153
|
cgen: fix cross assign for functions (#5734)
|
2020-07-08 09:17:26 +03:00 |
yuyi
|
bd16dd9fdf
|
cgen: fix assert `sumtype is` (#5739)
|
2020-07-08 09:05:01 +03:00 |
joe-conigliaro
|
5fd5e558ae
|
parser/checker/gen: anon fn direct call with args
|
2020-07-08 01:10:39 +10:00 |
Tarang11
|
68e01d87be
|
checker: fix multi assignment for multiple fns (#5716)
|
2020-07-07 14:18:51 +02:00 |
Uwe Krüger
|
ef02373061
|
all: remove `rwshared` keyword, make its semantics default for `shared` (#5710)
|
2020-07-07 01:57:31 +02:00 |
joe-conigliaro
|
9a4d989188
|
test: move sumtype int cast test into fn & test var
|
2020-07-06 23:39:51 +10:00 |
joe-conigliaro
|
d82e6c9cd9
|
checker/table: fix sumtype cast from int literal
|
2020-07-06 21:27:48 +10:00 |
Delyan Angelov
|
25771a1afe
|
compiler: remove -keepc option (it is now always on)
|
2020-07-06 13:42:18 +03:00 |
yuyi
|
fc7237be7b
|
checker: fix cast to sum type (fix #5690) (#5692)
|
2020-07-06 12:32:59 +02:00 |
Uwe Krüger
|
c3614c0e38
|
cgen, sync: implement separate read/write locks for `rwshared` types (#5687)
|
2020-07-05 22:53:28 +02:00 |