summary refs log tree commit diff stats
path: root/tests/macros
Commit message (Collapse)AuthorAgeFilesLines
* fix broken => for typed procs with pragmas (#16190)hlaaftana2020-12-011-0/+13
| | | | | | | * fix broken => for typed procs with pragmas * add more sugar tests * add ending quote
* make megatest consistent with unjoined tests wrt newlines, honor newlines in ↵Timothee Cour2020-11-281-0/+1
| | | | | | | output spec (#16151) * fix megatest newlines * still allow missing trailing newline for now but in a more strict way than before
* More on #16110 (#16130)cooldome2020-11-261-6/+21
| | | | | | | | | | | * fix #16110 * refs #16110 * fix comment * Trigger build * use shallowCopy for efficiency
* fix #14339, #13511, #14420: fixes limited VM support for addr (#16002)Timothee Cour2020-11-251-0/+25
| | | | | | | | | | | * fix #14339: fixes limited VM support for addr * strengthen test * reference bug #16003 * also fixes #13511 * also fixes #14420
* fix #16110 (#16117)cooldome2020-11-241-0/+18
|
* Revert "fix #16110"Andrey R (cooldome)2020-11-241-19/+0
| | | | This reverts commit f8b9d8c1904c662f07e5ee1138357695a1df9ac3.
* fix #16110Andrey R (cooldome)2020-11-241-0/+19
|
* close #14847(add testcase for #14847) (#16045)flywind2020-11-191-0/+20
|
* add testcase for #14227 (#15794)flywind2020-10-301-0/+23
|
* implements https://github.com/nim-lang/RFCs/issues/258 (#15503)Andreas Rumpf2020-10-061-2/+9
| | | | | | | | | * implements https://github.com/nim-lang/RFCs/issues/258 * don't be too strict with custom pragma blocks * cast pragmas: documentation * added most missing inference query procs to effecttraits.nim
* renderer: use the biggest integer type for masking literals (#15482)alaviss2020-10-041-0/+2
| | | | | | | | On 32-bit system the mask would have a size of 32-bit, which is smaller than the BiggestInt (usually 64-bit) it was masked against. For some reason this only affect 32-bit Windows but not 32-bit Linux. Might just be a difference in how gcc handle out of bound shifts for Windows and Linux.
* Added std/effecttraits.nim (#15462)Andreas Rumpf2020-10-021-0/+22
|
* Fix #15389 (#15390)cooldome2020-09-241-0/+17
| | | | | | | | | * allow result symbol reuse * try different approach * Revert "try different approach" This reverts commit abcfb6b75983c2f798cc887342ff1a9ff10c0324.
* Fix forward declarations in shadow scope contexts (#15386)Clyybber2020-09-221-0/+77
| | | | | | | | | | | | | | | * Fix forward declarations in shadow scope contexts * Add testcase for #15385 * Less empty lines * Fix tests * Inline isShadowScope * Add original testcase (with reduced amount of iterations) * Add testcase without forward decl
* fix #15326 (#15341)cooldome2020-09-161-0/+8
|
* proc params as syms (#15332)cooldome2020-09-161-0/+8
| | | | | | | | | | | | | | | | | * proc params are now syms * Fix typesrenderer * Add testcase for disrupteks issue * fix test * Trigger build * Trigger build * Trigger build Co-authored-by: Clyybber <darkmine956@gmail.com>
* "for-loop macros" are no longer an experimental feature (#15288)Miran2020-09-081-1/+1
|
* Fix #5691 (#15158)Clyybber2020-08-272-0/+17
| | | | | | | | * Fix #5691 * Cleanup and thoughts * Use scope approach * Seperate defined/declared/declaredInScope magics * Fix declaredInScope * Update spec accordingly
* Fix forward declaration issues in template/macro context (#15091)Clyybber2020-07-291-0/+114
| | | | | | | | | | | | | | | | | | | | | | | * Fix forward declaration issues in template/macro context * Correct forward declaration resolving for overloads * Remove old dead code * WIP consistent gensym ids * Minimize diff * Remove obsoleted hack * Add templInstCounter to give unique IDs to template instantiations * Remove obsoleted code * Eh, init in myOpen, not myProcess... * Remove optNimV019 * Add testcase for #13484
* enable,document,test getImplTransformed, very useful for understanding how ↵Timothee Cour2020-07-181-0/+20
| | | | | | nim transforms code (#14924) * enable,document,test getImplTransformed, very useful for understanding how nim transforms code
* Closes #13253Clyybber2020-07-141-0/+31
|
* Clean up macros (#14959)Juan Carlos2020-07-141-3/+0
|
* Add testcase for #12129 (#14940)Clyybber2020-07-081-0/+14
| | | | | * Add testcase for #12129 * Fix test
* add legacy workaround; improve test so that it actually tests for the bugfixTimothee Cour2020-06-191-31/+7
|
* Update tuple newLitsolo9892020-06-191-0/+32
|
* Implement rendering of `[]=`, `{}`, `{}=` braces (#14539)cooldome2020-06-011-1/+14
| | | | | | | * render curly braces * fix typo * fix test Co-authored-by: cooldome <ariabushenko@bk.ru>
* => supports pragmas & names (+ changed behavior) (#14200)hlaaftana2020-05-031-16/+15
| | | | | | | | | | * => supports pragmas & names (+ changed behavior) (x, y: int) is now parsed as (x: int, y: int) instead of (x: auto, y: int) inside => and ->. * fix pragma check * fixes, use since & LHS of -> supports pragmas
* update tests that tested for the 'discard' error messagesAraq2020-05-021-8/+8
|
* Fix typeSym.getImpl for ref types (#13752)zah2020-03-261-2/+82
| | | | | | | | | | | | | | | | | | | | | * Fix typeSym.getImpl for ref types * Fix a codegen issue affecting the test suite of nim-beacon-chain * Fix tests/stdlib/tjsonmacro To understand the fix better it may help to take a look at the history of the replaced code. The nil check that is removed in this commit was introduced in another fix that failed to identify the root cause of the issue - namely that we allow an object type to exist for which no ast is present: https://github.com/nim-lang/Nim/pull/9601/files The original intention of the code is more obvious here: https://github.com/nim-lang/Nim/pull/9538/files
* fix deprecations and other warnings (#13748)Miran2020-03-251-4/+4
|
* add expectIdent to macros (#12778)Arne Döring2020-03-112-0/+42
| | | | | | | | | | | | | | | | * add expectIdent to macros * apply feedback * Update lib/core/macros.nim Co-Authored-By: Clyybber <darkmine956@gmail.com> * Update texpectIdent2.nim * Update texpectIdent1.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix several bugs with `repr` (#13386)Timothee Cour2020-02-111-0/+17
|
* fix #12740 (#12774)Arne Döring2019-12-041-0/+43
| | | | | | | | | | * fix #12740 * A different kind of a hack * proper fix * fix typo
* fix regression in align (#12680)Arne Döring2019-11-191-0/+14
| | | | | | * fix regression in align * add test typesym without type
* backtick and export marker handling in `eqIdent` (#12574)Arne Döring2019-11-071-0/+16
|
* remove unused imports from testsnarimiran2019-11-065-9/+4
|
* remove deprecated procs (#12535)Andreas Rumpf2019-11-051-2/+2
|
* macros.newLit now works for ref object types (#12307)zah2019-09-301-0/+25
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-272-2/+2
|
* fix range.getType crashJasper Jenkins2019-09-051-5/+10
|
* Implement isExported for symbols in macros (#11963)nc-x2019-08-181-0/+10
| | | | | | | | * Implement isExported for macros * Reimplement isExported using VM callback mechanism * VM does not support exceptions, use stacktrace() instead.
* Lock semchecked ast for macros (#11883) [bugfix]Arne Döring2019-08-084-6/+44
| | | | | | * reject to modify type checked AST * add flag to back out * Introduce legacy feature set.
* Fixes #11662: render ops priority (#11664)cooldome2019-07-051-0/+5
|
* fix for passing tuples as static params to macros (#11423); fixes #10751 ↵Arne Döring2019-06-071-0/+12
| | | | | | | | [bugfix] * add vm value preparation proc * small optimization
* fix macrocache implementation (#11404)andri lim2019-06-051-1/+53
| | | | | | * macrocache improvements * fix macrocache implementation
* intVal works now on enum field symbols (#11403)Arne Döring2019-06-051-0/+11
| | | | | | * intVal works now on enum field symbols * disable flakey titerators test
* added a nice test case for macro based lookup tablesAraq2019-06-041-0/+28
|
* close #8573 by adding a testnarimiran2019-05-301-0/+35
|
* Remove immediate pragma (#11308)Arne Döring2019-05-292-8/+6
| | | | | * remove immediate from tests * remove immediate from the compiler
* fix megatestnarimiran2019-05-291-0/+1
|