alaviss
e259f80fc7
msgs, ccgstmts: fixes #11572 ( #11621 )
...
* [refactor] msgs: toFilename now return just the filename
The C codegen uses just the file name for stacktrace when
excessiveStackTrace is off (see quotedName),
so there aren't any reason for other codegen to not do the same.
The file name is now cached in TFileInfo.shortName, which was introduced
for nimsuggest, and went unused after several refactoring of the
compiler.
A toProjPath() proc has been added for the previous behavior of
toFilename().
* ccgstmt: use quotedFilename() for raiseExceptionEx
This is the same proc used for stacktrace when --stacktrace:on
Fixes #11572
* msgs: handle case where file name is not available
2019-06-30 12:30:37 +02:00
Araq
3606e035f5
fixes #11606
2019-06-28 21:13:03 +02:00
Araq
7ddb31262e
fixes #11611
2019-06-28 21:04:49 +02:00
Araq
284a8cb58a
nimpretty: bugfix [bugfix]
2019-06-28 11:45:21 +02:00
Andreas Rumpf
135fdde6a9
fixes #11523
2019-06-26 23:41:20 +02:00
Andreas Rumpf
19b142401c
fixes #11525
2019-06-26 23:15:58 +02:00
Andreas Rumpf
ce2777af5a
fixes #11600 ( #11602 )
2019-06-26 23:10:20 +02:00
Miran
f65eaa51f1
[bugfix] fix #11532 , nimpretty should ignore source code filters ( #11603 )
2019-06-26 23:09:57 +02:00
Andreas Rumpf
e083a1533b
fixes #11098
2019-06-26 19:34:05 +02:00
Araq
b6fb47df77
fixes #11600
2019-06-26 15:55:27 +02:00
Miran
f288e1b11a
[bugfix] fix #11469 , new rules for a newline in nimpretty ( #11512 )
...
* [bugfix] fix #11469 , new rules for a newline in nimpretty
* concatenate two lines if they have the same indentation level
2019-06-26 15:36:44 +02:00
Araq
0a81b038fd
fixes #11577
2019-06-26 15:33:51 +02:00
alaviss
993b3909a8
[refactor] compiler/[msgs, reorder, semstmts]: use toMsgFilename where appropriate ( #11595 )
...
* compiler/msgs: toMsgFilename now operates on FileIndex
* compiler/reorder: use toMsgFilename for compiler messages
* compiler/semstmts: respect listFullPaths for recursive deps error
2019-06-26 14:38:19 +02:00
Andreas Rumpf
0f868b587b
fixes #11563 ( #11594 )
2019-06-26 06:55:43 +02:00
alaviss
2f1a1b7106
compiler/[msgs, options]: confine --listFullPaths to compiler messages ( #11583 )
...
* compiler/[msgs, options]: make toFilename independent of listFullPaths
toFilename is used mainly in codegen, as such it should not follow
--listFullPaths
* compiler/msgs: use toMsgFilename for toFileLineCol
This proc is mainly used for compiler messages, so it should follow
--listFullPaths
* compiler/msgs: remove toFileLine
unused proc
* compiler/msgs: cleanup toMsgFilename
Also improved path choosing logic, /home should now be preferred over
../home on *nix
2019-06-26 02:40:10 +02:00
cooldome
0d50b0c8a7
increase dfa instruction limit ( #11579 )
2019-06-24 22:34:54 -07:00
Arne Döring
e90d91f0e4
[refactoring] remove zeroExtend and friends from the compiler builtins. ( #11531 )
...
* remove zeroExtend and friends from the compiler builtins.
* fix jssys
2019-06-24 09:19:02 +02:00
Andreas Rumpf
79c721d418
[bugfix] fixes #11524
2019-06-22 01:52:49 +02:00
Andreas Rumpf
35df59b3ce
[bugfix] fixes #11556
2019-06-21 20:38:18 +02:00
Kaushal Modi
a4c613c110
[other] Improve the "tabs are not allowed" error message ( #11554 )
2019-06-20 22:16:06 +02:00
Miran
d6b0e46ee4
[bugfix] correct 'source' for documentation ( #11540 )
2019-06-20 21:03:48 +02:00
Andreas Rumpf
55da84e141
[other] new experimental pragma .nodestroy for easier custom destructors
2019-06-20 19:41:03 +02:00
Andreas Rumpf
7e4748beee
[bugfix] proper destruction for strings/seqs for --newruntime
2019-06-20 19:39:19 +02:00
Araq
6adcc09877
[bugfix] newruntime: trivial closure iterator works
2019-06-20 11:31:20 +02:00
Araq
c83914b435
[refactoring] closureiters.nim: style change
2019-06-20 11:31:20 +02:00
Araq
50afafdb38
wip
2019-06-20 11:31:19 +02:00
Andreas Rumpf
af10788dcc
WIP: closures for the newruntime [ci skip]
2019-06-20 11:30:42 +02:00
Andreas Rumpf
c65a5d754b
[bugfix] owned closures ( #11544 )
2019-06-20 07:40:45 +02:00
Araq
ab36ffbeb1
[bugfix] fixes #11517
2019-06-19 17:39:52 +02:00
Araq
f67be92512
[feature] cleanup PR, refs #11424
2019-06-19 09:54:01 +02:00
Araq
296c48de5e
fixes #11436
2019-06-19 09:48:55 +02:00
Jasper Jenkins
8ee0f14ab6
literal array indices ( #11424 )
2019-06-18 14:16:33 +02:00
Kaushal Modi
7182922622
[feature] Added os.delEnv; add delEnv support to nimscript too ( #11466 )
...
[feature] Fixes https://github.com/nim-lang/Nim/issues/11452 .
2019-06-15 11:32:26 +02:00
Araq
57a83df745
[bugfix] nimpretty: better alignment; fixes #11467
2019-06-14 11:16:39 +02:00
Araq
165ea46284
[bugfix] nimpretty: fixes #11470
2019-06-13 10:58:27 +02:00
Araq
af39f26a3a
[bugfix] nimpretty: fixes #11468
2019-06-13 10:42:37 +02:00
Araq
b056d32a79
[refactoring] liftdestructors.nim is callable from lambdalifting; refs #11217
2019-06-12 10:44:45 +02:00
Arne Döring
e4d0f4fee0
fix regression in semfold for old right shift ( #11477 )
2019-06-12 09:26:30 +02:00
Araq
c07973e313
[refactoring] liftdestructors is now a module of its own
2019-06-12 08:45:47 +02:00
Araq
549d8cc0c6
[other] make typeAllowed easier to debug by using structured programming
2019-06-12 08:45:47 +02:00
Arne Döring
c7e1c665a1
[refactoring] refactor the compiler and stdlib to deprecation warnings ( #11419 )
2019-06-11 16:49:56 +02:00
Arne Döring
94177f7357
VM can now cast integer type arbitrarily. ( #11459 ) [feature]
2019-06-10 19:58:11 +02:00
Andreas Rumpf
caf93f4355
nimpretty: smart tabs support, fixes #9399 [bugfix]
2019-06-10 10:50:15 +02:00
Andreas Rumpf
cb47e49d3b
nimpretty: keep a seq of tokens instead of a single string to enable better transformations [refactoring]
2019-06-09 22:22:50 +02:00
Andreas Rumpf
9f82e07b2d
nimpretty: fixes #10156 [bugfix]
2019-06-08 00:00:00 +02:00
Arne Döring
99a4fed96b
fix for passing tuples as static params to macros ( #11423 ); fixes #10751 [bugfix]
...
* add vm value preparation proc
* small optimization
2019-06-07 14:34:59 +02:00
Araq
667af87e66
nimpretty: fixes #9505 [bugfix]
2019-06-07 12:59:31 +02:00
Araq
790bc5b07b
nimpretty: fixes #10177 [bugfix]
2019-06-07 11:50:56 +02:00
Araq
447cc1ff09
nimpretty: fixes #10295
2019-06-07 10:37:00 +02:00
Araq
4296bddccb
fixes #11412
2019-06-06 07:56:19 +02:00