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

91 Commits

Author SHA1 Message Date
ea803113c3 checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
d660f2cc6f fmt: insert newline after last HashStmt (#8482) 2021-02-01 14:50:41 +01:00
e5a84719ca all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
8b61891348 fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
53941c4a0a fmt: fix if cond break readability (#8132) 2021-01-16 02:12:17 +01:00
adf084eeed cgen: fix address violations for return error(abc), reduce leaks in os 2021-01-14 04:58:26 +02:00
33694665f0 fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
a1c67232d0 checker: fix duplicate variable name (fix #265) (#7982) 2021-01-10 21:41:29 +01:00
0ab6a8cd01 os: add a posix_set_permission_bit function (#7754) 2021-01-04 19:57:17 +02:00
214290d55b fmt: add a space around single-line unsafe expressions (#7505) 2020-12-23 19:13:42 +01:00
88a8507dd8 os: vfmt most of os, add it to v test-cleancode 2020-12-16 11:08:23 +02:00
1c257abc23 autofree: simplify: merge tmp arg logic with scope vars 2020-11-09 14:24:46 +01:00
507d724ee6 autofree: free before return tests 2020-11-09 11:54:45 +01:00
a9e9554b11 all: fix most C warnings (#6758) 2020-11-06 16:26:59 +02:00
1b1d17cfb5 os: basic proof of concept stdout capture; autofree: small fixes 2020-11-05 08:44:37 +01:00
7da1afa140 all: switch to the new fn arg syntax everywhere; add lots of vfmt -verify tests 2020-10-15 12:32:28 +02:00
fd88bfbac8 fmt: fix formatting of anon args (#6545) 2020-10-04 06:32:47 +02:00
bab5c21224 parser: warn when fixed-size ArrayInit doesn't have trailing {}. (#6137) 2020-08-16 04:54:05 +02:00
36eae1c175 builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
5874d7c5ab os: add os.getpid(), use it in os.is_writable_folder on windows 2020-08-05 09:04:40 +03:00
ab7936f514 os.exec: on unix return error, when the command was not found, instead of os.Result 2020-08-05 07:11:51 +03:00
8dede3b535 builder: add a verror, when the output folder is not existing and writable (#5966) 2020-08-03 18:19:36 +03:00
d71c11577a os: move file logic to file.v (#6013) 2020-08-01 23:07:37 +02:00
ee349691f9 v/checker: Warn about pointer indexing outside unsafe {} (#5918) 2020-07-22 20:28:53 +03:00
4cb9e651a6 vfmt: fix sizeof(C.Type) 2020-07-21 16:28:30 +03: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
df45488e09 cgen: fix warnings (#5820) 2020-07-14 00:16:31 +02:00
5eb76606ae cgen: store return vals in tmp vars with -autofree 2020-07-01 14:34:14 +02:00
206e64d72c os: add os.uname() 2020-06-14 16:46:30 +03:00
471c931ada os: do not trim space from output of exec 2020-06-14 01:41:47 +02:00
75eac291ac all: variable sized options 2020-05-31 12:57:26 +02:00
b4eadb9030 cmd/v: reimplement -path flag 2020-05-26 03:17:52 +02:00
8bf290acf0 os: minor fixes 2020-05-22 06:21:11 +02:00
931c846602 os: cleanup code duplication for os.create and os.open 2020-05-19 13:38:06 +03:00
2635be511f all: re-apply C++ support 2020-05-18 21:38:06 +02:00
07a78b2843 Revert "all: C++ compiler support"
This reverts commit 9a237c3e82.
2020-05-18 17:05:48 +02:00
9a237c3e82 all: C++ compiler support 2020-05-18 15:51:36 +02:00
7f4cf08516 parser: check (mut f Foo) syntax 2020-05-17 13:51:18 +02:00
a0ca68ce3f checker: do not allow string(int) 2020-05-05 15:26:42 +02:00
3ab8dc0092 parser: array init: []string => []string{} 2020-04-26 09:17:17 +02:00
1b6ae00966 os: rename os_nix.v to os_nix.c.v 2020-04-11 20:43:17 +02:00