summary refs log tree commit diff stats
path: root/tests/pragmas/tcustom_pragma.nim
Commit message (Collapse)AuthorAgeFilesLines
* close #11415; add testcase (#20486)ringabout2022-10-031-0/+25
|
* store full definition AST for consts, fix noRewrite (#20115)metagn2022-09-281-0/+40
| | | | | | | | | | | | | | | | | | | | | | | * continue #9582 for consts, close #9331, fix #20114 also move extractPragma to ast to pave the way for things like {.strdefine: "abc".} etc * changelog correctly * fix jsgen * update tgetimpl * fix sighashes * fix #19766, add comment about postfix * fix noRewrite LOL refs #16620 * fix changelog * fix destructors
* Allow custom pragma on iterators [backport] (#20344)Tanguy2022-09-171-0/+7
| | | Allow custom pragma on iterators
* Clonkk fix2 11923 (#19451)Regis Caillaud2022-02-021-0/+6
| | | | | | | * fix nnkBracketExpr not compiling for getImpl on customPragmaNode * fix test import * fix alias not working with hasCustomPragmas
* Fix #11923 (#19427)Regis Caillaud2022-01-201-0/+10
| | | | | * Apply commit https://github.com/nim-lang/Nim/commit/5da931fe811717a45f2dd272ea6281979c3e8f0b that was never merged (was part of a bigger PR). Should fix issue #11932 * add a generic object for custom pragma
* fixes #18543 (#18601)Andreas Rumpf2021-07-271-12/+13
| | | | | * fixes #18543 * make tests green again
* getCustomPragmaVal priority/override fixes (#17725)Clyybber2021-04-211-0/+10
| | | | | | | | | * Adhere left-to-right rule for custom pragma priority * Improve error message for no custom pragmas * custom pragmas on var/let sym take priority over its type ones * Workaround & bug
* Fix getCustomPragmaVal for some multi arg pragmas (#17723)Clyybber2021-04-151-0/+9
| | | | | * Fix getCustomPragmaVal for some multi arg pragmas * Bootstrap fix
* simplify asyncfutures, asyncmacro (#17633)Timothee Cour2021-04-141-13/+7
|
* getCustomPragma is split up in more usable chunks (#11526)Arne Döring2021-04-141-3/+27
| | | | | | | | | | | | | | | | | * getCustomPragma is split up in more usable chunks * changelog entry * fix for style checks * shitty typedesc special casing * Add since annotation and remove typedesc comments * Fix typo * Revert since annotation because it breaks bootstrapping * Export getCustomPragmaNode conditionally * Reduce code duplication * Update since * Update lib/core/macros.nim * Apply suggestions from code review Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* use doAssert in tests (#16486)flywind2020-12-281-30/+30
|
* close #8457 (#15844)flywind2020-11-051-0/+11
|
* Add test-cases for #12576 and #12523 (#15085)Danil Yarantsev2020-07-271-2/+23
| | | | | * Add a test-case for #12576 * Add a test-case for #12523
* fix #13909 (#13914) [backport:1.2]cooldome2020-04-081-0/+11
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* macros for proc types, macros for types (#13778)Andreas Rumpf2020-03-311-1/+87
| | | | | | | | | * new minor feature: macros for proc types, to be documented * Finished the implementation and added tests * [skip ci] Describe the new custom pragmas in the manual and the changelog Co-authored-by: Zahary Karadjov <zahary@gmail.com>
* Fix astdef typ deref (#10245)Alexander Ivanov2019-04-051-2/+11
|
* Prevent crash on pragma templates w/ generics (#10685)LemonBoy2019-02-181-0/+7
| | | | | | | | | * Prevent crash on pragma templates w/ generics * Remove incorrect call to pragma reconversion `semOverloadedCall` may return a node with more elements than the original nkCall node had (implicit and/or explicit generics).
* Misc macro things (#10612)LemonBoy2019-02-091-1/+1
| | | | | | | | | | | | * Misc cleanup in macro code Generate error messages using `error` instead of `assert`. Fixes #10574 * Fix crash with hasCustomPragma on quoted fields Use the `$` operator instead of reaching for the `strVal` field directly
* Fix getCustomPragmaVal on `var` fieldsLemonBoy2019-02-061-0/+5
|
* Fixed getCustomPragmaVal to allow multiple fields in custom annotations (#10289)Ico Doornekamp2019-01-181-0/+9
|
* add custom pragma support for var and let symbols (#9582)jcosborn2019-01-071-6/+29
| | | | | | * add custom pragma support for var and let symbols * updated changelog for custom pragmas on var and let symbols * add oldast switch for backwards compatibility
* add testAndrii Riabushenko2018-12-111-0/+22
|
* Bugfix: custom pragmas were not working on public fieldsZahary Karadjov2018-09-171-1/+1
|
* fixes #8371, macros.hasCustomPragma doesn't crash anymore (#8378)andri lim2018-07-201-0/+20
| | | | | | * fixes #8371, macros.hasCustomPragma doesn't crash anymore * fix macros.hasCustomPragma
* Custom pragmas in proc types (#8205)cooldome2018-07-091-1/+9
|
* Fix use of custom pragmas in generic procs (#8165)LemonBoy2018-07-011-1/+9
| | | Fixes #7626
* hasCustomPragma/getCustomPragmaVal: small fix (#7650)RSDuck2018-04-191-1/+9
| | | | | | | | * fix hasCustomPragma/getCustomPragmaVal for types without pragma * fix pragma on pointer test * removed trailing spaces
* fixes #7451 (#7575)RSDuck2018-04-141-11/+90
|
* Custom pragmas in procs bug fix (#7086)cooldome2018-01-181-0/+10
|
* Implement custom annotations (#6987)cooldome2018-01-091-0/+43