alaviss
558ecd1ca6
compiler/suggest: add variable support to con ( #12569 )
...
This allows for the type of a variable to be retrieved.
2019-11-04 18:29:26 +01:00
Andreas Rumpf
62fc3db9d7
--os:ios needs to imply defined(macosx) [backport] ( #12585 )
2019-11-04 13:05:03 +01:00
Juan Carlos
4c9a7e6f00
JS improve indent ( #12581 )
...
* JSgen make indent be all spaces, instead of mixed spaces and tabs, for generated JS
2019-11-03 08:03:03 +01:00
Andreas Rumpf
ceda586d88
fixes #12577 [backport] ( #12584 )
2019-11-03 07:55:55 +01:00
Tomohiro
4e0f12092e
Fixes #12536 ( #12568 ) [backport]
2019-11-02 08:21:49 +01:00
Andreas Rumpf
44a27ccfe1
--gc:destructors: simple closures work
2019-11-02 00:39:04 +01:00
Andreas Rumpf
7a4d066102
make renderIds work again
2019-11-01 21:02:44 +01:00
Andreas Rumpf
3761e62fde
improve codegen quality for --gc:destructors
2019-11-01 09:59:18 +01:00
Arne Döring
99078d80d7
introduce csize_t instead of fixing csize ( #12497 )
2019-10-31 19:18:12 +01:00
Andreas Rumpf
1746da2d9e
--gc:destructors now means Nim uses pure refcounting ( #12557 )
2019-10-30 16:15:17 +01:00
Nindaleth
34dbc5699e
fix several typos in documentation and comments ( #12553 )
2019-10-30 09:08:45 +01:00
Araq
1214960a1b
fixes #12547 [backport]
2019-10-29 15:07:04 +01:00
Andreas Rumpf
e58c2d261c
[backport] fix #12528 , fix #12525 : incorrect generic type resolution for default values ( #12538 )
2019-10-28 16:56:38 +01:00
Andreas Rumpf
c52a2c3ab0
proof that refcounting can handle Nim's async ( #12533 )
2019-10-28 16:13:38 +01:00
Solitude
160c07be00
Fix code style errors ( #12545 )
2019-10-28 15:21:10 +01:00
Miran
a2ad7d4883
fix deprecation warnings related to Int128 ( #12474 )
...
* semfold: fix deprecation warnings related to Int128
* semmagic: fix deprecation warnings related to Int128
* system/io: remove unneeded conversion of TaintedString to itself
2019-10-28 09:58:39 +01:00
Andreas Rumpf
7192b13609
some progress on bug #12443
2019-10-27 17:50:30 +01:00
Arne Döring
3c567bcf20
fixes #12514 ( #12520 ) [backport]
2019-10-27 11:34:33 +01:00
alaviss
5b3571c9a4
compiler/semtypes: improve lineinfo for exported object fields ( #12495 )
...
The line info should now points to the `a`, not the `*`, like this:
a*: string
^
Additionally this fixes nimsuggest's highlighting of exported object
fields.
2019-10-25 01:06:53 +02:00
Andreas Rumpf
e0d13abaff
VM: fixes register leaks [backport] ( #12510 )
2019-10-25 00:45:06 +02:00
Tomohiro
8040c84615
Fix Nim specify wrong option to vccexe when vcc.options.always is set ( #12490 ) [backport]
2019-10-24 23:43:59 +02:00
Andreas Rumpf
8a599fb571
fixes #12491 [backport]
2019-10-24 22:51:13 +02:00
alaviss
f827d75804
compiler/semcall: return the correct lineinfo for nkCallStrLit ( #12484 )
2019-10-24 18:21:37 +02:00
Andreas Rumpf
801a794039
VM: fixes most ran-out-registers problems [backport] ( #12485 )
2019-10-24 17:29:32 +02:00
Araq
a03a8e80ea
fixes a regression that caused that Nim devel cannot compile 1.0 anymore
2019-10-24 12:27:34 +02:00
Araq
e506c1e0ea
fixes a regression that caused that Nim devel cannot compile 1.0 anymore
2019-10-24 12:27:34 +02:00
Araq
619b997c31
ast.nim: slightly better documentation
2019-10-24 12:27:34 +02:00
Oscar Nihlgård
4ac100c912
Fix jsgen bug with uninitialized seq ( #12500 ) [backport]
2019-10-24 11:17:01 +02:00
Oscar Nihlgård
9ccfcf5dd2
Fix compiler crash caused by top level return ( #12501 )
2019-10-24 11:04:04 +02:00
Paul Tan
ad3c10022a
guards.nim:sameTree(): handle uint literals correctly ( #12483 ) [backport]
2019-10-22 18:18:33 +02:00
Andreas Rumpf
38b3590e40
fixes #12310 [backport] ( #12470 )
2019-10-20 22:37:31 +02:00
Arne Döring
ec20fd3544
fix #12426 ( #12462 )
2019-10-20 11:52:50 +02:00
Araq
0eae2217b6
first implementation of the new --seqsv2 switch
2019-10-20 08:11:07 +02:00
Araq
ed2fb36bc6
refactoring: use the new strings and seqs when optSeqDestructors is active
2019-10-20 08:11:07 +02:00
Araq
61ea85687c
refactoring: --newruntime consists of 3 different switches
2019-10-20 08:11:07 +02:00
Andreas Rumpf
832b0a0232
fixes #12420 [backport] ( #12456 )
2019-10-18 22:13:24 +02:00
Juan Carlos
4a0debfe87
Add no-ident for GCC when -d:release ( #12454 )
2019-10-18 14:13:55 +02:00
Andreas Rumpf
81125e2029
[backport] add back a check that got accidentically removed; fixes #12379 ( #12444 )
2019-10-17 20:02:59 +02:00
Arne Döring
21cbfd72ec
Refactor json macro ( #12391 )
...
* closes #12316
* make tjsonmacro work at js target
* closes #12289
* closes #11988
* also fixed gdb related stuff
2019-10-17 09:55:41 +02:00
alaviss
37dfb7ecc6
compiler/options: only check the last folder for a candidate ( #12421 )
...
This prevents a nimble file from causing a different project to be
targeted instead of the desired one.
2019-10-16 13:03:11 +02:00
Yuriy Glukhov
1aed455e7c
Fixed yield in nkCheckedFieldExpr ( #12429 ) [backport]
2019-10-15 09:16:06 +02:00
Alexander Ivanov
990aadc43c
Fixes semCustomPragma when nkSym ( #12414 ) [backport]
2019-10-11 18:05:23 +02:00
alaviss
94c1695be6
compiler/options: improve project file detection ( #12404 )
...
The compiler can now correctly find the project file of a nimble package.
The algorithm is based on what used by nim.nvim, which has yielded good
results.
2019-10-11 18:04:52 +02:00
alaviss
f957266574
nimsuggest: add a command that returns the project file ( #12411 )
...
This can be used to let nimsuggest users know which project is
nimsuggest being in charge of, so they can know when should a new
nimsuggest instance be spawned.
An additional feature is to debug the project file finding feature.
2019-10-11 18:00:38 +02:00
Arne Döring
7cf3395d85
refactor illegal iterator assignment detection ( #12212 )
...
* refactor illegal iterator assignment detection
* delete crappy test
2019-10-11 08:43:58 +02:00
Jasper Jenkins
245a954b25
ungeneric unsigned ops ( #12230 )
...
* ungenericise unsigned ops, remove nimNewShiftOps
* fix/remove tests
* update t6448
* fix line info
* disable on 32bit
* fix different line info
* add changelog entry
2019-10-11 08:38:08 +02:00
Arne Döring
0a29c05a1b
fix #12332 ( #12402 ) [backport]
2019-10-10 14:35:26 +02:00
Araq
7f904e2c66
fixes #12244 [backport]
2019-10-10 10:00:57 +02:00
Ridho Pratama
7ef4bffa79
renderer letAux fix only for octal literal ( #12343 )
...
* renderer letAux fix only for octal literal
* Handle when it's octal -1 for i64
* Added testcases
2019-10-08 11:12:24 +02:00
cooldome
0355c64b92
External file compilation improvement ( #12380 )
2019-10-08 08:10:55 +02:00