summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice (#16714)Timothee Cour2021-04-191-1/+1
|
* IC navigator: added support for include files (#17784)Andreas Rumpf2021-04-195-30/+77
| | | | | | | | | | | | | | | | | * ic fixed navigator crash when track wrong/missed Also fixed an issue with getNimcacheDir not observing the outDir. * closer, but not sure how to test[skip ci][ci skip] * IC navigator: added support for include files * update * make posix happy via expandFilename * update Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
* Introduce localErrorNode (#17785)Clyybber2021-04-197-24/+27
|
* ic refactoring (#17778)Andreas Rumpf2021-04-197-159/+146
| | | | | * minor IC documentation update * IC: refactoring: removed the 'shared' type and fields, these were a leftover from an earlier design
* fix #12521(type alias for openArray) (#17593)flywind2021-04-191-1/+1
| | | | | | | * fix nim js cmp fails at CT * fix #12521 * address comments
* [ci skip] document compiler/ic/rodfiles.nim (#17771)Saem Ghani2021-04-191-0/+72
| | | | | | | | | | | | | | | | * [ci skip] document compiler/ic/rodfiles.nim Why? * understand how rodfile module works and a bit of the format * leave notes behind for others * rather than Araq guess what others need, he can fix what other glean * possible model for making the compiler more aproachable Bonus: * might have found a minor bug in `loadSection` * Update compiler/ic/rodfiles.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* privateAccess now works with ref | ptr (#17760)Timothee Cour2021-04-192-4/+6
|
* declaredlocs followup: handle `cannot instantiate` errors (#17745)Timothee Cour2021-04-191-3/+3
|
* IC: fixes a long standing bug about DCE set computations (#17763)Andreas Rumpf2021-04-181-25/+33
|
* fix range to unsigned conversion (#17754)Tanguy Cizain2021-04-171-1/+1
|
* -d:nimDebug: calls doAssert false instead of quit (#17739)Timothee Cour2021-04-179-14/+20
|
* cString => cSourceString; tyCString => tyCstring so that error msgs show ↵Timothee Cour2021-04-1727-71/+71
| | | | cstring, not cString (#17744)
* IC: yet another embarrassing omission (#17743)Andreas Rumpf2021-04-174-10/+12
| | | | | * IC: yet another embarrassing omission * VM: fewer hacks that kept IC from working
* refs #17292 fix `repr`: `(discard)` now does't render as `discard` which ↵Timothee Cour2021-04-161-1/+7
| | | | | | | gave illegal code (#17455) * refs #17292 fix `repr` with (discard) * add tests * add more tests
* ic navigator tests (#17735)Andreas Rumpf2021-04-162-2/+3
| | | * IC navigator: first basic test
* `import foo {.all.}` reboot (#17706)Timothee Cour2021-04-1616-76/+177
|
* Fix array's high & low return type for empty arrays (#17705)Tanguy Cizain2021-04-151-0/+2
| | | | | | | | | * fix array.high/low return type * Add test for empty array low return type Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* IC: rodfiles: no floats (#17720)Andreas Rumpf2021-04-144-21/+18
|