Commit Graph

76 Commits (d86b18844e34a69ed3d83d8566b22002825feb3c)

Author SHA1 Message Date
Delyan Angelov ebad7301f9
ci: fix failing deprecated_module test on windows 2022-01-27 13:15:34 +02:00
Delyan Angelov 62c3ad4953
use os.quoted_path more 2022-01-22 22:22:22 +02:00
yuyi 5f736dd768
v test-cleancode: remove interop_test.v from the exceptions list (#12084) 2021-10-06 20:53:50 +03:00
yuyi 963233687e
v.fmt: fix fmt of 'fn(mut a &int)' (#12075) 2021-10-06 20:51:38 +03:00
yuyi 7bc3e67e24
fmt: fix import with symbols (fix #12065) (#12069) 2021-10-05 11:44:48 +03:00
yuyi 8789cc422c
v.ast: fix fmt of 'bytestr' to '&byte' (#12014) 2021-09-29 13:53:46 +03:00
Delyan Angelov 2b92ccecb5
ci: fix `v build-examples` and `v build-tools` 2021-08-28 12:44:03 +03:00
Delyan Angelov 576664e31f
gg,sokol,stbi,gx,fontstash: cleanup for -Wimpure-v 2021-08-12 22:42:42 +03:00
yuyi aceaaa681d
ast: fix formatting fn variadic of reference param (#11130) 2021-08-10 21:14:37 +03:00
yuyi 11794039e2
v.gen.c: fix fn variadic of reference param (#11115) 2021-08-10 10:36:11 +03:00
Louis Schmieder 26db3b0995
orm: redesign orm (re-write it in V) (#10353) 2021-07-23 12:33:55 +03:00
Delyan Angelov d56ae2d508
v.fmt: keep comments after struct embeds 2021-06-18 18:42:05 +03:00
Delyan Angelov de384f1cc8
strconv: vfmt everything 2021-06-18 17:59:56 +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
Delyan Angelov dc1c26a2c2
ci: add back vlib/net/http/cookie_test.v as an exception in vtest-cleancode.v 2021-06-14 10:20:58 +03:00
Delyan Angelov d7d9305d96
net: vfmt everything 2021-06-14 10:08:41 +03:00
Emily Hudson 535dcac8fa
net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904) 2021-06-13 23:53:38 +03:00
Delyan Angelov e54af19b25
examples: fix -cstrict compilation of c_interop_wkhtmltopdf.v 2021-06-05 10:03:57 +03:00
Lukas Neubert ddcc22a778
fmt: fix removal of selective imported map key type (#10235) 2021-05-28 22:29:03 +03:00
Lukas Neubert 6b683d31ac
v.parser: support imported enums as map keys (#10234) 2021-05-28 20:09:03 +03:00
penguindark d8d05e0106
all: new string interpolation in pure V (#10181) 2021-05-24 05:20:45 +03:00
Lukas Neubert 79b97fa361
fmt: keep names of parameters in anonymus function (#10173) 2021-05-23 05:54:39 +03:00
yuyi 293c6646d0
vtest-cleancode: do not skip generics_return_generics_struct_test.v anymore (#10163) 2021-05-21 17:20:52 +03:00
yuyi de080ba149
vfmt: cleanup vtest-cleancode (#10137) 2021-05-19 21:23:25 +03:00
Delyan Angelov 7db6d602de
tools: vfmt math_test.v and remove it from the exceptions in vtest-cleancode.v 2021-05-08 14:46:06 +03:00
Delyan Angelov 8a380f4699
tools: make `v test-cleancode` test everything by default (#10050) 2021-05-08 13:32:29 +03:00
Lukas Neubert e711e8634e
fmt: prevent rare code corruption with array pre comments (#9908) 2021-04-29 08:28:44 +03:00
Lukas Neubert dee733aae4
fmt: reset const field align after multi line exprs (#9916) 2021-04-29 02:17:37 +03:00
Lukas Neubert a065d014a2
fmt: keep constant sizes in struct field fixed array types (#9910) 2021-04-28 22:11:15 +03:00
pancake 6750ed254f x64: rename to `native` to not conflict with the x64 comptime variable 2021-04-27 12:24:58 +03:00
Lukas Neubert 16e79bc3ca
tools: format most examples and tutorials, add them to `v test-cleancode` (#9826) 2021-04-20 17:16:35 +03:00
Lukas Neubert 4a1f75c964
fmt: split infix wrapping into smaller functions and fix a trailing space bug (#9806)
* change recursive fn calls to reduce write operations

* format files and test

* Update vtest-cleancode.v

* fix test
2021-04-19 21:56:39 +03:00
crthpl 14434cc86a
all: bare metal support (fix `-freestanding`) (#9624) 2021-04-14 07:50:50 +02:00
Delyan Angelov 85e9cf1bd3
tests: add vlib/x/json2 to vtest-cleancode.v 2021-04-11 11:34:08 +03:00
penguindark cca06fce90
encoding.utf8: remove const unicode_con_table_up_to_low table (#9672) 2021-04-11 10:28:19 +03:00
Lukas Neubert 46e7e27ba3
v vet: give an error for trailing whitespace (#9574) 2021-04-09 13:22:14 +03:00
Delyan Angelov dd31a1de9f
ci: fix the rest of `v test-cleancode` 5. Describe the problems of the SKIPed files 2021-04-05 21:47:11 +03:00
Delyan Angelov d11fb8497a
ci: fix some of `v test-cleancode` 3 2021-04-05 21:21:46 +03:00
Alexander Medvednikov 7385f8e56b all: a massive merge of ast and table modules 2021-04-02 01:57:09 +03:00
Lukas Neubert 4a10514081
tests: run vfmt over some of the tests in vlib/v/tests (#9455) 2021-03-27 19:29:57 +02:00
Lukas Neubert 7664964c56
vfmt: format all of cmd/ and add it to `v test-cleancode` (#9418) 2021-03-24 23:37:10 +02:00
zakuro 6bc9ef7373
builtin: vfmt every .v file, except vlib/builtin/int_test.v (#9448) 2021-03-24 20:39:59 +02:00
Delyan Angelov 9b78d7d21d
tools: check formatting of more modules with `v test-cleancode`, colorize `v vet` output 2021-03-24 12:39:39 +02:00
zakuro dad5a5e774
v test-cleancode: add -fix flag (#9364) 2021-03-19 12:37:44 +02:00
Delyan Angelov 04095f4088
ci: fix failing `v -W build-tools` and `v -W build-examples`; run vfmt. 2021-03-19 09:49:26 +02:00
Delyan Angelov ddbe57e00a
v test-cleancode: ensure more .v files are kept vmft-ed 2021-03-14 12:17:31 +02:00
Delyan Angelov 98a12fdc2e
ci: fix `v test-cleancode` 2021-03-07 19:15:47 +02:00
Lukas Neubert 18e88d2fc8
test-cleancode: add more of vlib/v (#8882) 2021-02-21 20:17:12 +02:00
Delyan Angelov 32cc95a340
test-cleancode: check some of the examples too 2021-02-04 17:34:59 +02:00
joe-conigliaro ffedbe4b81
cgen: move cgen from v.gen to v.gen.c (#8515) 2021-02-02 15:41:51 +01:00