summary refs log tree commit diff stats
path: root/tests/macros
Commit message (Collapse)AuthorAgeFilesLines
* fixes #10805 (#10806)cooldome2019-03-131-0/+5
|
* fixes #10807 (#10814)cooldome2019-03-121-1/+11
| | | | | * fixes #10807 * use nkAddr instead of nkHiddenAddr
* fixes #10702 (#10705)Andreas Rumpf2019-02-181-2/+32
| | | | | | * --define:nimQuirky exception handling for Nim; in preparation of a blog post * make it work with latest system.nim * make code more readable * fixes #10702
* fix #10591 regression (#10592)Timothee Cour2019-02-061-1/+1
|
* Reject assignments with nkEmpty RHS (#9000)LemonBoy2019-02-061-0/+26
| | | Fixes #8997
* Avoid evaluating macros twice in type sections (#10550)LemonBoy2019-02-061-0/+15
| | | Fixes #10548
* fix #10339 by returning type attached to nkEmpty (#10370)Vindaar2019-01-231-0/+15
| | | | | | | | | | | | | | | * fix #10339 by checking for nkObjConstr * revert check for nkObjConstr, return type from nkEmpty node The correct type needed in `semObjConstr` to fix #10339 is indeed available, but attached to an `nkEmpty` node. These were previously discarded in `semTypeNode`, which is used to extract the type for the object. * simplify return of PType from `nkEmpty` * also fixes #9866, add test case
* make megatest greenAraq2019-01-131-2/+1
|
* closes #3744Araq2019-01-131-0/+11
|
* fixes #10075 [backport]Araq2019-01-131-1/+30
|
* megatest: make it green on LinuxAraq2018-12-111-0/+1
|
* Testament: refactoring; makes the test joiner greenAraq2018-12-111-0/+1
|
* lots of small changesArne Döring2018-12-111-1/+1
|
* megatest can be executedArne Döring2018-12-111-0/+0
|
* require errormsg to be specified before file.Arne Döring2018-12-114-4/+1
|
* fixes #9864 [backport]Araq2018-12-051-0/+36
|
* cleanup tests; don't use non-working 'msg' spec fieldAraq2018-11-238-28/+34
|
* activated more tests, allow input in test specArne Döring2018-11-231-2/+4
|
* make run the default action of a test in testerArne Döring2018-11-233-2/+44
|
* Add isInstanceOf for generic procs to the macros module (#9730)cooldome2018-11-211-0/+19
|
* Add proc `[]`(n: NimNode, s: HSlice[T, U]): seq[NimNode] to macros (#7735)Lolo Iccl2018-11-101-0/+38
| | | fixes #7670.
* newLit works on enum (#9662)Arne Döring2018-11-091-0/+20
| | | | | | * newLit works on enum * remove debugging echo
* adopt testsArne Döring2018-11-081-8/+7
|
* fixes #9600 (#9601)jcosborn2018-11-071-0/+11
|
* Quote do now works with result in block (#7343)PMunch2018-10-311-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix result not being able to use in quote do This fixes the annoying issue of not be able to use result inside a quote do block. It works by a simple trick. The quote do mechanic is based on dynamically creating a template and immediately calling it with the arguments found within the quote do block. Since this is called in the scope of the macro the result variable is shadowed. This trick works by changing all occurences of result (which shouldn't cause any issues as result isn't used for anything else for the same reason) to another name and then passing in an IdentNode with result as a named parameter with that name. Note that currently this just replaces it with a fixed named variable "res" which should be changed to a non-colliding, dynamically created name. * Fix hard coded parameter "res" to anonymous symbol This fixes the hard coded parameter "res" to be an anonymous symbol instead so it won't collide with other parts of the argument list. * Add test case for result in quote do block A simple test case based on GitHub issue #7323 on how you can't put result in a quote do block. This test verifies that it actually works correctly now. * Add test for explicit capturing of result * Rebased against devel
* getTypeImpl now returns pragmas for object types (#9538)jcosborn2018-10-301-0/+18
|
* More descriptive names of test files (#9531)Miran2018-10-292-0/+0
| | | | | * change generic `tissues` name to more specific * change `tvarious` to more specific names
* Change the order of compilation passes, transformation is made lazy at code ↵cooldome2018-10-181-1/+1
| | | | | | | | | | | | | | | gen (#8489) * Ast no transformation * Add getImplNoTransform to the macros module * progress on delaying transf * Fix methods tranformation * Fix lazy lambdalifting * fix create thread wrapper * transform for lambda lifting * improve getImplTransformed * Fix destructor tests * try to fix nimprof for linux
* added test case for `or` operatorArne Döring2018-10-181-0/+14
|
* merge macros tests (#9367)Miran2018-10-1417-373/+352
|
* compiler: show name of instantiating context in error traces (#6763) (#9207)xzfc2018-10-111-1/+1
|
* Unchecked arrays now have their own type (#9267)LemonBoy2018-10-101-0/+4
|
* Fix macro expansion in expandMacros (#8998)LemonBoy2018-10-091-0/+19
| | | | | | | | | | * Fix macro expansion in expandMacros Running a semanticized node trough the semantic pass was a bad idea. Fixes #7723 * Simpler smaller implementation
* Fix overload resolution for pragmas evaluation (#8902)LemonBoy2018-10-091-1/+1
| | | | Fixes #6448 Fixes #4384
* Fix range type construction in the VM (#9205)LemonBoy2018-10-091-0/+20
| | | | | | The `range[X,Y]` representation is wrong, we use `range[X .. Y]` instead. Fixes #9194
* add tcollect test for the new for-loops as expressions featureAndreas Rumpf2018-09-111-0/+63
|
* Renderer bug fixes (#8804)cooldome2018-09-071-1/+46
| | | | | | Fixes #8763: render bug: pure enums not handled correctly Fixes #8762: render bug: binary operators called with quotes rendered incorrectly FIxes #8761: render bug: inversion of operator priorities
* Add sym owner to macros (#8253)cooldome2018-09-031-1/+30
|
* Do not materialize empty varargs[untyped] arrays (#8715)LemonBoy2018-08-311-0/+21
| | | | | | | | | When an empty nkArgList `varargs[untyped]` is passed around it is now reused for efficiency sake and to prevent the introduction of a spurious element: before this commit we'd pass the caller a nkArgList[nkHiddenStdConv[nkBracket]] node instead of just an empty nkArgList. Fixes #8706
* Allow `hint` and `warning` to specify its loc info (#8771)LemonBoy2018-08-281-0/+24
| | | Let's bring those to feature-parity with `error`.
* fixes 8754 (#8755)cooldome2018-08-241-5/+14
| | | | | | * fixes 8754 * improve test
* put the new for loop macros under an experimental switch named 'forLoopMacros'Andreas Rumpf2018-08-151-1/+1
|
* fixes #5617, 'copyLineInfo' addition (#8523)andri lim2018-08-051-0/+14
|
* fixes #7827, bindSym enhancement (#8499)andri lim2018-08-021-0/+42
| | | | | | | | | | | | | | | | * bindSym power up, working prototype * update bindSym doc * add bindSym test * fix some typo * fix bindSym doc * get rid of specialops field from vm * add experimental: dynamicBindSym
* Render bug: if expression with statement list expression as condition (#8375)cooldome2018-07-211-0/+16
| | | | * Fixes #8348
* Fixes #8343, Fixes #8344 (#8347)cooldome2018-07-181-1/+16
|
* make typesafeprintf test greenAndreas Rumpf2018-07-171-3/+4
|
* Fixes #8287 (#8288)cooldome2018-07-121-0/+20
|
* system.nim: remove deprecated symbolsAndreas Rumpf2018-06-281-16/+0
|
* Return an error symbol as macro output if needed (#8116)LemonBoy2018-06-271-0/+8
| | | | | | Return an error symbol if the macro output has no type and a typedesc is expected. Fixes #7454