summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* fixes --warningAsError implementation (#14538)Andreas Rumpf2020-06-011-1/+5
|
* Fix `compiles` for nimsuggest [backport] (#14527)Danil Yarantsev2020-06-011-0/+7
| | | | * Handle nimsuggest in tryExpr * Added test
* Fix a problem with extra build commands. (#14528)Khronos2020-06-011-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | When --compileOnly is on, extraCmds are not added to JsonBuildInstructions. ``` $ echo 'echo 123'>test.nim $ nim c --debuginfo --nimcache:cache test $ ls cache test test.dSYM test.nim $ tail -n3 cache/test.json "extraCmds": ["dsymutil /Users/khronos31/src/tmp/test"], "stdinInput": false } ``` ``` $ echo 'echo 123'>test.nim $ nim c --debuginfo --nimcache:cache --compileOnly test $ nim jsonscript --nimcache:cache test $ ls cache test test.nim $ tail -n3 cache/test.json "extraCmds": [], "stdinInput": false } ```
* fixes #14514 [backport:1.2] (#14533)Andreas Rumpf2020-06-011-1/+3
|
* warn about observerable stores but don't prevent them for 1.2.2 ↵Andreas Rumpf2020-05-302-4/+9
| | | | [backport:1.2]; refs https://github.com/nim-lang/RFCs/issues/230 (#14510)
* fixes #14498 [backport:1.2] (#14503)Andreas Rumpf2020-05-302-4/+10
|
* fixes #14495 [backport:1.2] (#14496)Andreas Rumpf2020-05-291-4/+4
|
* fix #14421 items uses lent T (#14447)Timothee Cour2020-05-292-1/+3
| | | | | * fix #14421 items uses lent T for seq + openArray * add -d:nimWorkaround14447 * fix test
* hotfix doc comments for procs without body (#14494)Timothee Cour2020-05-291-0/+1
|
* more checking for --gc:arc, no need for valgrind (#14467)Andreas Rumpf2020-05-294-3/+13
| | | | * sigmatch: removed dead code
* disallow typedesc in arrays & move existing checks to `types.typeAllowedAux` ↵Neelesh Chandola2020-05-293-40/+49
| | | | | | (#13261) * disallow typedesc in arrays and move previous checks to types.typeAllowedAux
* fix #14485 (#14487)Timothee Cour2020-05-281-3/+2
|
* fix #8871 runnableExamples now preserves source code comments, litterals, ↵Timothee Cour2020-05-284-57/+205
| | | | | | | | | | | and all formatting; other bug fix (#14439) * fix #8871 runnableExamples now preserves source code comments, litterals, and all formatting * remove orig deadcode from getAllRunnableExamplesImpl * fix expected examples * add test to close https://github.com/nim-lang/Nim/issues/14473 * correctly handle regular comments before 1st token inside runnableExamples * add test to answer https://github.com/nim-lang/Nim/pull/14439#discussion_r431829199 * update tests
* make it easier to figure out how to debug issues (#14477)Timothee Cour2020-05-283-8/+20
|
* Propagate the outDir to rstgen to fix hrefs for modules in subdirs (#14479)Kaushal Modi2020-05-281-2/+1
|
* Add thiscall calling convention, mostly for hooking purpose (#14466)Huy Doan2020-05-273-4/+5
| | | | * Add thiscall calling convention, mostly for hooking purpose * add changelog and documentation
* typoAndreas Rumpf2020-05-261-1/+1
|
* docgen: mangling using _. instead of @@ to avoid issue (#14454)Timothee Cour2020-05-261-0/+3
|
* docgen: fix #14448 show @@ as .. in href text (#14451)Timothee Cour2020-05-251-3/+3
|
* fix #9227 procs can now have multiple interleaved doc comments + ↵Timothee Cour2020-05-251-7/+41
| | | | | | runnableExamples and be docgen'd correctly (#14441) * fix #9227 proc doc comments after 1st runnableExamples are not ignored anymore
* fix #6583, fix #14376, index+search now generated for all projects, many bug ↵Timothee Cour2020-05-256-107/+139
| | | | | | | | | fixes with nim doc (#14324) * refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
* avoid unsafe Nim features in preparation for --gc:arc (#14431)Andreas Rumpf2020-05-222-16/+17
|
* no more code duplication bw liMessage and rawMessage + several bug fixes ↵Timothee Cour2020-05-226-153/+92
| | | | | | | (#14415) * no more code duplication bw rawMessage and liMessage; fixes some bugs in rawMessage * all compiler messages work with hint:msgorigin
* [cleanup] fix UnusedImport sempass2 compiler/semparallel.nim (#14426)Timothee Cour2020-05-211-1/+1
|
* change the [Processing] messages into dots (#14418)Andreas Rumpf2020-05-214-8/+37
| | | | | | | * change the [Processing] messages into dots * better implementation * maybe I should work on something else...
* fix comment from ↵Timothee Cour2020-05-201-2/+2
| | | | https://github.com/nim-lang/Nim/commit/e909486e5cde5a4a77cd6f21b42fc9ab38ec2ae6#r39287564 (#14412)
* Remove #PRTEMP leftover commentClyybber2020-05-201-1/+0
|
* fix #10731 ; `runnableExamples "-b:cpp --run:off": code` works (#14384)Timothee Cour2020-05-201-31/+57
| | | | * runnableExamples "-b:cpp -r:off": code
* fixes #14126 [backport:1.2] (#14390)Andreas Rumpf2020-05-201-5/+24
| | | | | * fixes #14126 [backport:1.2] * used more logic to optimize it further; updated Nimble version
* specialize genericReset (#14398)Andreas Rumpf2020-05-193-25/+123
| | | | | | | * progress * make tests green * maybe we also want to reset pointers, dunno * progress * cleanup; fixes #13879 [backport:1.2]
* trunner was not actually being tested in non-CTFFI mode; minor testament ↵Timothee Cour2020-05-192-38/+2
| | | | | | | | | | cleanups (#14377) * use check * trunner now works with cpp * cleanup: move compiler/unittest_light => stdtest/unittest_light * fix tests/readme.md * remove deadcode references to rodfiles * fix for windows
* fix #14364 (#14372) [backport:1.2]Ștefan Talpalaru2020-05-181-0/+1
| | | | Turn on the TLS emulation when using Boehm, since it doesn't scan the real TLS.
* fix #14174 do not collapse pragma inside runnableExamples (#14385)Timothee Cour2020-05-182-20/+21
|
* fix #14369 (#14386)cooldome2020-05-181-0/+1
| | | | | * fix #14369 * empty commit
* fix #12293 findNimStdLibCompileTime should not break with nimble install ↵Timothee Cour2020-05-181-2/+5
| | | | | | | compiler (#14334) * fix #12293 findNimStdLibCompileTime should not break with nimble install compiler * address comment to unblock PR
* fix some issues with --backend (#14363)Timothee Cour2020-05-166-56/+73
| | | | | * fix some issues with --backend * fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
* New "ping-pong" DFA (#14322)Clyybber2020-05-152-73/+60
| | | | | | | | | | | | | | | | | * New ping-pong analysis * Add testcase for #13456 * Remove debugging leftover * Unquote "unstructured controlflow" * Fix typo * Fix exponential complexity in edge cases * Add sanity testcase * Fix
* Improve nimeval, changes some defaults (#14351)PMunch2020-05-151-3/+7
| | | | | | | | | | * Improve nimeval, changes some defaults This improves nimeval to make it easier to use NimScript as an embedded scripting languages. It does change some of the defaults, so in case anything used the old version and depended on the old behaviour these would have to be changed. * Remove dependency on nimhcr for nimscript
* fix #14350, cstrings in JS init as null (#14355)hlaaftana2020-05-151-3/+1
| | | | * fix #14350, cstrings in JS init as null
* fixes #14340Araq2020-05-141-4/+4
|
* fix #14333 (#14336)cooldome2020-05-131-4/+2
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fixes #13998 [backport:1.2]Andreas Rumpf2020-05-131-1/+1
|
* fixes #13104 [backport]Andreas Rumpf2020-05-131-0/+3
|
* no more guessing where compiler msgs came from (#14317)Timothee Cour2020-05-132-19/+37
|
* Allow let to not have value when using importc (#14258)PMunch2020-05-121-2/+3
| | | | | | | | | | | | | | * Allow let to not have value when using importc This allows a let statement with the `{.importc.}` pragma to not be initialised with a value. This allows us to declare C constants as Nim lets without putting the value in the Nim code (which can lead to errors, and requires us to go looking for the value). Fixes #14253 * Proper fix and documentation + changelog entry * Improve testcase with one from timotheecour * Add test to verify it working with macros
* fix detecting closure env for nested asts (#14326)b3liever2020-05-121-3/+3
| | | Co-authored-by: b3liever <b3liever@yandex.com>
* fix #14314 do not analyze importc procs for effects (#14319)Timothee Cour2020-05-122-3/+8
|
* fixes #13881Andreas Rumpf2020-05-121-0/+1
| | | | | | * fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
* fix one motr dicriminator bugcooldome2020-05-121-2/+7
|
* fix testcooldome2020-05-121-3/+5
|