Commit Graph

12974 Commits (01e97d75a5041dae1a77c8bbfaee7496c0d9b330)

Author SHA1 Message Date
Delyan Angelov 01e97d75a5
ci: comment out the `v -autofree .` step for gitly temporarily 2022-05-05 10:59:49 +02:00
Delyan Angelov a3279a1c2b
vfmt: fix stackoverflow on long nested infix expressions 2022-05-05 10:59:49 +02:00
Delyan Angelov c405c19168
tools: fix building `vdoctor.v` with `v build-tools`
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-05-04 22:34:53 +02:00
Delyan Angelov f6e73f9f9a
ci: wrap the too long line in README.md that failed `./v check-md -hide-warnings .` 2022-05-04 22:34:52 +02:00
Ned 26a1d332a4
builtin: add libbacktrace as option for generating stack traces (#14277) 2022-05-04 22:34:52 +02:00
yuyi ca2ab70c8b
checker: add comptime_selector() (#14286) 2022-05-04 22:34:52 +02:00
yuyi 6cf707261d
parser: make peek_token_after_var_list() private (#14288) 2022-05-04 22:34:52 +02:00
Ikko Ashimine 499892bab8
builtin: fix typo in array_bare.v (#14299) 2022-05-04 22:34:52 +02:00
Delyan Angelov 665f5de33f
builtin: improve support for large arrays (`[]int{len: 1_000_000_000}` now works), fix an arr.repeat() bug (#14294) 2022-05-04 22:34:52 +02:00
Alexander Medvednikov 103a422eef
readme: minor github markdown fix 2022-05-04 22:34:51 +02:00
yuyi 41857b0acf
checker: check error for fn call argument mismatch (fix #14280) (#14283)
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-05-04 11:52:32 +02:00
playX 95d94e683e
checker: allow rune->any int and vice versa when translated (#14285) 2022-05-04 11:52:32 +02:00
Alexander Medvednikov b2b82931d1
checker: temporary c2v const fix 2022-05-04 11:52:32 +02:00
yuyi 010ace62e1
checker, cgen: check comptime selector that has no field name (#14282) 2022-05-04 11:52:32 +02:00
Alexander Medvednikov 6c4f1ce196
checker: c2v rune comparison fix 2022-05-04 11:52:32 +02:00
yuyi 4b48bece20
cgen: cleanup in gen_array_contains_methods() (#14274) 2022-05-04 11:52:32 +02:00
playX ee6d819f22
checker: allow fixed array to pointer and vice versa when translated (#14275) 2022-05-04 11:52:32 +02:00
Delyan Angelov 0badffe651
tests: add `// vtest flaky: true` to atomic_test.v 2022-05-04 11:52:32 +02:00
yuyi f9c4cbdb15
checker: check argument mismatch of array.filter/all/any() (#14273) 2022-05-04 11:52:32 +02:00
Hunam 0669e5952b
doc: add JS backend mention (#14265) 2022-05-04 11:52:31 +02:00
yuyi df0133c89b
cgen: fix error for fixed array in operate (#14269) 2022-05-04 11:52:31 +02:00
Delyan Angelov eb9063bdb7
builtin: improve musl/Alpine support (define weak backtrace/backtrace_symbols/backtrace_symbols_fd symbols) (#14250) 2022-05-04 11:52:31 +02:00
Delyan Angelov e76e0a97e1
vdoc: fix panic on empty `//` comment on `v doc -f html file.v`; turn `expected code block after empty example` to a warning 2022-05-04 11:52:31 +02:00
StunxFS bf8d1f415d
cleanup: delete x.v in project root folder (#14260) 2022-05-04 11:52:31 +02:00
Delyan Angelov cd5c9a83c5
builtin: add missing panic_result_not_set/1 callback function. 2022-05-04 11:52:31 +02:00
spaceface bf10b27a33
checker: refactor comptime_if_branch (#14259) 2022-05-04 11:52:31 +02:00
yuyi 633e612d62
checker: fix a bug in generics array init (#14258) 2022-05-04 11:52:31 +02:00
yuyi 93d49176c7
parser: minor cleanup in interface_decl() (#14257) 2022-05-04 11:52:31 +02:00
yuyi 374b6927bc
checker: fix generic fn infering fn type argument (fix #14243) (#14256) 2022-05-04 11:52:31 +02:00
yuyi 21555fb03a
parser: fix inline array's element access (#14253) 2022-05-04 11:52:30 +02:00
playX 6468bcd0a6
cgen: fix const decl gen when translated (#14255) 2022-05-04 11:52:30 +02:00
Isaiah 9a1d73f622
builder: allow `-compress` to work on windows too, when `upx` is installed (#14252)
Allow `-compress` flag on Windows if upx is installed. If upx not installed, same behavior as on linux/mac
2022-05-04 11:52:30 +02:00
yuyi 8d1cc6a817
cgen: fix fixed array init with `it` (#14251) 2022-05-04 11:52:30 +02:00
spaceface bf86fff9cc
checker, gen: add support for a [minify] struct attribute (#14247) 2022-05-04 11:52:30 +02:00
Delyan Angelov 3baf1741ba
make files: add a `make check` target, that runs `v test-all` locally
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-05-01 19:25:53 +02:00
David 'Epper' Marshall bf954cc9bc
time: relative update (#14240) 2022-05-01 19:25:52 +02:00
Daniel Däschle d75469965e
cgen: fix unsafe return error (#14233) 2022-05-01 19:25:52 +02:00
playX 924e2e65fe
checker: allow pointer index for translated code (#14231) 2022-05-01 19:25:52 +02:00
Daniel Däschle 91a9137b36
all: rename result to _result (#14232)
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-04-30 16:26:28 +02:00
Delyan Angelov b90c59d90c
tools: support `v missdoc .` instead of `v run cmd/tools/missdoc.v .` 2022-04-30 16:26:28 +02:00
Delyan Angelov 9e502d7bf2
tools: support a `v vet -p file.v` option that will warn about private functions with missing documentation 2022-04-30 16:26:28 +02:00
Delyan Angelov 45f2348a24
tests: fix `./v -W build-tools` CI failure 2022-04-30 16:26:28 +02:00
Delyan Angelov 76c67952e6
tests: support for marking _test.v files with `// vtest flaky: true`, to reduce false positives from the CI 2022-04-30 16:26:28 +02:00
David 'Epper' Marshall 1ad84bb2d1
docs: document more `builtin` functions/methods (#14229) 2022-04-30 16:26:28 +02:00
Delyan Angelov bbd015a327
tools: make `v up` more informative on failure 2022-04-30 16:26:28 +02:00
spaceface 64625b8bff
cgen: rewrite the closure implementation (#14223) 2022-04-30 16:26:28 +02:00
Alexander Medvednikov 547265dd44
checker: allow voidptr arithmetic in translated code 2022-04-30 16:26:27 +02:00
yuyi f4586b1577
parser: make sure interface field names use uppercase letters (#14228) 2022-04-30 16:26:27 +02:00
Daniel Däschle 85cb0a8c85
all: basic implementation of result type (#14140) 2022-04-30 16:26:27 +02:00
StunxFS 3e4834aebf
checker: check for reserved type names in `for in` (fix #14072) (#14212) 2022-04-30 16:26:27 +02:00