1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

472 Commits

Author SHA1 Message Date
e291c38119 ast: add use case comment for MatchExpr.var_name 2020-08-03 22:10:59 +03:00
7f447bb82f ast: use Block instead of UnsafeStmt (#5981) 2020-08-02 14:06:44 +03:00
d56d622a43 checker: add checks for byte casting (#5917) 2020-08-01 23:17:00 +02:00
eb47ce1e83 ast: fix ParExpr.str(), RangeExpr.str(), SizeOf.str() (#6023) 2020-07-31 02:31:01 +02:00
f269cbdc94 Revert "parser: Support unsafe(expr) (#5973)"
This reverts commit 19c226fcf8.
2020-07-29 21:41:47 +02:00
9c9533dad9 checker: add error for fn f() Struct { return &Struct{} } (#6019) 2020-07-29 21:40:43 +02:00
19c226fcf8 parser: Support unsafe(expr) (#5973) 2020-07-28 11:20:52 +03:00
b58b15993c gen: compile time for (methods and fields) (#5957) 2020-07-25 00:02:44 +02:00
d46a89b90d parser/checker/fmt: optimize scope lookups by storing object with ident & add if expr smartcast support to vfmt (#5935) 2020-07-23 02:10:31 +10:00
a74cbf55c7 checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869) 2020-07-20 20:06:41 +03:00
e6fc8eb015 checker: check that array slicing indexes are valid (#5892) 2020-07-20 19:52:03 +03:00
8653605b0a fmt: allow for comments in call args and if expressions branches (#5871) 2020-07-20 17:48:33 +03:00
1114fd28d0 all: import individual symbols feature (#5872) 2020-07-18 21:34:38 +02:00
90d9040e6e all: make comment expressions + fix vfmt array init (#5851) 2020-07-17 19:13:22 +02:00
39f90e25f3 all: if guard optional: define err in else branch (#5853) 2020-07-17 19:10:01 +02:00
d301611de7 fmt: interface decl fixes (#5829) 2020-07-14 18:52:28 +02:00
042add0e7f ast: fix typo in comment 2020-07-14 04:04:16 +10:00
dd06d90466 checker/gen: temp hack for struct fn type field (fixes ui) 2020-07-14 03:59:00 +10:00
6e6010d198 checker, cgen: implement auto-lock for a[i]++, a[i]-- (#5817) 2020-07-13 15:01:32 +03:00
aa364ddaca checker, cgen: checks for shared/lock, first autolock (#5815) 2020-07-13 12:19:28 +02:00
53023c1ca9 all: add UnsafeExpr (#5793) 2020-07-12 12:58:33 +02:00
26768e8514 vfmt: strip current_module. in fn args more robustly 2020-07-11 16:09:20 +03:00
7488dd829d all: _allow_multiple_values enum attribute (#5772) 2020-07-10 16:43:02 +02:00
581603f2bd fmt: make formatter know about new keywords shared, rlock (#5779) 2020-07-09 22:41:45 +02:00
c5dc1a33b6 all: remove it smartcast and replace with original variable name (#5764) 2020-07-09 17:14:14 +02:00
64e9bdc213 parser: fix non-void optional fn missing return value (fix #5736) (#5741) 2020-07-08 16:01:17 +02:00
5ea17ad2d4 all: if smartcast part 2 (#5754) 2020-07-08 15:46:58 +02:00
b62bf59c21 all: if-is smartcast part 1 (#5730) 2020-07-08 15:17:28 +02:00
69d3c3f596 cgen: sort const inits/cleanups topologically, skip calling non fn init(){} fns 2020-07-08 14:28:58 +03:00
2425c05c42 Revert "cgen: sort const inits/cleanups topologically too"
This reverts commit 38000f8622.
2020-07-08 12:56:56 +02:00
38000f8622 cgen: sort const inits/cleanups topologically too 2020-07-08 11:22:30 +03:00
5fd5e558ae parser/checker/gen: anon fn direct call with args 2020-07-08 01:10:39 +10:00
ef02373061 all: remove rwshared keyword, make its semantics default for shared (#5710) 2020-07-07 01:57:31 +02:00
188bad4f38 vfmt: handle string attrs 2020-07-04 23:38:28 +02:00
5b93b4f37d vfmt: allow multiple comments after if branches 2020-07-04 16:13:58 +03:00
35431d457b checker: add check for strict .str() method signature 2020-07-04 14:14:43 +03:00
3b067f5f85 all: experimental locked concurrency support, part 1 (#5637) 2020-07-04 12:44:25 +02:00
b7175b54eb vweb: ['/:arg1/:arg2/action'] attribute 2020-07-03 15:10:39 +02:00
b89cbf3224 orm: add support for ordering (#5624) 2020-07-02 20:29:22 +03:00
132170f54c vfmt: handle comments in enum Abc{} and after match branches 2020-07-02 16:51:09 +03:00
2716a37916 ci: fix v vet call; fmt: fix SizeOf 2020-07-01 20:07:33 +02:00
dbcb23ddc8 ci: run v vet on cgen and ast 2020-07-01 19:07:19 +02:00
2f614ad79f parser: optimize cross assign using expr.str() (#5604) 2020-07-01 16:43:13 +02:00
6c5b638202 parser: fix array cross assign (fix #5577) (#5591) 2020-07-01 12:11:03 +02:00
78e1127d99 cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00
f073ffa4ad orm: limit 2020-06-27 16:19:12 +02:00
328cb7ed7e orm: update with selectors and other fixes 2020-06-25 22:23:19 +02:00
b280e08ee0 orm: update cgen 2020-06-25 17:12:32 +02:00
a8b0dfb38a checker: allow casting strings to string aliases 2020-06-25 14:55:53 +02:00
afa5a134b7 orm: move fields fetching to a separate function to remove copy pasta 2020-06-25 14:43:25 +02:00