summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* move tests from `tospaths` to `tos`, fixes #9671narimiran2019-01-232-142/+111
| | | | Also, change some of `echo`s to `doAssert`.
* make DLLs tests compile again; remove dependency on nimbase.h slightlyAraq2019-01-231-2/+16
|
* excpt.nim: code cleanup, don't produce nimFrame in -d:release modeAraq2019-01-231-21/+15
|
* OutOfMemError is never raised so there is no need to check for it (produce ↵Araq2019-01-231-13/+6
| | | | less code)
* improve the generated code size for --gc:regionsAraq2019-01-231-1/+1
|
* compiler/sem*: better lineinfo for templates (#10428)alaviss2019-01-235-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compiler/sem*: better lineinfo for templates Lineinfo for templates is inconsistant across the compiler, for example: doAssert true ^ ^ a[int](10) ^^ ^ The `^` marks where the compiler thinks the template starts. For qualified call, we got the same situation with `proc`s before #10427: system.once ^ Generics lineinfo within template declaration is also incorrect, for example, this is where the compiler believes the `T` in `[T]` is: template a[T](b: T) ^ This PR addresses all of these problems. * nimsuggest: add tests for template highlighting
* Fix issue #10358 (#10383)Tomohiro2019-01-233-11/+22
| | | | | | * Fix bug: vccexe finds oldest VCC * echo path to vcvarsall.bat as hint when failed to execute cl.exe
* update gitignore [ci skip]narimiran2019-01-231-0/+1
|
* fix #10339 by returning type attached to nkEmpty (#10370)Vindaar2019-01-233-1/+33
| | | | | | | | | | | | | | | * 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
* Fixes #10263; [backport]Ico Doornekamp2019-01-231-1/+1
|
* Add packaging guide #5182 (#10384)Federico Ceratto2019-01-233-0/+75
|
* Harmonize the var/let and const handling (#10410)LemonBoy2019-01-232-4/+25
| | | Fixes #10333
* Added --docInternal option to allow 'nim doc' to include non-exported symbolsIco Doornekamp2019-01-234-1/+8
|
* use the lastRead analysis; it's correct by construction, not a mess of ↵Andreas Rumpf2019-01-231-2/+2
| | | | special cases and seems to be just as fast as the old algorithm
* destroyer.nim: code cleanupAndreas Rumpf2019-01-231-67/+0
|
* make tests green againAndreas Rumpf2019-01-231-50/+81
|
* control flow graphs: introduce 'join' points for easy analyses based on ↵Andreas Rumpf2019-01-233-154/+395
| | | | abstract interpretation
* nimsuggest/tester: disable highlight tests for epc (#10426)alaviss2019-01-233-2/+4
| | | | The EPC backend of nimsuggest currently doesn't support nimsuggest highlighter, see nim-lang/nim-mode#140
* compiler/sem*: improve lineinfo for qualified and generic procs (#10427)alaviss2019-01-235-19/+56
| | | | | | | | | | | | | | | | Previously the compiler will believe these are where `newSeq` symbol starts: newSeq[int]() ^ system.newSeq[int]() ^ This commit moves them back to: newSeq[int]() ^ system.newSeq[int]() ^
* remove `tdont_be_stupid`, fixes #10386narimiran2019-01-231-23/+0
|
* Added basic bit manipulation procs to bitops (#10338)Ico Doornekamp2019-01-232-1/+116
|
* close #3899 by adding test case (#10424)Vindaar2019-01-231-0/+10
|
* Fix semantic analysis with noReturn proc in tail pos (#10422)LemonBoy2019-01-232-1/+12
| | | Fixes #10417
* Fix for issue #10342. better message for generic subclass instantiation (#10354)Ray Imber2019-01-224-4/+33
| | | * Fix for issue #10342. better message for generic subclass instantiation errors.
* Fix wrong integer types in odbcsql and db_odbc (#10419)pgkos2019-01-222-47/+19
| | | | | * Fix wrong parameter type in SQLErr * Fix wrong types of integers passed to SQLGetData
* Restore compatibility with old vcc versions [backport] (#10415)LemonBoy2019-01-221-14/+14
| | | | | Local variables are declared before anything else. Fixes #10352
* Remove deprecated modules (asyncio, sockets, ftpclient) (#10401)Miran2019-01-2211-3187/+61
|
* Enable log folding in Travis CI (#10414)Federico Ceratto2019-01-222-11/+23
| | | Prevent log truncation in browsers
* better docs: parseopt (#10398)Jjp1372019-01-221-49/+266
|
* make --define:noSignalHandler compile againAraq2019-01-222-2/+2
|
* compiler interface: don't overdocument the on|off switchesAraq2019-01-222-3/+4
|
* Restrict ptr/ref to ptr/ref implicit conversion (#10411)LemonBoy2019-01-223-6/+18
| | | | | | | | * Restrict ptr/ref to ptr/ref implicit conversion Fixes #10409 * Make the ptr conversions explicit in db_odbc
* Better docs for sets and intsets (#10362)Miran2019-01-222-613/+1062
| | | | | | * better docs: sets * better docs: intsets
* Restore the docstring during the .async. transform (#10404) [backport]LemonBoy2019-01-221-0/+6
| | | Fixes #9816
* Fix compileTime pragma applying to whole var/let section (#10389)Neelesh Chandola2019-01-222-6/+19
|
* Object downconversion in VM should not copy (#10378)LemonBoy2019-01-222-0/+22
| | | | | | Hopefully the type-check phase already rejected all the invalid conversions by the time we execute the VM bytecode. Problem reported by chrisheller on the Nim Forum
* Finalizer proc must be global (#10388)LemonBoy2019-01-222-0/+36
| | | Fixes #10376
* Fix corner case of checked div/mod on x86 (#10406)LemonBoy2019-01-221-15/+29
| | | Fixes #10377
* Gdb reload (#10408)Miran2019-01-221-8/+17
|\ | | | | | | | | | | * gdb pretty printer survive reload * precise printer injection
| * precise printer injectionArne Döring2019-01-211-5/+14
| |
| * gdb pretty printer survive reloadArne Döring2019-01-211-8/+8
| |
* | Fix gorge caching (#10407)genotrance2019-01-221-2/+2
| |
* | Fix subtype conversion w/ varargs arguments (#10402)LemonBoy2019-01-215-2/+7
| | | | | | | | | | | | | | | | | | The type matching is done on the `T` of the `varargs[T]` so the conversion must be performed to `T` and not to the whole type. This problem is only noticeable with the cpp backend since C doesn't give a damn shit about your fucking (wrong) types. Fixes #9845
* | Proper check for tyStatic[T] -> U conversions (#10382)LemonBoy2019-01-212-0/+7
| | | | | | | | | | Drop the outer tyStatic shell then perform the check. Fixes #7609
* | Support system.reset in vm (#10400)Oscar Nihlgård2019-01-214-4/+32
| |
* | Correct lineinfo for accent quoted symbols in proc definition (#10399)alaviss2019-01-213-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compiler/parser: preserve lineinfo for accent quoted symbols Previously the lineinfo for symbol $$$ in this example is: proc `$$$` ^ After this commit: proc `$$$` ^ * compiler/semstmts: correct lineinfo for accent quoted idents Previously nimsuggest would highlight this as: proc `$$$` ^~~ After this commit: proc `$$$` ^~~ * nimsuggest/tests: add a test for accent quoted proc Disabled by default
* | better docs for lists and deques (#10390)Miran2019-01-212-76/+755
| | | | | | | | | | | | * better docs: lists * better docs: deques
* | Fix error lexer error messages for to large numbers (#10394)Oscar Nihlgård2019-01-212-33/+44
| |
* | fix vccexe not using correct path for detecting vcvarsall (#10364)Neelesh Chandola2019-01-211-2/+2
| |
* | fix json bug `[]=` misplaced (#10397)Timothee Cour2019-01-211-5/+5
| |