summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] (#18040)Andreas Rumpf2021-05-181-1/+6
| | | | * ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] * Update tests/arc/tnewseq_legacy.nim
* Disable performance hints by default (verbosity 1) (#18024)Clyybber2021-05-161-1/+1
|
* more informative error msg for undeclared field (`A(badfield: 1)` and ↵Timothee Cour2021-05-162-3/+15
| | | | `a.badfield = expr`) (#17777)
* Rework DFA traversal (#18016)Clyybber2021-05-161-118/+108
| | | | | | | | | * enable using dbg: without a context * Optimally joining first write/last read analysis * Add test for #18002 * potLastReads -> potentialLastReads
* docgen: escape special characters in titles (#18014)Andrey Makarov2021-05-151-2/+3
|
* `doc2tex`: generate docs to Latex (#17997)Andrey Makarov2021-05-146-39/+39
| | | | | * `doc2tex`: generate docs to Latex * address some comments
* ORC: progress (#18000)Andreas Rumpf2021-05-128-17/+26
| | | | | | | | | * ORC: progress * ORC: bugfix; don't follow acyclic data even if only at runtime the subtype is marked as acyclic * progress * minor style changes
* ORC: improvements (#17993)Andreas Rumpf2021-05-126-12/+18
| | | | * ORC: improvements * ORC: fix .acyclic annotation for ref objects
* ORC: critical bugfix for mixing acyclic refs with cyclic refs [backport:1.4] ↵Andreas Rumpf2021-05-112-8/+12
| | | | (#17991)
* feature: the compiler can warn when you use the implicit 'result' variable ↵Andreas Rumpf2021-05-103-2/+7
| | | | | (#17988) [backport:1.2] * implements #17855
* since we have now so many virtual registers, reduce memory consumption for ↵Andreas Rumpf2021-05-103-50/+48
| | | | the register allocator (#17985)
* fixes #17675 (#17981)Andreas Rumpf2021-05-091-1/+1
|
* treetab: tiny cleanup (#17929)Clyybber2021-05-091-6/+4
| | | | | | | | | | | | | * 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>
* ORC: cursor inference bugfix (#17973)Andreas Rumpf2021-05-081-2/+2
| | | | | * fixed a .cursor inference bug * added a test case
* fix #17941: UnusedImport works for var/let/const/type invoked inside a ↵Timothee Cour2021-05-081-0/+3
| | | | | | | generic (#17942) * fix #17941: UnusedImport works for var/let/const/type invoked inside a generic * fixup
* add astmsgs; add `declared in` msg for usage lint errors (#17961)Timothee Cour2021-05-087-31/+34
| | | | | | | | | * add astmsgs; add `declared in` msg for usage lint errors * fix test * fix tests/tools/tlinter.nim * std prefix
* fixes #15848 [backport:1.2] (#17959)Andreas Rumpf2021-05-073-2/+4
|
* tiny cleanup (#17957)Andreas Rumpf2021-05-071-3/+1
| | | | | * tiny cleanup * I'm not British
* minor cleanups (#17948)Andreas Rumpf2021-05-062-4/+0
|
* docgen: get rid of ropes (#17939)Andrey Makarov2021-05-051-190/+146
|
* IC: codegen: fix (#17931)Andreas Rumpf2021-05-041-1/+3
|
* mention -d:nimLegacyConvEnumEnum in error msg (#17928)Timothee Cour2021-05-031-0/+2
|
* treetab: minor code cleanups (#17927)Andreas Rumpf2021-05-031-6/+6
|
* system.nim cleanup some exported constants which should never have be… ↵Andreas Rumpf2021-05-012-4/+3
| | | | | | (#17909) * system.nim cleanup some exported constants which should never have been exported
* bring back std/ prefix within compiler and ensure it works in bootstrap + ↵Timothee Cour2021-04-302-9/+9
| | | | | | | | | | | | | 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
* close #16646; `since` now works with bootstrap nim post csources_v1 (#17895)Timothee Cour2021-04-301-2/+2
| | | | | | | * 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
* Small parser loop fix (#17904)Clyybber2021-04-301-0/+1
| | | | * Fix loop on error with nim check in semiStmtList * Add test
* more strict RST inline markup parsing (#17827)Andrey Makarov2021-04-291-2/+5
| | | | | * more strict RST inline markup parsing * add test for unexpected bonus * introduce `roPreferMarkdown`
* fix #17853 (ascii message separator broke json nim dump) (#17887)Timothee Cour2021-04-293-2/+4
|
* externalToLink: use quoteShell to avoid issues with spaces in paths for ↵Timothee Cour2021-04-291-13/+9
| | | | {.link.} pragmas (#17875)
* Implement https://forum.nim-lang.org/t/7848#50018 (#17874)c-blake2021-04-292-7/+9
| | | | | | | | | | | | | | | | | | | | * 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 db456423116a9b19666f551f4d38aded3964c2e2
* Fix #17712 (#17873)Clyybber2021-04-271-3/+4
|
* Remove confusing <//> (#17830)flywind2021-04-261-4/+1
|
* fix #17836 (typed macro isNil for proc params) (#17841)Saem Ghani2021-04-252-2/+6
| | | thanks @alaviss for the test
* `--usenimcache` (implied by `nim r main`) now caches some compile options to ↵Timothee Cour2021-04-253-40/+43
| | | | | | | | | | | 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
* add colon (#17834)flywind2021-04-243-3/+3
|
* `--declaredlocs` now shows location for `T` instead of `static` in `proc ↵Timothee Cour2021-04-231-1/+4
| | | | fn(a: static T)` (#17795)
* `typeof(voidStmt)` now works (#17807)Timothee Cour2021-04-234-1/+8
| | | | | | | | * `typeof(voidStmt)` now works * remove typeOrVoid * add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193 * fixup * changelog [skip ci] * fixup
* typos (#17824)Andreas Rumpf2021-04-231-1/+1
|
* add `--processing:dots|filenames|off` to customize `hintProcessing` (#17817)Timothee Cour2021-04-235-21/+32
|
* js generates spurious >>> on shr (#17767)Sivchari2021-04-211-2/+1
| | | | | * js generates spurious >>> on shr * Add shr arithmetic test * fix variables from const to let during testing
* fix #7535(Poor error message for spawn when a procedure (without calling ↵flywind2021-04-211-2/+5
| | | | it)) (#17774)
* Revert localErrorNode param order changes (#17809)Clyybber2021-04-215-13/+20
| | | | | | | * Revert localErrorNode param order changes * Remove unused globalError overload * heh
* `--filenames:abs|canonical|legacyRelProj` for filenames in compiler msgs ↵Timothee Cour2021-04-215-38/+64
| | | | | | | (replaces `--listfullpaths:on|off`) (#17746) * use canonicalImport for filename_magicSauce * --filenames:abs|canonical|magic * rename: magic => legacyRelProj
* improve errmsg refs #17793 object ctor with generics (#17806)Timothee Cour2021-04-212-2/+5
|
* CIs: attempt to use csources_v1 (#16282)Andreas Rumpf2021-04-2121-72/+72
| | | | | | | | * 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
* fix `hintMsgOrigin` regression + simplify msgs code (#17805)Timothee Cour2021-04-216-33/+23
|
* unit separator (#17730)Andreas Rumpf2021-04-203-33/+42
| | | | | * use the ASCII Unit Separator so that error messages can be handled precisely by the tooling * updated testament
* close #9691 and close #10913('spawn'ed function cannot have a 'typed' or ↵flywind2021-04-201-1/+11
| | | | 'untyped' parameter) (#17775)
* updated the documentation (#17796)Andreas Rumpf2021-04-201-1/+1
|