Alexander Medvednikov
e6b4f9ff09
time: fix sleep() on windows
2021-02-27 20:53:27 +03:00
Alexander Medvednikov
3a2d696fac
time: time.wait() => time.sleep()
2021-02-27 20:41:06 +03:00
zakuro
ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) ( #8853 )
2021-02-21 17:05:03 +02:00
Swastik Baranwal
ad162cd6fc
checker: stricter `unknown type` checks, show better suggestions ( #8816 )
2021-02-19 11:23:13 +02:00
Nick Treleaven
ea803113c3
checker: check `unsafe` V function calls ( #8752 )
2021-02-14 19:31:42 +01:00
Swastik Baranwal
7ec116d588
all: only allow defining `==` and `<` and auto generate `!=`, `>`, `>=` and `<=` ( #8520 )
2021-02-03 15:18:38 +01:00
zakuro
e30e794884
checker: add check for using a private const in another module ( #8501 )
2021-02-03 10:17:13 +02:00
Lukas Neubert
d660f2cc6f
fmt: insert newline after last HashStmt ( #8482 )
2021-02-01 14:50:41 +01:00
yuyi
1be7cc14d3
checker: check duplicate of a const name ( #8396 )
2021-01-28 18:34:55 +01:00
Lukas Neubert
75d85403a6
fmt: better ternary concat wrapping ( #8379 )
2021-01-28 11:23:48 +01:00
Delyan Angelov
dbaccd4272
vfmt: shorten `main.const_name` to just `const_name`
2021-01-25 20:57:33 +02:00
Delyan Angelov
728344ff65
ci: fix `v test-cleancode`
2021-01-25 12:55:01 +02:00
Alexander Medvednikov
8bcb6c10cc
checker: remove duplicate const error; fmt: force full path to consts
2021-01-24 10:01:13 +01:00
Lukas Neubert
8b61891348
fmt: smarter if condition wrapping ( #8201 )
2021-01-23 10:33:22 +02:00
Daniel Däschle
dbf84520f1
all: update assoc syntax ( #8274 )
2021-01-22 23:24:48 +01:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 ( #8029 )
2021-01-18 13:20:06 +01:00
Delyan Angelov
2677fcdf0c
time: add some tolerance for windows's minimum 1ms sleep resolution
2021-01-17 19:16:08 +02:00
Delyan Angelov
349eb95a28
time: comment .local() in time_windows.c.v too
2021-01-13 21:27:30 +02:00
crthpl
70ad49e186
time: complete doc ( #8070 )
2021-01-13 16:30:54 +02:00
zakuro
33694665f0
fmt: align each contiguous field of struct. not the whole. ( #7981 )
2021-01-12 04:38:43 +01:00
yuyi
a1c67232d0
checker: fix duplicate variable name ( fix #265 ) ( #7982 )
2021-01-10 21:41:29 +01:00
Swastik Baranwal
8f4238e76a
time: use operator overloading for `>=` and `<=` ( #8009 )
2021-01-10 21:05:05 +01:00
Swastik Baranwal
7c290a7fe8
time: use operator overloading ( #7882 )
2021-01-05 12:43:34 +02:00
yuyi
52521554ce
time: fix parse_iso8601 on windows ( #7853 )
2021-01-04 18:26:21 +02:00
Alexander Medvednikov
13f16b4a82
time: rename to_local_time() to local(); time.offset()
2020-12-26 02:10:47 +01:00
Delyan Angelov
270ba07e83
clipboard: add a `clipboard.x11` submodule, use it by default; add a `clipboard.dummy` for solaris
2020-12-25 19:34:21 +02:00
Lukas Neubert
8cd74df2f3
vfmt: keep UnsafeExpr linebreacks as set by developer ( #7558 )
2020-12-25 16:52:16 +02:00
spaceface
214290d55b
fmt: add a space around single-line `unsafe` expressions ( #7505 )
2020-12-23 19:13:42 +01:00
Lukas Neubert
304aafdc50
fmt: add a space after + operator/method overload ( #7453 )
2020-12-21 21:20:00 +02:00
zakuro
c639dd03d0
time: move - operator to operator.v ( #7433 )
2020-12-21 09:28:00 +01:00
zakuro
c69947160b
time: change type of duration constants from i64 to Duration ( #7435 )
2020-12-21 09:27:06 +01:00
zakuro
6a74058190
time: make parse_iso8601 support a date only format ( #7277 )
2020-12-16 13:10:02 +02:00
Uwe Krüger
591e523cf3
time: fix date parsing tests in winter for regions using DST ( #7304 )
2020-12-14 05:01:58 +01:00
zakuro
df27a2b8d2
time: add test_parse_is8601_invalid ( #7278 )
2020-12-12 11:00:07 +01:00
zakuro
5fec0d785a
time: fix timezone problems of parse_iso8601 ( #7272 )
2020-12-12 09:19:03 +01:00
Takahiro Yaota
eb48208599
time: Time.add ( #7262 )
2020-12-12 04:22:30 +01:00
Denis
a26e1e6e13
time: fix typo ( #7274 )
2020-12-11 19:30:34 +01:00
Takahiro Yaota
a2f7e0636d
time: `-` operator overloading ( #7259 )
2020-12-11 06:54:23 +01:00
Delyan Angelov
ada02d4498
time: fix failing test_iso8601_parse_utc
2020-12-09 15:48:21 +02:00
Takahiro Yaota
036e762446
time: make parse_iso8601 support format without microseconds ( #7176 )
2020-12-08 17:53:54 +01:00
Takahiro Yaota
b5982b638a
time: fix typo in test ( #7174 )
2020-12-07 17:21:12 +01:00
Takahiro Yaota
0c50f0c9dc
time: v fmt ( #7160 )
2020-12-06 15:19:39 +01:00
ka-weihe
9367dcda10
all: fix remaining c warnings and add -Werror to CI ( #7021 )
2020-11-29 21:23:37 +02:00
Takahiro Yaota
49a083fe79
time: improve parse_iso8601 ( #7006 )
2020-11-29 10:38:14 +02:00
spaceface777
a9e9554b11
all: fix most C warnings ( #6758 )
2020-11-06 16:26:59 +02:00
Daniel Däschle
d5a421e3f5
checker: add alias cast type check ( closes #6705 ) ( #6709 )
2020-11-02 01:17:35 +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
Enzo
b083f4014b
fmt: fix multiple things and format most of the compiler ( #6631 )
...
Format expressions inside string interpolation like the rest (it used to be a+b instead of a + b, not too sure why)
Fix formatting some match branches when there were only one statement inside (it was inlined)
Fix parsing and formatting some comments edge case on struct field init. You should check out this test because the result is a bit different from before. I personally find it more logical but I would understand if the former format was to stay
Fix formatting of void-returning function signature
2020-10-15 22:12:59 +02:00
Alexander Medvednikov
7da1afa140
all: switch to the new fn arg syntax everywhere; add lots of vfmt -verify tests
2020-10-15 12:32:28 +02:00
Delyan Angelov
3c48a6e4ce
tests: rename _test.v files with dup names (temp workaround for highly parallel testing)
2020-10-14 18:25:26 +03:00