summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* [error messages, stacktraces] fix #8794 #9270 #9767 #9768 (#9766)Timothee Cour2019-01-086-31/+58
| | | | | | | | | | | | | | | | | | | * fixes #8794 : `Error: undeclared field: 'foo'` should show type (+ where type is defined) (hard to guess in generic code) * fixes #9270: `--listFullPaths` not honored by `declared in foo.nim` messages * fixes #9767: VM stacktrace doesn't honor --excessiveStackTrace:on * fixes #9768: VM stacktrace misses column info, can lead to ambiguous or harder to read stacktraces * refactors some col+1 code to col + ColOffset (self documents code) * make getProcHeader show declared info location also for types and all routine kinds (including macros,templates) instead of just (rather arbitrarily) for iterator,proc,func,method * --listFullPaths now is honored in more places * fix typo system/except.nim => lib/system/excpt.nim * remove substr(foo, 0) hack in compiler/vm.nim which seems old and not applicable anymore
* {.deprecated: msg.} now works for vars and lets (#10234)Neelesh Chandola2019-01-082-3/+7
|
* Don't use deprecated pragma syntax (#10187)Clyybber2019-01-081-1/+1
| | | | | | * Don't use deprecated pragma syntax * Remove pure pragma, since it's a noop now
* Fix for sizeof bitsize combination (#10227)Arne Döring2019-01-071-3/+8
| | | | | | | | * fix #10082 * added test
* Show error when trying to export individual enum field (#10109)Neelesh Chandola2019-01-071-1/+3
|
* add custom pragma support for var and let symbols (#9582)jcosborn2019-01-075-9/+34
| | | | | | * 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
* Fix #10073 (#10218)zah2019-01-071-1/+8
|
* remove deprecated modules (#10215)Miran2019-01-071-28/+0
| | | | | | | | | | | | | | | | | | * removed from `compiler`: * lists (deprecated 2 years ago) * removed from `lib` (all deprecated 3 years ago): * ssl * matchers * httpserver * removed from `lib/deprecated`: * unsigned * actors (and three accompanying tests) * parseurl * moved to `lib/deprecated`: * securehash (the reason for not directly removing - it was deprecated (only) one year ago)
* Fix defer not not-working at top level (#10191)Neelesh Chandola2019-01-072-2/+2
|
* expandFilename on windows is now consistent with other platforms (#10154)Neelesh Chandola2019-01-041-10/+1
|
* fixes #10188Araq2019-01-041-0/+1
|
* runnableExamples: compile and test them as a single file; fixes #9300Araq2019-01-041-2/+10
|
* exportc is now not allowed for type aliases (#9979)Neelesh Chandola2019-01-021-0/+2
|
* [cleanup] remove dead code compiler.options.mergeConfigs (#10165)Timothee Cour2019-01-021-78/+0
|
* Show field not initialized warning only when `notnil` used (#10155)Neelesh Chandola2019-01-011-1/+1
|
* Deprecate gc v2 (#10151)Neelesh Chandola2019-01-0111-20/+20
| | | | | | * Deprecate gc v2 * warnDeprecated now has custom messages
* fixes #10148 (#10149)cooldome2018-12-311-13/+18
| | | | | * fixes #10148 * fix a typo
* fix off by 1 error in `col` shown by toFileLineCol (#10138)Timothee Cour2018-12-311-1/+1
| | | | | * fix off by 1 error in `col` shown by toFileLineCol * fix test failures
* Check there are no side effects before optimizing away compile time ↵deech2018-12-312-8/+14
| | | | expressions. (#9934)
* Before showing deprecated warning, check whether enum field was marked ↵Neelesh Chandola2018-12-301-2/+2
| | | | deprecated or the whole enum type (#10135)
* Dead code elimination for entire modules and their init procs if empty (#10032)cooldome2018-12-303-92/+166
| | | | | | * fixes #9798 * Change order of write modules * Move datInit calls ahead of initStackBottom
* Show deprecation warning for fields of a deprecated enum (#10112)Neelesh Chandola2018-12-301-3/+8
| | | | | | * Show deprecation warning for fields of a deprecated enum * Add test
* Deprecated pragma is now supported on enum fields (#10113)Neelesh Chandola2018-12-303-12/+31
| | | | | | * {.deprecated.} pragma is now supported for enum fields * Add tests * Simplify code
* fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 ↵Timothee Cour2018-12-301-2/+3
| | | | | | | (#10131) * fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 * add test
* Support undefined in isNil (#9960)Alexander Ivanov2018-12-301-3/+4
|
* fixes #10082Andreas Rumpf2018-12-301-25/+11
|
* {.push raises: [].} is now ignored for vars/lets/consts (#10026)Neelesh Chandola2018-12-301-6/+13
|
* nim dump: add nimcache entry (#10122)Timothee Cour2018-12-301-0/+1
|
* `nim c` now allows: when defined(c) (#10130)Timothee Cour2018-12-301-0/+1
|
* revives: Move typetraits.`$` to system. Fixes #5827 (#10071)Timothee Cour2018-12-301-1/+1
| | | | | | * Move typetraits.`$` to system. Fixes #5827. * revive PR; adjust code to make sure everything works and add tests * fix tests/concepts/tstackconcept.nim * address comments
* fixes #10101 (#10103)Timothee Cour2018-12-271-1/+1
|
* Pragma syntax is now consistent (#9993)Neelesh Chandola2018-12-271-3/+34
| | | | | | | | | | * Give deprecation warning when type pragmas do not follow the type name * pragma before generic parameter list in type definition is now deprecated * Update changelog * Fix bug where deprecated warning was being shown even though no generic param list was present * Fix bug * Use errGenerated * Best attempt at writing the grammar
* Fix const tuple unpacking not working for variables > 2 (#10099)Neelesh Chandola2018-12-271-1/+1
|
* fixes nim-lang/nimsuggest#76 (#10093)alaviss2018-12-251-1/+11
| | | | | | | | * nimsuggest: prevent out-of-bound access * fixes nim-lang/nimsuggest#76 * undo tester changes
* fixes #10024Araq2018-12-221-1/+1
|
* fixes #10033 [backport]Araq2018-12-221-2/+2
|
* C++ tests: make DLL test greenAraq2018-12-211-1/+7
|
* C++: make async tests green on WindowsAraq2018-12-211-5/+5
|
* fix #9933 (#10067)Timothee Cour2018-12-211-0/+2
|
* fixes #10058 [backport]Araq2018-12-211-2/+3
|
* use anon structs and unions for a much better debug experience (#10055)Andreas Rumpf2018-12-201-16/+9
|
* Make copies for params which are captured in closures. Fixes #7048 (#10050)rec2018-12-201-1/+19
| | | | | * Copy params which are captured in closures. Fixes #7048 * Forgot to emit a newline; minor adjustments to the test
* make nimrtl.dll compile for the C++ targetAraq2018-12-191-1/+1
|
* proc does not take untyped/typed as argument (#9981)Neelesh Chandola2018-12-191-0/+5
| | | | | | * proc does not take untyped/typed as argument * Add TODO
* much simpler implementation of constant tuple declarationsAndreas Rumpf2018-12-193-51/+30
|
* Const tuple unpacking (#9964)Neelesh Chandola2018-12-193-29/+74
| | | | | | | | | | * tuple unpacking is now supported for consts * Move nkConstTuple to the end of TNodeKind * Add nnkConstTuple in macros.nim * Fix Formatting
* Merge pull request #9959 from nc-x/better-error-messageAndreas Rumpf2018-12-191-2/+2
|\ | | | | Better error messages in enums which don't have ordinal types
| * Merge remote-tracking branch 'upstream/devel' into better-error-messageNeelesh Chandola2018-12-146-165/+33
| |\
| * | Better error messages in enums which don't have ordinal typesNeelesh Chandola2018-12-131-2/+2
| | |
* | | Fixes #3060 and adds error checking for invalid else branches in object ↵Andreas Rumpf2018-12-192-17/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variants (#9957) * Fix semRecordCase * Fix ftpclient.nim * Check for ordinal type * Check tyRange for exhaustiveness