Commit Graph

1683 Commits

Author SHA1 Message Date
zetashift
cdf9b28515 fix #16885 2021-01-31 23:51:19 +01:00
narimiran
37a98c6c58 small fix in grammar.txt [ci skip] 2021-01-28 09:42:24 +01:00
Timothee Cour
e112974920 fix #16752: threadvar now works with importcpp types; osx now uses native TLS (--tlsEmulation:off), which can be orders of magnitude faster (#16750)
* osx now uses native TLS, which can be orders of magnitude faster

* add {.cppNonPod.}

* improve test

* changelog, docs, disable part of windows test
2021-01-27 22:35:43 +01:00
Elliot Waite
0436a7cffd Make small text changes in the docs (#16634)
* Fix broken links in docs

* Fix rand HSlice links

* Make small text changes in the docs

* Fix typo in contributing docs
2021-01-25 14:59:19 +01:00
konsumlamm
8395abab5f Small changes to std/sums (#16797) 2021-01-25 12:15:36 +01:00
Timothee Cour
eae3bdf8fe fix code-block (#16799) 2021-01-23 08:01:34 +01:00
Timothee Cour
8f62cd512c fix manual to reflect reality for .nosideeffect (#16781) 2021-01-22 20:04:48 +01:00
konsumlamm
72bbd07ec1 Add std/setutils to lib.rst (#16791)
* Add std/setutils to lib.rst

Improve doc comments for setutils

* Adhere to the RST spec

Use no UFCS in toSet
2021-01-22 13:13:18 +01:00
Timothee Cour
14730d9d64 fix noDecl => nodecl (#16760)
* fix noDecl => nodecl

* address comment

* disable flaky tests/stdlib/thttpclient.nim on freebsd
2021-01-20 11:08:42 +01:00
Clyybber
ccb11a63fb Reboot of #16195 (#16746)
* fix #16185

* fix test

* fix comment

* fix comment

* better approach

* Add more tests and move sameLocation to injectdestructors

* Better and more strict sameLocation

* Small cleanup and preliminary spec clarification

* Fix

* Fix doc

* Expand test

Co-authored-by: Andrey R (cooldome) <ariabushenko@gmail.com>
2021-01-20 11:05:56 +01:00
Timothee Cour
4fc7fcb775 --hintAsError (#16763)
* --hintAsError

* add test, changelog

* condsyms
2021-01-20 10:49:59 +01:00
narimiran
2bedb0fe2c add link to Nim Basics in tut1.rst [ci skip] 2021-01-20 09:15:20 +01:00
Andreas Rumpf
fbdf3f2ceb intsets are not deprecated 2021-01-19 19:07:36 +01:00
konsumlamm
44ceefa9fe Improve documentation for packedsets (#16715)
* Improve documentation for packedsets

Add more runnableExamples
Add deprecated pragma to intsets
Replace intsets with packedsets in lib.rst

* Apply suggested changes
2021-01-16 16:09:53 +01:00
Juan Carlos
78a99587a4 Deprecate TaintedString (#15423)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
2021-01-15 18:56:38 -08:00
Andrey Makarov
554fe8f88f conservative approach to fix #15184 (#16723) 2021-01-15 00:53:36 +01:00
flywind
f0cfc95372 fix docs typo (#16637)
* fix typo

* fix typo

* Update doc/astspec.txt
2021-01-12 14:08:24 +08:00
n5m
d721f5ceca fix syntax in macros documentation (#16604) 2021-01-06 03:23:59 +01:00
Federico Ceratto
e67059a03a Add short description on GC (#16535) 2021-01-01 18:36:20 +01:00
flywind
4a479f4a6e update contributing.rst (#16530)
* update docs

* Apply suggestions from code review

* Update doc/contributing.rst
2021-01-01 18:33:35 +01:00
flywind
732419ae90 improve examples in manual (#16497)
* improve examples in manual

* Update doc/manual.rst

Co-authored-by: Clyybber <darkmine956@gmail.com>

* Update tests/cpp/ttemplatetype.nim

Co-authored-by: Clyybber <darkmine956@gmail.com>

Co-authored-by: Clyybber <darkmine956@gmail.com>
2020-12-29 13:44:48 +01:00
Alexander Ivanov
672dc5cd87 Nil type check implementation (#15287)
* Nil checking
* Enable current older not nil checking again, run new checking only under flag, skip our test
* Enable tests, work on try/except and bugs, fix notnil tests

* Enable strictNotNil tests (currently with lowercase category) and add some expected output
* Work on try/except/finally: still some things unclear and a lot of code can raise out of try
* Fix the notnil build by going back to the old version of a test which I shouldn't have changed

* Fix test : use action compile
* Work on mutation and aliasing: not finished
* Render var parititions graph, try to understand it, fix a nilcheck if bug
* Rebase, progress on working with partitions
* Improve time logic
* Fix some bugs, use graph indices instead of symbol in nil map
* Fix bugs, test simpler ident aliasing for now, support two mutation levels
* Support ContentMutation and ReAssignment: for now just detect possible re assignment for var parameters of calls
* Enable several simple passing tests
* Cleanup a bit, fix condition/branch infix-related bug
* Remove some files, address some comments by Araq
* Use internalError and no quit for now
* Separate tests with expected warnings and with expected ok, fix a bug with if with a single branch related to copyMap
* Fix new data structures, bugs: make tests pass, disable some for now
* Work on fixing errors with non-sym nodes, aliasing: tests fail
* Work on alias support: simple set-based logic, todo more tests and ref sets?
* Use ref sets: TODO can we think of handle seq-s similar to varpartitions' Araq ones
* Handle defers in one place, stop raising in reverse to make an async test compile with strictNotNil, add a commented out test
* Dot expressions: call/reassignment. Other refactorings and distinct, SeqOfDistinct support. Checkout an older varpartitions
* Work on field tracking
* Backup : trying to fix bugs when running some stdlib stuff for running an async test
* Start a section about strict not nil checking in experimental manual
* Fix experimental strict not nil manual section and move it to another file based on Araq feedback
* Fix unstructured flow and double warning problems, fix manual, cleanup
* Fix if/elif/else : take in account structure according to Araq feedback
* Refactor a bit
* Work on bracket expr support, re-enable tests, clarify in manual/tests/implementation static index support for now
* Work on compiling stdlib and compiler with strictNotNil
* Small fixes to the manual for strictNotNil
* Fix idgen for strict check nil rebase
* Enable some simple tests, remove old stuff, comment out code/print
* Copy the original varpartitions source instead of my changes
* Remove some files
2020-12-29 10:31:11 +01:00
Andrey Makarov
2bdc479622 RST: implement admonitions (#16438) 2020-12-27 11:16:12 +01:00
treeform
626c2bc658 Add docs for nnkHiddenStdConv (#16408)
Add it to devel branch this time. I hope this works.
2020-12-27 10:45:30 +01:00
flywind
b57df6d0b3 Don't use unittest.suite and unittest.test (#16464) 2020-12-27 10:15:57 +01:00
Code Hz
90dbb6f3fb removing out T from docs since it no longer working (#16378) [backport]
* remove `out T` from docs

see https://github.com/nim-lang/Nim/issues/16131

* remove `out T` in title
* remove entire paragraph
2020-12-18 10:40:43 +01:00
Maurizio Tomasi
3b963a8150 Add note about minimum Node.js version (#16370)
Fix the error message
2020-12-16 16:05:59 +00:00
Saem Ghani
9ef7c01820 Syntax (RST) fix Internals of the Compiler (#16341)
'Rebuilding the Compiler' and a few other sections required syntax fixes:
* new lines before and after lists to fix rendering
* use internal reference instead of Markdown style link
2020-12-15 14:57:11 +01:00
Elliot Waite
f3d57761ab Fix broken links in docs (#16336)
* Fix broken links in docs

* Fix rand HSlice links
2020-12-14 20:13:12 +01:00
Timothee Cour
7e1ae35195 testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343)
* testament: error instead of silently ignore invalid targets
* s/target/targets/
* fix test; refs #16344
* address comments
* Update testament/specs.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-12-14 10:58:29 +01:00
Andrey Makarov
6877e0c8a3 RST tables: fix latex col number; allow less than three of = (#16040) 2020-12-04 08:50:17 +01:00
ee7
629b22e3d5 styleCheck: Fix error for sugar and std/with (#16176)
With this commit, we no longer see an error if we pass
`--styleCheck:error` when compiling a file that contains `import sugar`
or `import std/with`.

The problem was that those modules (and only those modules) import
`std/private/underscored_calls`, which contained a styleCheck issue:
its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in
`macros.nim`.

This commit fixes the issue by renaming `nnkArgList` to `nnkArglist`
repo-wide. The other way around would be a breaking change for code that
used `nnkArglist` and `--styleCheck:error`.

Fixes: #16174
2020-12-02 20:48:16 +01:00
ihlec
5c23ba7545 fixed article duplication typos (#16216) 2020-12-02 09:15:29 +01:00
Timothee Cour
13b1b19a83 remove all mentions of doc2, jsondoc2 (except 1 mentioning the alias) (#15683) 2020-11-26 11:54:18 -08:00
Miran
1ad7e4f30b fix #16047 (#16066) 2020-11-20 03:31:06 -08:00
Timothee Cour
44442520bc fix numbering in contributing.rst (#16042) 2020-11-18 19:41:01 -08:00
Timothee Cour
bf8421a2fc contributing docs: always mentioned referenced issues in PR body (#16038) 2020-11-18 23:29:32 +01:00
Timothee Cour
50d035b789 defer: improve manual, clarify difference wrt try/finally (#16010) 2020-11-17 08:40:17 +01:00
Juan Carlos
1b9f37c6dc https://github.com/nim-lang/Nim/pull/15968/files#r523468677 2020-11-14 19:57:06 -03:00
Juan Carlos
c56a6133bb Fix #15806 2020-11-14 15:45:13 -03:00
Juan Carlos
9ab1a86b5b Fix #15806 2020-11-14 15:43:31 -03:00
Juan Carlos
3cebae492e Fix #15806 2020-11-14 15:39:03 -03:00
Juan Carlos
d0dda9efab Fix #15806 2020-11-14 15:31:59 -03:00
Andreas Rumpf
1978b91202 [docs minor]add some tips to intern.rst (#15967)
* [docs minor]add some tips yo intern.rst

* minor
2020-11-14 13:00:06 +01:00
flywind
bfa387d384 minor 2020-11-14 18:51:05 +08:00
flywind
5af798c21b [docs minor]add some tips yo intern.rst 2020-11-14 18:47:17 +08:00
Timothee Cour
96930b9cae targets: use cpp instead of c++ everywhere (was by far the most common) (#15961) 2020-11-14 10:08:15 +01:00
flywind
4663319bf5 follow #8463 #14157 and document cstring literals modification is not allowed (#15878)
* follow #8463 #14157 and document cstring literals
* Update doc/manual.rst

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-11-12 15:28:45 +01:00
narimiran
f02c7542fc nimdoc: items of ordered lists now have numbers instead of circles 2020-11-11 15:59:41 +01:00
narimiran
b831033db6 remove codeowners [ci skip] 2020-11-11 14:02:35 +01:00