Delyan Angelov
e70bde54dc
ast: improve Expr.str() for sizeof(Type)
and __offsetof(StructName, fieldname)
, for more informative asserts/dumps
2021-06-12 16:49:14 +03:00
pancake
3b6045865b
checker: improve error message when using fields as methods ( #10367 )
2021-06-12 15:15:25 +03:00
Andreas Heissenberger
a71e382b95
docs: add a Module Publish section ( #10407 )
2021-06-12 15:12:47 +03:00
shadowninja55
85e9300a78
v help: add all tool commands to v help <command>
( #10419 )
2021-06-12 15:10:30 +03:00
Alexander Medvednikov
635f045b14
ast: make is_int() work with aliases
2021-06-12 14:35:38 +03:00
Uwe Krüger
652e7ba973
gc: extend optimized mode to strings ( #10431 )
2021-06-12 11:27:08 +03:00
Alexander Medvednikov
e02d1d4a4b
Revert "gc: extend optimized mode to strings ( #10409 )"
...
This reverts commit 3f654a69e3
.
2021-06-12 01:52:06 +03:00
Uwe Krüger
3f654a69e3
gc: extend optimized mode to strings ( #10409 )
2021-06-12 00:03:05 +03:00
Alexander Medvednikov
d0100faf26
all: fix sanitizer build
2021-06-11 18:41:50 +03:00
Alexander Medvednikov
6761697088
checker: do not allow dereferencing function calls on the left side of an =
2021-06-11 16:07:41 +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
yuyi
f26626117d
cgen: fix match struct type cond ( #10421 )
2021-06-11 11:58:25 +03:00
shadowninja55
534b59e721
examples: rename "Chield" to "Child" in examples/database/orm.v ( #10414 )
2021-06-11 11:52:06 +03:00
crthpl
6576d876fc
cgen: support a [_naked]
fn attribute ( #10418 )
2021-06-11 11:03:39 +03:00
yuyi
7878bad95e
checker: check array type mismatch of array append ( #10405 )
2021-06-10 21:34:36 +03:00
yuyi
9d852e22b2
cgen: fix match array or map cond ( #10411 )
2021-06-10 21:33:35 +03:00
Uwe Krüger
0e2c86310a
GC-boehm: extend optimized mode to all array
methods ( #10406 )
2021-06-10 21:26:17 +03:00
yuyi
9a9d539e6f
csv: fix csv fields with double quotes ( #10399 )
2021-06-10 19:24:20 +03:00
shadowninja55
10b9ea3258
checker: add an error for assigning to array slices a[..2] = [0, 0]
( #10412 )
2021-06-10 19:18:14 +03:00
pancake
5be982d63e
builtin: fix memory leak on empty strings ( #10408 )
2021-06-10 15:21:57 +03:00
Delyan Angelov
9d6b8830da
ci: add on: [workflow_dispatch]
tag inside .github/workflows/periodic.yml
2021-06-10 09:04:22 +03:00
Andreas Heissenberger
96c8d147b2
v.gen.js: add source map creation support (inline only, no src) ( #10384 )
2021-06-10 08:33:46 +03:00
Enzo
14519bbf5c
cgen: clean up interface methods generation ( #10400 )
2021-06-09 22:44:18 +03:00
Uwe Krüger
811a3e1d38
builtin: optimize array.repeat()
( #10396 )
2021-06-09 12:52:30 +03:00
Delyan Angelov
115edff7e9
v.checker: restrict x T
in fn test<T>(x T){ unsafe{ println(x[0]) }
, but allow x &T
2021-06-09 12:07:08 +03:00
Delyan Angelov
f351ff037e
Revert "checker: check generic type indexing error ( #10345 )"
...
This reverts commit 103c777ad6
.
Passing references to values should be allowed, and is already used in vinix:
`pub fn cas<T>(_here &T, _ifthis T, writethis T) bool {`
2021-06-09 11:46:17 +03:00
yuyi
49de1f8e64
checker: cleanup in infix_expr() ( #10368 )
2021-06-09 00:06:29 +03:00
Uwe Krüger
a2243054a5
builtin: fix memory corruption in array .clone()
and .repeat()
( #10394 )
2021-06-08 23:23:28 +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
Delyan Angelov
000790b112
vfmt: fix eating JS. from JS.Struct{}
2021-06-08 21:27:05 +03:00
Andreas Heissenberger
f0b16fea27
docs: add Array Types
section, improve examples ( #10357 )
2021-06-08 20:35:22 +03:00
Delyan Angelov
95cf120e2e
ci: fix linux-cross job; os.real_path cleanup
2021-06-08 18:34:15 +03:00
Delyan Angelov
f9c4365dc7
v.gen.c: free indents
in autogenerated .str() methods
2021-06-08 17:24:08 +03:00
Delyan Angelov
d820f2da6f
os: use arr.trim() in read_bytes, instead of a arr[0..x].clone()
2021-06-08 17:24:07 +03:00
Delyan Angelov
40ac7d4892
builtin: support -d trace_vcalloc, -d trace_realloc
2021-06-08 17:24:07 +03:00
yuyi
103c777ad6
checker: check generic type indexing error ( #10345 )
2021-06-08 17:23:44 +03:00
Delyan Angelov
665c386771
builtin: simplify the .si_c and .si_vp cases in StrIntpData.get_fmt_format, free intermediate results
2021-06-08 13:29:03 +03:00
Khalyomede
d2bc9ee7bc
doc: tablename -> table ( #10359 )
2021-06-08 00:48:42 +03:00
lydiandy
7c2265e00a
tools: vast fix and clean code ( #10381 )
2021-06-07 21:42:09 +03:00
Delyan Angelov
98613036c1
gg: fix draw_line on m1
2021-06-07 21:31:24 +03:00
Delyan Angelov
5b2046342b
Revert "examples: split asm.v to asm.amd64.v and asm.i386.v"
...
This reverts commit 74e73edac1
.
2021-06-07 20:23:44 +03:00
Delyan Angelov
74e73edac1
examples: split asm.v to asm.amd64.v and asm.i386.v
2021-06-07 20:17:45 +03:00
Delyan Angelov
2e6611372a
mysql: use v oksyntax
for the example in the README.md, so that the check passes on m1 without installed mysql
2021-06-07 18:39:42 +03:00
Delyan Angelov
ac0b638b6a
examples: run vfmt over psql/customer.v
2021-06-07 18:25:20 +03:00
Delyan Angelov
01a8d3f8a1
tests: skip building psql/customer.v on macos (requires postgres)
2021-06-07 18:23:18 +03:00
Delyan Angelov
4f213f4468
examples: conditionally compile an asm amd64 {}
block on M1 in asm.v
2021-06-07 18:23:18 +03:00
Delyan Angelov
9f6c4030f6
tests: fix -cstrict
self compilation on m0 with clang
2021-06-07 18:23:18 +03:00
Delyan Angelov
4772146a7e
tests: fix failing tests on M1
2021-06-07 18:23:18 +03:00
नवुले पवन कुमार राव
3c56532ecb
docs: fix a typo in vscode.md ( #10376 )
2021-06-07 15:50:18 +03:00
Lukas Neubert
98cdde8247
assert: print enum value of CTempVars on fail ( #10378 )
2021-06-07 15:49:48 +03:00