summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fixes #22246; generate `__builtin_unreachable` hints for case ↵ringabout2023-07-313-9/+5
| | | | | | | defaults" (#22351) Revert "fixes #22246; generate `__builtin_unreachable` hints for case defaults (#22350)" This reverts commit b56df5c07f7dc9ac9d718ca47c10b0683a9b916f.
* fixes #22246; generate `__builtin_unreachable` hints for case defaults (#22350)ringabout2023-07-313-5/+9
| | | | | | | | | * fixes #22246; generate `__builtin_unreachable` hints * use elif * indentation * fixes holy enums in sim
* fixes #22174; fixes destructor examples (#22349)ringabout2023-07-311-6/+6
| | | | | | | | | | | * fixes #22174; fixes destructor examples * Update doc/destructors.md Co-authored-by: Andreas Rumpf <rumpf_a@web.de> --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* remove thread duplicated code (#22348)Bung2023-07-311-5/+0
|
* add a changelog for `ensureMove` (#22347)ringabout2023-07-301-0/+1
| | | | | | | | | * add a changelog for `ensureMove` * Update changelogs/changelog_2_0_0_details.md --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add Valgrind (#22346)Juan Carlos2023-07-301-0/+3
| | | | | * . * Add Valgrind for Bisect bot in GitHub Actions
* fixes an issue where byref wasnt properly handled when using it in a generic ↵Juan M Gómez2023-07-292-3/+37
| | | | | | | param (#22337) * fixes an issue where byref wasnt properly handled when using it in a generic param * removes unreachable check
* implement `ensureMove` (#22339)ringabout2023-07-2914-4/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implement `ensureMove` * use an additional flag * improve some logics * progress: fixes discard ensureMove * forbids nested expressions * improve error messages * checkpoint * fixes cursor * ADD MORE TESTS * fixes cursorinference again * tiny cleanup * improve error messages * fixes docs * implement comments add more tests * fixes js
* Remove declared and not used variable in packedsets.bitincl (#22334)Eric N. Vander Weele2023-07-271-1/+0
| | | | When compiling code that uses PackedSet with warnings enabled, `var ret` in `bitincl` emits a "XDeclaredButNotUsed" warning.
* [JS] Fix bitwise ops & shifts (#22340)konsumlamm2023-07-272-31/+101
| | | | | * [JS] Fix bitwise ops & shifts * Test `int64` & `uint64` only with `jsbigint64`
* fixes docs (#22331)ringabout2023-07-261-1/+1
|
* [JS] Fix casting to ints (#22327)konsumlamm2023-07-252-19/+28
| | | | | * [JS] Fix casting to ints * Simplify `genCast` by using `asUintN`/`asIntN`
* fixes #22301; fixes #22324; rejects branch initialization with a runtime ↵ringabout2023-07-256-21/+64
| | | | | | | | | | | discriminator with defaults (#22303) * fixes #22301; rejects branch initialization with a runtime discriminator with defaults * undefault nimPreviewRangeDefault * fixes tests * use oldCheckDefault
* Fix grammar top rule (#22325)Khaled Hammouda2023-07-242-2/+2
| | | change stmt to complexOrSimpleStmt in the top grammar rule
* fixes #22321; fixes building DLL with --noMain still produces a DllMain (#22323)ringabout2023-07-242-2/+1
| | | | | * fixes #22321; Building DLL with --noMain produces an unexpected DllMain on devel branch * remove implicit nomain
* Expands codegenDecl to work in function params. fixes #22306 (#22307)Juan M Gómez2023-07-237-18/+47
| | | | | | | * Expands codegenDecl to work in function params. fixes #22306 * makes the test more concrete so T{lit} params dont match * adds sfCodegenDecl
* Testcase for #22008 (#22320)SirOlaf2023-07-231-0/+8
| | | | | Testcase Co-authored-by: SirOlaf <>
* implemented 'push quirky' switch for fine grained control over the ex… ↵Andreas Rumpf2023-07-2310-31/+102
| | | | | | | (#22318) * implemented 'push quirky' switch for fine grained control over the exception handling overhead * documentation
* Check try block for endsInNoReturn (#22314)SirOlaf2023-07-221-2/+3
| | | Co-authored-by: SirOlaf <>
* Update 2.0 changelog (#22311)konsumlamm2023-07-222-100/+110
|
* Document `cast` zeroing memory (#22313)konsumlamm2023-07-221-14/+17
|
* Add test for #22309 (#22316)konsumlamm2023-07-221-0/+11
|
* Fix doc comment rendering for concepts (#22312)konsumlamm2023-07-222-2/+2
|
* Open scope for defer (#22315)SirOlaf2023-07-221-0/+2
| | | Co-authored-by: SirOlaf <>
* fixes #22297; return in the finally in the closure iterators (#22300)ringabout2023-07-222-1/+14
| | | ref #22297; return in the finally in the closure iterators
* fixes CI; disable SSL tests on osx for now (#22304)ringabout2023-07-222-0/+2
| | | | | * test CI * disable osx
* fixes #22210; transform return future in try/finally properly (#22249)ringabout2023-07-213-9/+162
| | | | | | | | | | | * wip; fixes #22210; transform return future in try/finally properly * add a test case for #22210 * minor * inserts a needsCompletion flag * uses copyNimNode
* `infixArgument` fail in `renderer.nim` sometimes (#22264)Ryan McConnell2023-07-201-1/+5
| | | | | * fixing minor typo * Adding err msg
* fix `jsondoc` not getting `showNonExports` flag (#22267)Jake Leahy2023-07-202-8/+11
| | | Pass the config down so we can check if the `--showNonExports` flag is used
* minor code improvement (#22293)Andreas Rumpf2023-07-191-6/+7
|
* fixes #22254; fixes #22253; stricteffects bugs on recursive calls (#22294)ringabout2023-07-192-2/+14
|
* Adding info to manual (#22252)Ryan McConnell2023-07-191-3/+57
| | | | | | | | | | | * Adjustments * Moving example * typo * adding code example back and fix terms * Condensing
* fixes #22268; fixes `move` codegen (#22288)ringabout2023-07-194-34/+20
|
* fixes #6499; disallow built-in procs used as procvars (#22291)ringabout2023-07-193-4/+7
|
* Fix #22281 (#22289)Anna2023-07-181-1/+1
| | | Respect `--gcc.exe` and similar options when `--genScript:on` is used.
* extend the skipAddr for potential types for destructors (#22265)ringabout2023-07-181-2/+1
| | | extend the skipAddr for potential types
* Fix non-toplevel fields in objects not getting rendered (#22266)Jake Leahy2023-07-165-25/+106
| | | | | | | | | | | | | * Add example object into testproject The proc is there to check the case of an identDef being inside an identDef (We do want to render those even if they are not exported) * Add `inside` set to `TSrcGen` which allows us to see what context we are in This is done instead of adding another inXyz bool parameter We then use this to know if we are inside an object when rendering an nkIdentDefs (To know if we need to skip rendering it) * Update test files
* Fixes Naive virtual crash the compiler fixes #22269 (#22271)Juan M Gómez2023-07-162-1/+5
| | | | | * Fixes Naive virtual crash the compiler fixes #22269 * adds type specific test
* fixes idx properly (#22280)ringabout2023-07-142-10/+13
|
* Fix #22273 (#22275)Juan Carlos2023-07-141-1/+1
| | | * Fix #22273
* gendepends now supports pkgs2 (#22277)ringabout2023-07-141-6/+10
|
* fixes #22256; fixes GC_disableOrc overflow (#22257)ringabout2023-07-112-1/+10
|
* Rename `seq.add` parameter to be consistent with `refc` (#22244)Solitude2023-07-101-2/+2
|
* fixes #22237; fixes #21160; wrong cursor on unowned parameters in the for ↵ringabout2023-07-102-2/+70
| | | | | loop in ORC (#22240) fixes #22237; fixes #21160; wrong cursor on unowned parameters
* Fix nimsuggest not showing suggestions for imported tuples (#22241)Jake Leahy2023-07-104-1/+31
| | | | | | | | | | | * Add tests Also test if exported all tuple fields works. This seems like a hacky solution so will try and dive further to find a better solution * Always suggest tuple fields if it passes the filter If the tuple we are accessing is in scope then all the fields will also be in scope * Update tests so line numbers are correct
* fixes #21730; adds pkgs2 as well when nimbleDir is set (#22234)ringabout2023-07-071-0/+2
|
* Fix #21595 (#22233)Juan Carlos2023-07-071-2/+1
| | | | | * . * Fix #21595
* Tolerate markup errors for doc comments (#19607) (#22235)Andrey Makarov2023-07-072-5/+17
| | | | | | | | | | | | | | | | | Follow-up to #21576 (for solving #19607). 1) errors in Markdown mode for `.nim` doc comments are reported with red color but allow to generate `.html` with the comment represented by literate block (monospaced text). We suppose that it's what people want for (supposedly) small doc comments. And this behavior is also a bit more Markdown-ish in the sense that Markdown generally does not have the concept of parsing error. - However, for standalone `.md` it's **not** applied because for large files the consequences are way bigger. (In {.doctype: rst.} mode the behavior is the same as before -- report the error and stop.) In future, when our parser can handle Markdown without errors according to the spec, this code will most probably be not needed.
* Fix #21401 (#22232)Juan Carlos2023-07-071-0/+8
|
* fixes #22175 (#22229)Andreas Rumpf2023-07-062-2/+17
|