Juan Carlos
e12597589f
Error message minor ( #18021 )
...
* Update compiler/semtypes.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-05-22 13:12:30 +02:00
Juan Carlos
6a5973882b
jsgen improve spacing ( #18048 )
...
* Fix inconsistent spacings in generated JS of jsgen
2021-05-20 15:48:46 +02:00
Andreas Rumpf
df429fa287
config system: special case -d:release and -d:danger [backport:1.4] ( #18051 )
2021-05-20 11:52:46 +02:00
Andreas Rumpf
558644725d
fixes #17943 ( #18045 )
...
* fixes #17943
* IC: test 'nim check --ic:on' for the full Nim compiler
* Update testament/testament.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-05-19 16:00:14 +02:00
Andreas Rumpf
53935b8b27
ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] ( #18040 )
...
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4]
* Update tests/arc/tnewseq_legacy.nim
2021-05-18 21:45:37 +02:00
Clyybber
63fcb9e5f5
Disable performance hints by default (verbosity 1) ( #18024 )
2021-05-16 19:43:52 +02:00
Timothee Cour
3619a5a2aa
more informative error msg for undeclared field (A(badfield: 1) and a.badfield = expr) ( #17777 )
2021-05-16 10:03:22 -07:00
Clyybber
3614523664
Rework DFA traversal ( #18016 )
...
* enable using dbg: without a context
* Optimally joining first write/last read analysis
* Add test for #18002
* potLastReads -> potentialLastReads
2021-05-16 00:15:53 +02:00
Andrey Makarov
1568ae23c6
docgen: escape special characters in titles ( #18014 )
2021-05-15 06:53:38 +02:00
Andrey Makarov
97970d9dcc
doc2tex: generate docs to Latex (#17997 )
...
* `doc2tex`: generate docs to Latex
* address some comments
2021-05-14 07:30:47 +02:00
Andreas Rumpf
3bc625aff1
ORC: progress ( #18000 )
...
* ORC: progress
* ORC: bugfix; don't follow acyclic data even if only at runtime the subtype is marked as acyclic
* progress
* minor style changes
2021-05-12 22:00:37 +02:00
Andreas Rumpf
39ad9a69a9
ORC: improvements ( #17993 )
...
* ORC: improvements
* ORC: fix .acyclic annotation for ref objects
2021-05-12 07:15:05 +02:00
Andreas Rumpf
2c2ec48bc4
ORC: critical bugfix for mixing acyclic refs with cyclic refs [backport:1.4] ( #17991 )
2021-05-11 16:21:29 +02:00
Andreas Rumpf
378ee7f888
feature: the compiler can warn when you use the implicit 'result' variable ( #17988 ) [backport:1.2]
...
* implements #17855
2021-05-10 23:41:51 +02:00
Andreas Rumpf
a9ae5fe5be
since we have now so many virtual registers, reduce memory consumption for the register allocator ( #17985 )
2021-05-10 11:29:19 +02:00
Andreas Rumpf
d84a3b10b5
fixes #17675 ( #17981 )
2021-05-09 11:34:28 +02:00
Clyybber
72d6b59ffa
treetab: tiny cleanup ( #17929 )
...
* treetab: tiny cleanup
* Another tiny thing
* Explicitly move n
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Typo
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-05-09 00:56:37 +02:00
Andreas Rumpf
c14427dbf3
ORC: cursor inference bugfix ( #17973 )
...
* fixed a .cursor inference bug
* added a test case
2021-05-08 16:47:06 +02:00
Timothee Cour
38b41f893a
fix #17941 : UnusedImport works for var/let/const/type invoked inside a generic ( #17942 )
...
* fix #17941 : UnusedImport works for var/let/const/type invoked inside a generic
* fixup
2021-05-08 09:56:46 +02:00
Timothee Cour
e224865b3b
add astmsgs; add declared in msg for usage lint errors ( #17961 )
...
* add astmsgs; add `declared in` msg for usage lint errors
* fix test
* fix tests/tools/tlinter.nim
* std prefix
2021-05-08 06:43:52 +02:00
Andreas Rumpf
51f3ef6cb8
fixes #15848 [backport:1.2] ( #17959 )
2021-05-07 16:50:11 +02:00
Andreas Rumpf
56068101f6
tiny cleanup ( #17957 )
...
* tiny cleanup
* I'm not British
2021-05-07 13:56:37 +02:00
Andreas Rumpf
98cd1671a3
minor cleanups ( #17948 )
2021-05-06 13:27:40 +02:00
Andrey Makarov
706562f661
docgen: get rid of ropes ( #17939 )
2021-05-05 00:10:05 -07:00
Andreas Rumpf
d67ae4afa6
IC: codegen: fix ( #17931 )
2021-05-04 07:03:00 +02:00
Timothee Cour
01f316cf1f
mention -d:nimLegacyConvEnumEnum in error msg ( #17928 )
2021-05-03 23:06:15 +02:00
Andreas Rumpf
8ce69d5841
treetab: minor code cleanups ( #17927 )
2021-05-03 17:30:48 +02:00
Andreas Rumpf
fb86271556
system.nim cleanup some exported constants which should never have be… ( #17909 )
...
* system.nim cleanup some exported constants which should never have been exported
2021-05-01 11:10:40 +02:00
Timothee Cour
d0485e326a
bring back std/ prefix within compiler and ensure it works in bootstrap + bsd ( #17902 )
...
* [WIP] bring back std/ prefix within compiler and ensure it works in bootstrap + bsd
* refs https://github.com/nim-lang/Nim/pull/16282#discussion_r616846863
* sounds very similar to https://github.com/nim-lang/Nim/pull/14291
* more: vmops
* update tools/ci_generate.nim
* auto-generate freebsd.yml as well, to avoid duplication with openbsd.yml
* cleanup
* undo temporary CI removal
2021-04-30 22:27:53 +02:00
Timothee Cour
3192995ac9
close #16646 ; since now works with bootstrap nim post csources_v1 ( #17895 )
...
* revive #16627 now that csources_v1 was merged
* use dedent in rst.nim, refs https://github.com/nim-lang/Nim/pull/17257#discussion_r589025683
* fix test and improve rendering of a rst warning
2021-04-30 18:54:47 +02:00
Clyybber
76f93877cd
Small parser loop fix ( #17904 )
...
* Fix loop on error with nim check in semiStmtList
* Add test
2021-04-30 17:17:29 +02:00
Andrey Makarov
1640508348
more strict RST inline markup parsing ( #17827 )
...
* more strict RST inline markup parsing
* add test for unexpected bonus
* introduce `roPreferMarkdown`
2021-04-29 17:31:15 +02:00
Timothee Cour
87229e272e
fix #17853 (ascii message separator broke json nim dump) ( #17887 )
2021-04-29 02:25:08 -07:00
Timothee Cour
927ae26fad
externalToLink: use quoteShell to avoid issues with spaces in paths for {.link.} pragmas ( #17875 )
2021-04-29 09:01:00 +02:00
c-blake
601c050fcb
Implement https://forum.nim-lang.org/t/7848#50018 ( #17874 )
...
* Implement https://forum.nim-lang.org/t/7848#50018 with just the same
`SuccessX` hint category, build mode on a separate, final line, and
no change to how the mode is spelled for -d:release/-d:danger.
* Change to add a new BuildMode hint category and keep testament in sync
as per comment.
* Add "--hint:buildmode:off" to `defaultHintsOff`.
* Remove as requested.
* As requested for tests clean up.
* Address code review.
* Address code review.
* Mirror db45642311
2021-04-29 08:55:43 +02:00
Clyybber
b03d6c9b2f
Fix #17712 ( #17873 )
2021-04-27 13:03:26 +02:00
flywind
68e522ecec
Remove confusing <//> ( #17830 )
2021-04-26 09:04:52 +02:00
Saem Ghani
17db15f9b1
fix #17836 (typed macro isNil for proc params) ( #17841 )
...
thanks @alaviss for the test
2021-04-25 10:30:52 +02:00
Timothee Cour
ffe4328b35
--usenimcache (implied by nim r main) now caches some compile options to avoid recompiling when project was previously compiled with such options. (#17829 )
...
* `--usenimcache` (implied by `nim r main`) now caches some compile options
to avoid recompiling when project was previously compiled with such options.
* works
* add test
* changelog
* use std/with
2021-04-25 10:25:31 +02:00
flywind
6e8f0f8cfc
add colon ( #17834 )
2021-04-24 18:33:29 +01:00
Timothee Cour
80df21d9a3
--declaredlocs now shows location for T instead of static in proc fn(a: static T) (#17795 )
2021-04-23 23:22:04 +02:00
Timothee Cour
2abc936d51
typeof(voidStmt) now works (#17807 )
...
* `typeof(voidStmt)` now works
* remove typeOrVoid
* add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193
* fixup
* changelog [skip ci]
* fixup
2021-04-23 14:36:38 +02:00
Andreas Rumpf
511b6d2449
typos ( #17824 )
2021-04-23 13:50:27 +02:00
Timothee Cour
e4a3feeb92
add --processing:dots|filenames|off to customize hintProcessing ( #17817 )
2021-04-23 08:07:22 +02:00
Sivchari
fb32fff8dc
js generates spurious >>> on shr ( #17767 )
...
* js generates spurious >>> on shr
* Add shr arithmetic test
* fix variables from const to let during testing
2021-04-21 19:47:01 +02:00
flywind
4471141a1d
fix #7535(Poor error message for spawn when a procedure (without calling it)) ( #17774 )
2021-04-21 17:53:31 +02:00
Clyybber
80389b8053
Revert localErrorNode param order changes ( #17809 )
...
* Revert localErrorNode param order changes
* Remove unused globalError overload
* heh
2021-04-21 16:03:30 +02:00
Timothee Cour
da1c1a7117
--filenames:abs|canonical|legacyRelProj for filenames in compiler msgs (replaces --listfullpaths:on|off) (#17746 )
...
* use canonicalImport for filename_magicSauce
* --filenames:abs|canonical|magic
* rename: magic => legacyRelProj
2021-04-21 15:26:27 +02:00
Timothee Cour
2951f89374
improve errmsg refs #17793 object ctor with generics ( #17806 )
2021-04-21 10:52:17 +02:00
Andreas Rumpf
a9b62de895
CIs: attempt to use csources_v1 ( #16282 )
...
* CIs: attempt to use csources_v1
* also updated the BSDs
* also updated azure pipelines
* std modules should not itself use the 'std/' import dir...
* compiler has to be careful with std/ for v1 booting
2021-04-21 07:41:33 +02:00