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

799 Commits

Author SHA1 Message Date
Nick Treleaven
2dd90de993
parser: error on [unsafe_fn] (#6090) 2020-08-09 12:22:11 +03:00
Alexander Medvednikov
c65dbe51d6 parser: c2v fixes 2020-08-09 03:58:14 +02:00
Nick Treleaven
6cc8815931
parser: support [unsafe] instead of [unsafe_fn] (#6066) 2020-08-08 16:24:05 +02:00
Enzo
f238890fe9
compiler: move attributes to declarations (#6026) 2020-08-04 20:10:22 +02:00
Delyan Angelov
0b6b0aca09 parser: fix infinite loop on unexpected $ between statements 2020-08-02 18:17:38 +03:00
Delyan Angelov
c6ae322f85 parser: add hard limit to the number of statements in a fn 2020-08-02 17:58:05 +03:00
Nick Treleaven
7f447bb82f
ast: use Block instead of UnsafeStmt (#5981) 2020-08-02 14:06:44 +03:00
Delyan Angelov
0fb8074353 cgen: add support for $if gcc {} too 2020-07-31 21:25:37 +03:00
Alexander Medvednikov
f269cbdc94 Revert "parser: Support unsafe(expr) (#5973)"
This reverts commit 19c226fcf84aff292064a0764ff02c8a852d1421.
2020-07-29 21:41:47 +02:00
Nick Treleaven
19c226fcf8
parser: Support unsafe(expr) (#5973) 2020-07-28 11:20:52 +03:00
Enzo
2de1437a1e
ci: vet all files from the compiler (#5994) 2020-07-27 12:15:29 +02:00
Alexander Medvednikov
3c1427a4e8 all: fix current module in build-module mode 2020-07-25 01:37:54 +02:00
Louis Schmieder
b58b15993c
gen: compile time for (methods and fields) (#5957) 2020-07-25 00:02:44 +02:00
Delyan Angelov
8c4429c875 parser: fix passing the is_mut flag of anon fn arguments 2020-07-24 11:27:56 +03:00
Alexander Medvednikov
632e27a4a9 all: fix a big mutability bug and update all mutable vars 2020-07-23 23:16:36 +02:00
Alexander Medvednikov
32c1042ac6 parser: disable the duplicate import check for now 2020-07-23 22:20:00 +02:00
Alexander Medvednikov
653d40bfe8 parser: do not duplicate table imports 2020-07-23 21:59:48 +02:00
Louis Schmieder
b537d8e23e
parser: comp for attrs array (#5903) 2020-07-23 17:19:37 +02:00
pancake
36352085ae
v: add support for iOS crosscompilation (#5943) 2020-07-23 07:58:44 +03:00
Ryan Willis
938e71b468
v: fix for import cli { Command } 2020-07-22 20:33:43 +03:00
joe-conigliaro
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
spaceface777
f4251dded0
checker: suggest using := when assigning to undefined variable (#5911) 2020-07-21 19:49:53 +03:00
Delyan Angelov
e1eb9c4ff1 vfmt: fix x := *&int(ptr) 2020-07-21 15:58:17 +03:00
Delyan Angelov
35df792c05 vfmt: fix #include "@VROOT/path/x.h" 2020-07-21 14:26:49 +03:00
Nick Treleaven
a74cbf55c7
checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869) 2020-07-20 20:06:41 +03:00
Nick Treleaven
e6fc8eb015
checker: check that array slicing indexes are valid (#5892) 2020-07-20 19:52:03 +03:00
Enzo
8653605b0a
fmt: allow for comments in call args and if expressions branches (#5871) 2020-07-20 17:48:33 +03:00
Enzo
8a855ccae1
fmt,vet: handle var in [single_value] (#5882) 2020-07-19 19:58:34 +02:00
Ryan Willis
1114fd28d0
all: import individual symbols feature (#5872) 2020-07-18 21:34:38 +02:00
Nick Treleaven
105a0e015e
checker: warn if unsafe method called outside unsafe block (#5863) 2020-07-17 19:14:12 +02:00
Enzo
90d9040e6e
all: make comment expressions + fix vfmt array init (#5851) 2020-07-17 19:13:22 +02:00
Nick Treleaven
39f90e25f3
all: if guard optional: define err in else branch (#5853) 2020-07-17 19:10:01 +02:00
Uwe Krüger
f6947d111b
parser: fix sizeof(int) when used as call arg for external function (#5855) 2020-07-17 11:31:35 +03:00
spaceface777
3583302ad4
parser: force ... rather than .. in matches for inclusive ranges (#5852) 2020-07-17 11:30:21 +03:00
Lukas Neubert
fa03f390b3
parser: add error for for i := 0; i++; i < .. (#5850) 2020-07-17 10:31:58 +03:00
spaceface777
b900577dae
compiler: handle ranges as match conditions (#5847) 2020-07-16 16:41:18 +03:00
Enzo
2ee8f93d60
parser: duplicate method declaration on interface (#5825) 2020-07-15 10:23:21 +02:00
Enzo
de0b96f52c
parser: fail when interface name is duplicated (#5828) 2020-07-14 18:52:51 +02:00
Enzo
d301611de7
fmt: interface decl fixes (#5829) 2020-07-14 18:52:28 +02:00
Nick Treleaven
53023c1ca9
all: add UnsafeExpr (#5793) 2020-07-12 12:58:33 +02:00
Delyan Angelov
9c43d36513 parser,checker: add -d trace_parser, -d trace_checker 2020-07-12 12:56:01 +03:00
Alexander Medvednikov
d4dd5645fe parser: remove strconv import 2020-07-11 18:53:50 +02:00
Delyan Angelov
b55f84c0a8 vfmt: turn off module is imported but never used for vfmt 2020-07-11 15:03:37 +03:00
Alexander Medvednikov
d4d552fb00 vet: prohibit spaces after ( 2020-07-11 11:41:39 +02:00
Emily Hudson
7488dd829d
all: _allow_multiple_values enum attribute (#5772) 2020-07-10 16:43:02 +02:00
Swastik Baranwal
9839b0eb7f
parser: handle a,b += 1,1 (fix #5735) (#5783) 2020-07-10 13:59:17 +02:00
Daniel Däschle
fb927dab60
checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
Daniel Däschle
c5dc1a33b6
all: remove it smartcast and replace with original variable name (#5764) 2020-07-09 17:14:14 +02:00
Daniel Däschle
e7cd496c31
parser: smartcast fix (#5756) 2020-07-08 16:08:44 +02:00
yuyi
64e9bdc213
parser: fix non-void optional fn missing return value (fix #5736) (#5741) 2020-07-08 16:01:17 +02:00