Delyan Angelov
149517ced4
v.builder,v.gen: time Builder.front_stages.parse_files, Builder.resolve_deps, Gen.sort_structs
2021-09-30 20:49:19 +03:00
Delyan Angelov
bdd053fcf1
v.builder: fix `./v examples/v_script.vsh` on windows (this quickfix is thanks to yuyi98)
2021-09-10 12:30:40 +03:00
Delyan Angelov
aec016bb14
v.builder: change exit code of `v -check file.v` to 0, when file.v is clean from any errors.
2021-09-07 07:29:45 +03:00
Ned Palacios
aedb6b8e84
v.builder: implement a `-check` mode, that runs only the parser + the checker, without codegen ( #11414 )
2021-09-07 07:17:53 +03:00
Leo Developer
b3094b0667
checker: abort prematurely on too many errors ( #11185 )
2021-08-15 13:41:51 +03:00
Leo Developer
f6d7170e77
checker: changes related to warn/error limit ( #11184 )
2021-08-14 22:14:13 +03:00
Caden Haustein
cf0767ad6c
v: add constant folding AST transformation ( #11085 )
2021-08-06 23:19:18 +03:00
Delyan Angelov
d25bd95a0e
v: support -show-depgraph in addition to -show-callgraph
2021-07-28 16:42:11 +03:00
Delyan Angelov
45a15755b8
v.builder: implement -show-callgraph
2021-07-24 13:32:56 +03:00
yuyi
a5c784830b
all: simplify global_scope processing ( #10848 )
2021-07-18 15:29:34 +03:00
shadowninja55
0d587d3580
checker: prohibit using non-lvalue as mut receiver ( #10790 )
2021-07-16 13:03:40 +03:00
spaceface
6e942bf4c2
v: initial support for generic interfaces and sumtypes ( #10795 )
2021-07-15 08:29:13 +03:00
Delyan Angelov
972542d6ee
checker: `[noreturn]` part 2 (cleanup) ( #10667 )
2021-07-05 05:05:37 +03:00
yuyi
665279938e
checker: fix nested generic struct init ( fix #10652 ) ( #10659 )
2021-07-04 18:37:31 +03:00
Delyan Angelov
bc01de2181
ast: mark ast.File{} with `[heap]`, and use []&ast.File consistently
2021-05-22 19:06:55 +03:00
Delyan Angelov
ac469f5eff
v.depgraph: fix detection of indirect module dependency cycles
2021-05-20 01:53:41 +03:00
Delyan Angelov
3aa85bb5d7
v.ast: ensure interface->types info is complete
2021-05-06 19:48:11 +03:00
Delyan Angelov
adffae4453
v.builder: refactor to make adding other post checker stages easier
2021-05-06 14:37:49 +03:00
Gaetano
1c7fb65491
builder: fix a bug that happens with local modules ( #9701 )
2021-04-17 08:30:03 +03:00
Delyan Angelov
7c79e9bce7
v.builder: streamline -stats output between backends. add a 'compilation speed' stat too
2021-04-08 12:18:16 +03:00
Alexander Medvednikov
7385f8e56b
all: a massive merge of ast and table modules
2021-04-02 01:57:09 +03:00
Delyan Angelov
a00c80b98f
v: support compiler notices. Use them for `[deprecated_after: '2021-05-01']` tags
...
Compiler notices are like warnings, with these differences:
a) notices use a different color.
b) notices use a different label.
c) notices do not prevent compilation with -prod.
(warnings are converted to errors with -prod)
2021-03-22 19:59:00 +02:00
Delyan Angelov
69f1e7c9c3
v: fixes for `v -autofree -o v2 cmd/v`
2021-03-14 09:37:38 +02:00
Nick Treleaven
dc04c3196b
builder: fix detecting duplicate functions ( #9033 )
2021-03-01 21:38:31 +01:00
spaceface
b712af56fd
all: bring back `panic(err.msg)` -> `panic(err)` ( #9022 )
2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax ( #8950 )
2021-02-28 23:20:21 +03:00
Stanislav Ershov
51dd22bcc0
builder: support -m32/-m64 flags for msvc ( #8819 )
2021-02-18 14:58:47 +01:00
zakuro
d3bcd5d305
fmt: keep single line if in struct init ( #8734 )
2021-02-14 19:22:24 +01:00
Delyan Angelov
16dffc7c1d
compiler: move timing_start/timing_measure to util.timing_start/util.timing_measure
2021-02-05 16:34:56 +02:00
Delyan Angelov
e5c9fcb7e9
ci: fix building vdoc, vls, etc
2021-02-05 09:27:14 +02:00
Alexander Medvednikov
1084b43ffb
all: ast walker for marking unused fns
2021-02-05 08:05:35 +01:00
pancake
27239db427
builder: show file:line when import fails ( #8537 )
2021-02-04 09:09:54 +02:00
Delyan Angelov
948f63b507
checker,builder: rename `details:` to `Details:`
2021-01-30 10:20:09 +02:00
Lukas Neubert
8b61891348
fmt: smarter if condition wrapping ( #8201 )
2021-01-23 10:33:22 +02:00
joe-conigliaro
97ebecc5f4
usecache: get all tests running with -usecache enabled by default (p.1) ( #7699 )
2021-01-20 06:04:59 +01:00
Daniel Däschle
53941c4a0a
fmt: fix if cond break readability ( #8132 )
2021-01-16 02:12:17 +01:00
zakuro
33694665f0
fmt: align each contiguous field of struct. not the whole. ( #7981 )
2021-01-12 04:38:43 +01:00
Lukas Neubert
06fdf34214
fmt: unwrap long single line ifs ( #7608 )
2020-12-27 14:20:30 +01:00
Lukas Neubert
c4aae2b55f
vfmt: do not replace module aliases in fn param and return types ( #7472 )
2020-12-22 22:38:13 +02:00
joe-conigliaro
d5b03d16e0
builder: if fpath is a descendant of modules folder add it as a search path
2020-12-22 22:32:02 +11:00
Delyan Angelov
dc3a6bb169
builder: use the same compilation mode for thirdparty object files ( #7450 )
2020-12-21 17:46:26 +01:00
Alexander Medvednikov
583c02316a
checker: more arr1=arr2 fixes
2020-12-20 15:21:32 +01:00
Delyan Angelov
2f1cc2bd08
v.util: simplify the sorting of v's timing output
2020-12-19 12:55:42 +02:00
Delyan Angelov
7e1e247f56
builder: implement b.timing_start/1 and b.timing_measure/1
2020-12-18 13:21:17 +02:00
spaceface777
50a3009113
fmt: make single-stmt `or` blocks single-line ( #7126 )
2020-12-04 13:25:23 +02:00
Delyan Angelov
d34c5b767b
vfmt: keep the source fn type alias names, instead of the expanded fn declarations
2020-11-05 20:21:37 +02:00
Delyan Angelov
204fd8be03
builder: improve the function redefinition detector
2020-11-03 10:00:06 +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
Alexander Medvednikov
d2d3289a2a
all: mark pref.Preferences field as immutable
2020-10-06 06:24:50 +02:00
Delyan Angelov
ac384db71f
builder: cleanup .timing_message/2
2020-10-01 18:21:34 +03:00