Andreas Rumpf
753f8a05d2
fixes #3333
...
(cherry picked from commit cab0c3e544 )
2019-07-08 11:33:19 +02:00
Andreas Rumpf
00ccdec238
fixes #8316 ( #11673 )
...
(cherry picked from commit 64e1408920 )
2019-07-08 11:33:00 +02:00
Andreas Rumpf
49de021b1a
fixes #7057
...
(cherry picked from commit 2678fa679a )
2019-07-08 11:28:42 +02:00
Miran
a31b3ef3cf
nimpretty: improved detection of commas and semicolons ( #11661 )
...
* nimpretty: improved detection of commas and semicolons
* address the comments
(cherry picked from commit 34c09a98c7 )
2019-07-08 11:28:42 +02:00
Arne Döring
8501971a60
introduce internal Int128 type, use it to fix case stmt checks ( #11652 )
...
* initial version of int128
* use int128 in case stmt
* fixes #11552
(cherry picked from commit 7d5d9f7703 )
2019-07-08 11:28:42 +02:00
Miran
5863461d47
nimpretty: don't touch formatted multiline comments ( #11663 )
...
(cherry picked from commit 176eaf5c90 )
2019-07-08 11:28:42 +02:00
cooldome
cb3a920097
Fixes #11662 : render ops priority ( #11664 )
...
(cherry picked from commit d1f6c820dd )
2019-07-08 11:28:42 +02:00
narimiran
88896194bd
nimpretty: nicer debugging [ci skip]
...
(cherry picked from commit 2c0c0e772c )
2019-07-08 11:28:42 +02:00
Miran
5689003410
nimpretty: relax line length rules when dealing with (inline) comments ( #11657 )
...
(cherry picked from commit 96a19ea1b4 )
2019-07-08 11:28:42 +02:00
Timothee Cour
789c8e0065
fix #11651 exportc symbol not exported, leading to link error ( #11658 )
...
(cherry picked from commit 95f2f2396f )
2019-07-08 11:28:41 +02:00
Andreas Rumpf
e74e85a41e
fixes #11610 ( #11659 )
...
(cherry picked from commit 28c9c062a4 )
2019-07-08 11:28:41 +02:00
Andreas Rumpf
3e8c4519d4
newruntime for async ( #11650 )
...
* fixes overloading resolution for passing owned(Future[string]) to Future[T]
* WIP: make --newruntime work with .async
* memtracker: make it compile again
* make Nimble compile again
(cherry picked from commit 5f515410af )
2019-07-08 11:28:41 +02:00
narimiran
66660eca32
nimpretty: fix out of bounds error [ci skip]
...
(cherry picked from commit 4450fca6fd )
2019-07-08 11:27:15 +02:00
Araq
d13c75eb2f
nimpretty: nimpretty now understands splitting newlines
...
(cherry picked from commit a59f0adc50 )
2019-07-08 11:27:15 +02:00
Araq
f70a0c90f1
nimpretty: distinguish between the different kinds of newlines in Nim
...
(cherry picked from commit 7d29f8b1a4 )
2019-07-08 11:27:15 +02:00
Timothee Cour
6a23772e23
fixes #8405 : -d:useNimRtl now works even when {.rtl.} procs are used at compile time; CTFFI now works with {dynlib} ( #11635 )
...
(cherry picked from commit 64168d4aea )
2019-07-08 11:27:15 +02:00
Miran
da3a7b852d
[bugfix] fix wrong nimpretty unidents, refs #11616 ( #11645 )
...
(cherry picked from commit 0718d6c2cd )
2019-07-08 11:27:15 +02:00
Andreas Rumpf
7ab44997aa
fixes #11585
...
(cherry picked from commit 045eeab6b4 )
2019-07-08 11:27:15 +02:00
Miran
20f6acc0da
[bugfix] fix #11484 , acknowledge 'danger' flag ( #11486 )
...
(cherry picked from commit 1e9316e23c )
2019-07-08 11:27:15 +02:00
Araq
b0e86d0f05
fixes #11510
...
(cherry picked from commit c0db1705dc )
2019-07-08 11:27:15 +02:00
Araq
6a6a9423e4
fixes #11636
...
(cherry picked from commit 476b4ff372 )
2019-07-08 11:27:15 +02:00
Arne Döring
191b7e0bde
[backport] fix #11320 ( #11538 )
...
* [backport] fix #11320
* fix test for 32 bit test
(cherry picked from commit 20d0ef8afb )
2019-07-08 11:26:20 +02:00
Andreas Rumpf
d1de6b9fe4
fixes #11479 ( #11641 )
...
(cherry picked from commit 71b7383f12 )
2019-07-08 11:26:20 +02:00
Miran
466d5ba060
[bugfix] nimpretty indents multiline comments correctly ( #11607 )
...
(cherry picked from commit c522a455df )
2019-07-02 13:57:12 +02:00
Andreas Rumpf
7938947907
fixes #11633
...
(cherry picked from commit cce8a739da )
2019-07-02 13:57:12 +02:00
Andreas Rumpf
476b3b1c13
fixes #11515 ( #11624 )
...
* fixes #11515
* better fix for #11515 ; make tests green
(cherry picked from commit 766960dc15 )
2019-07-02 13:57:12 +02:00
Araq
e6c963259c
fixes #11617
...
(cherry picked from commit bd55c862a6 )
2019-07-02 13:56:55 +02:00
Araq
c454cdac49
fixes #11628
...
(cherry picked from commit c352892232 )
2019-07-02 13:56:55 +02:00
Araq
09d43c1d8f
fixes #11614
...
(cherry picked from commit 413dff03a0 )
2019-07-02 13:56:55 +02:00
Juan Carlos
d7ea8588c5
Remove IO.js compat (long dead vanished project,superseed by NodeJS) ( #11627 )
...
(cherry picked from commit d7a7662a7f )
2019-07-02 13:56:55 +02:00
alaviss
c2d0e0f7d5
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
(cherry picked from commit e259f80fc7 )
2019-07-02 13:56:27 +02:00
Araq
199aa1f3a1
fixes #11606
...
(cherry picked from commit 3606e035f5 )
2019-07-02 13:56:27 +02:00
Araq
57df2c9c3a
fixes #11611
...
(cherry picked from commit 7ddb31262e )
2019-07-02 13:56:27 +02:00
Araq
970c7616bc
nimpretty: bugfix [bugfix]
...
(cherry picked from commit 284a8cb58a )
2019-07-02 13:55:37 +02:00
Andreas Rumpf
843ae0073b
fixes #11523
...
(cherry picked from commit 135fdde6a9 )
2019-07-02 13:54:41 +02:00
Andreas Rumpf
d206e881e9
fixes #11525
...
(cherry picked from commit 19b142401c )
2019-07-02 13:52:20 +02:00
Miran
712d9ce1b9
[bugfix] fix #11532 , nimpretty should ignore source code filters ( #11603 )
...
(cherry picked from commit f65eaa51f1 )
2019-06-27 20:59:46 +02:00
Andreas Rumpf
ba6eb0151c
fixes #11098
...
(cherry picked from commit e083a1533b )
2019-06-27 20:59:46 +02:00
Araq
e08cf5a947
fixes #11600
...
(cherry picked from commit b6fb47df77 )
2019-06-27 20:59:46 +02:00
Miran
38aa7f6d20
[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
(cherry picked from commit f288e1b11a )
2019-06-27 20:59:46 +02:00
Araq
763357089e
fixes #11577
...
(cherry picked from commit 0a81b038fd )
2019-06-27 20:59:46 +02:00
alaviss
6576c1ab5c
[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
(cherry picked from commit 993b3909a8 )
2019-06-27 20:59:45 +02:00
alaviss
8a16fb972b
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
(cherry picked from commit 2f1a1b7106 )
2019-06-27 20:59:45 +02:00
Andreas Rumpf
48770b04bd
fixes #11563 ( #11594 )
...
(cherry picked from commit 0f868b587b )
2019-06-27 20:59:45 +02:00
cooldome
7e702d95c1
increase dfa instruction limit ( #11579 )
...
(cherry picked from commit 0d50b0c8a7 )
2019-06-27 20:59:45 +02:00
Arne Döring
a5a62b562f
[refactoring] remove zeroExtend and friends from the compiler builtins. ( #11531 )
...
* remove zeroExtend and friends from the compiler builtins.
* fix jssys
(cherry picked from commit e90d91f0e4 )
2019-06-27 20:59:45 +02:00
Andreas Rumpf
433dfaf288
[bugfix] fixes #11524
...
(cherry picked from commit 79c721d418 )
2019-06-27 18:14:36 +02:00
Andreas Rumpf
ef018d7a63
[bugfix] fixes #11556
...
(cherry picked from commit 35df59b3ce )
2019-06-27 18:14:35 +02:00
Kaushal Modi
810166ca95
[other] Improve the "tabs are not allowed" error message ( #11554 )
...
(cherry picked from commit a4c613c110 )
2019-06-27 18:14:35 +02:00
Miran
d5ea497cff
[bugfix] correct 'source' for documentation ( #11540 )
...
(cherry picked from commit d6b0e46ee4 )
2019-06-27 18:13:55 +02:00