Commit graph

164 commits

Author SHA1 Message Date
alaviss
74a7b09412 suggest: quote operators and keywords on suggestion (#10460) 2019-01-28 09:29:49 +01:00
Neelesh Chandola
fb26b95f81 {.deprecated: msg.} now works for vars and lets (#10234) 2019-01-08 19:44:47 +01:00
Neelesh Chandola
9faad7591e Deprecate gc v2 (#10151)
* Deprecate gc v2

* warnDeprecated now has custom messages
2019-01-01 13:50:48 +01:00
Neelesh Chandola
bcbe317d17 Before showing deprecated warning, check whether enum field was marked deprecated or the whole enum type (#10135) 2018-12-30 18:34:41 +01:00
Neelesh Chandola
cbbdcb2669 Show deprecation warning for fields of a deprecated enum (#10112)
* Show deprecation warning for fields of a deprecated enum

* Add test
2018-12-30 09:45:39 +01:00
Andreas Rumpf
cb4d810659 make Nim take roughly 100MB less RAM for bootstrapping via a new compiler switch -d:leanCompiler; useful for the Raberry PI 2018-11-07 18:36:52 +01:00
Araq
548fc778c9 .error for routines now can also have a custom error message; improve error message for 'nil' strings 2018-09-25 00:28:39 +02:00
Andreas Rumpf
86556ebfdb compiler refactoring; use typesafe path handing; docgen: render symbols between modules 2018-09-07 19:21:16 +02:00
Andreas Rumpf
ae0255ea67 make nimsuggest compile again 2018-08-23 17:36:24 +02:00
Araq
30597e643f fixes merge conflict 2018-08-23 11:30:55 +02:00
Araq
64517445ea even more strict isNil handling for strings/seqs in order to detect bugs 2018-08-22 12:35:46 +02:00
LemonBoy
cf20c4460c More robust handling of deprecated pragmas (#8696)
Prevent `deprecated` annotations to "slip" up to the parent module and
warn about unsupported annotations.

Accidentally fixes #7867
2018-08-21 15:07:44 +02:00
Andreas Rumpf
826c1e2d78 incremental compilation: implemented basic replay logic 2018-06-02 09:41:27 +02:00
Andreas Rumpf
a5701d6b71 ensure compiler API doesn't import the RST engine 2018-05-29 08:22:09 +02:00
Andreas Rumpf
669a564492 remove more global variables in the Nim compiler 2018-05-27 11:10:56 +02:00
Andreas Rumpf
bf6c2c5ccf preparations of making compiler/msgs.nim free of global variables 2018-05-17 15:21:22 +02:00
Araq
2a7fc84c86 remove ast.emptyNode global; cleanup configuration.nim 2018-05-16 03:06:07 +02:00
Andreas Rumpf
328e7a1005 options.nim: no global variables anymore 2018-05-13 17:52:21 +02:00
Andreas Rumpf
e4c088721a make nimsuggest compile again 2018-05-13 09:53:00 +02:00
Andreas Rumpf
84bc04ba32 sigmatch compiles again 2018-05-11 18:04:11 +02:00
Andreas Rumpf
33b69f0ed0 refactoring: make FileIndex a distinct type; make line information an uint16; fixes #7654 2018-04-21 08:13:37 +02:00
Andreas Rumpf
212457f5e0 the .deprecated pragma for procs now supports a user-definable deprecation message 2018-02-02 12:53:38 +01:00
Andreas Rumpf
e4081a7201 preparations for language extensions: 'sink' and 'lent' types 2018-01-07 23:09:26 +01:00
Andreas Rumpf
b414806e66 nimsuggest: suggest types in a type section 2017-03-14 11:21:35 +01:00
Andreas Rumpf
2430fc7d82 nimsuggest: special rule for 'of' completion in case statements 2017-03-10 14:42:11 +01:00
Andreas Rumpf
68181e6da2 nimsuggest: maxresults limit; fixed local symbol usages priorizations 2017-03-10 11:29:16 +01:00
Araq
57ea01309e nimsuggest: more things work 2017-03-09 17:09:39 +01:00
Araq
4755795416 nimsuggest: more precise cursor tracking 2017-03-09 14:58:14 +01:00
Andreas Rumpf
da821a22d9 nimsuggest: revert cpFuzzy bailouts 2017-03-09 11:30:36 +01:00
Araq
4d0d6c47bd bugfix: consider type contexts properly 2017-03-08 15:59:34 +01:00
Andreas Rumpf
91a4b448fd nimsuggest: chk checks the full project lazily; much better suggestions orderings 2017-03-08 00:38:48 +01:00
Andreas Rumpf
538c6c9898 make some tests green 2017-03-07 12:34:45 +01:00
Andreas Rumpf
9ed322323e nimsuggest: better ordering of symbols (part 1) 2017-03-07 10:58:43 +01:00
Andreas Rumpf
3b0430bec6 nimsuggest: minor doc addition 2017-03-03 12:59:32 +01:00
Andreas Rumpf
a9c1afd5fd nimsuggest: structured error reporting; EPC mode still fails 2017-03-03 02:13:16 +01:00
Andreas Rumpf
3e7b04683c make tests green again 2017-03-02 12:23:35 +01:00
Araq
ee13c8014b nimsuggest: track type contexts 2017-03-01 09:57:51 +01:00
Araq
3d46600a90 nimsuggest supports prefix matching (first version) 2017-02-28 09:03:40 +01:00
Andreas Rumpf
46efaf294b big compiler refactoring; avoid globals for multi method dispatcher generation 2017-02-22 16:27:52 +01:00
Andreas Rumpf
9f142e199d nimsuggest uses multithreading and full project recompiles 2017-02-13 13:37:50 +01:00
Andreas Rumpf
733ed91d33 disable transitive closure computations; only semcheck procs that have the cursor 2017-02-09 17:40:24 +01:00
Andreas Rumpf
76a28d8b83 nimsuggest: bugfix: also output documentation comments 2017-02-03 17:36:39 +01:00
Andreas Rumpf
0b93db5a7c fixes nimsuggest issue #44 2017-01-26 23:23:40 +01:00
Araq
237252f90c Merge branch 'devel' into sighashes 2016-12-19 11:35:45 +01:00
Andreas Rumpf
7bbf74e2a3 fixes nimsuggest bug #43 2016-12-18 14:07:05 +01:00
Araq
e6c5622aa7 removed tyArrayConstr completely from the compiler; introduced tyAlias instead in preparation for further bugfixes 2016-11-14 23:18:30 +01:00
Araq
9e6fb3f696 new dependency tracking for nimsuggest 2016-11-05 01:19:23 +01:00
Araq
08c94ef6b5 nimsuggest is now part of Nim 2016-10-31 20:12:54 +01:00
Andreas Rumpf
dfa0699e73 C++ backend: use .noInit pragma for non-public default constructors; refs #4687 2016-09-04 22:36:29 +02:00
Andreas Rumpf
3a13706d7d fixes #4673 2016-09-01 13:02:53 +02:00