Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | properly handle note override logic/verbosity/config/cmdline using ↵ | Timothee Cour | 2020-02-27 | 1 | -4/+1 |
| | | | | modifiedyNotes, cmdlineNotes | ||||
* | remove isCmdLine; use passCmd1 | Timothee Cour | 2020-02-27 | 1 | -1/+1 |
| | |||||
* | correctly honor cmdline --hint:conf:on/off ; correctly show Conf hints in order | Timothee Cour | 2020-02-27 | 1 | -1/+4 |
| | |||||
* | fix #8312 --hints:off and --warnings:off now honored everywhere (#13489) | Timothee Cour | 2020-02-26 | 1 | -8/+6 |
| | |||||
* | make case-object transitions explicit, make unknownLineInfo a const, replace ↵ | Jasper Jenkins | 2020-01-17 | 1 | -5/+5 |
| | | | | a few magic numbers with consts (#13170) | ||||
* | [backport] always set `fileInfoIdx.isKnownFile` (#12773) | Jasper Jenkins | 2019-11-29 | 1 | -0/+1 |
| | |||||
* | Cosmetic compiler cleanup (#12718) | Clyybber | 2019-11-28 | 1 | -11/+10 |
| | | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls | ||||
* | revert changes | Andrii Riabushenko | 2019-07-25 | 1 | -16/+10 |
| | |||||
* | fixes #11826 | Andrii Riabushenko | 2019-07-25 | 1 | -10/+16 |
| | |||||
* | [refactoring] remove unused imports in the compiler and in some stdlib modules | Araq | 2019-07-18 | 1 | -1/+1 |
| | |||||
* | better run [feature] (#11709) | Andreas Rumpf | 2019-07-11 | 1 | -5/+11 |
| | | | | | | | * track the checksums of all involved Nim files for smarter 'nim c -r' recompiles * don't recompile unless necessary for 'nim c -r' [feature] * [feature] koch boot uses a two step process in order to free the RAM before the GCC/Clang invocations * fixes a serious regression | ||||
* | styleCheck: make the compiler and large parts of the stdlib compatible with ↵ | Araq | 2019-07-10 | 1 | -2/+2 |
| | | | | --styleCheck:error | ||||
* | nim styleChecker: implemented all the missing features (bugfix) | Araq | 2019-07-10 | 1 | -0/+7 |
| | |||||
* | msgs, ccgstmts: fixes #11572 (#11621) | alaviss | 2019-06-30 | 1 | -7/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | * [refactor] msgs: toFilename now return just the filename The C codegen uses just the file name for stacktrace when excessiveStackTrace is off (see quotedName), so there aren't any reason for other codegen to not do the same. The file name is now cached in TFileInfo.shortName, which was introduced for nimsuggest, and went unused after several refactoring of the compiler. A toProjPath() proc has been added for the previous behavior of toFilename(). * ccgstmt: use quotedFilename() for raiseExceptionEx This is the same proc used for stacktrace when --stacktrace:on Fixes #11572 * msgs: handle case where file name is not available | ||||
* | fixes #11606 | Araq | 2019-06-28 | 1 | -2/+8 |
| | |||||
* | [refactor] compiler/[msgs, reorder, semstmts]: use toMsgFilename where ↵ | alaviss | 2019-06-26 | 1 | -5/+6 |
| | | | | | | | | appropriate (#11595) * compiler/msgs: toMsgFilename now operates on FileIndex * compiler/reorder: use toMsgFilename for compiler messages * compiler/semstmts: respect listFullPaths for recursive deps error | ||||
* | compiler/[msgs, options]: confine --listFullPaths to compiler messages (#11583) | alaviss | 2019-06-26 | 1 | -16/+12 |
| | | | | | | | | | | | | | | | | | | | | | * compiler/[msgs, options]: make toFilename independent of listFullPaths toFilename is used mainly in codegen, as such it should not follow --listFullPaths * compiler/msgs: use toMsgFilename for toFileLineCol This proc is mainly used for compiler messages, so it should follow --listFullPaths * compiler/msgs: remove toFileLine unused proc * compiler/msgs: cleanup toMsgFilename Also improved path choosing logic, /home should now be preferred over ../home on *nix | ||||
* | fixes #11436 | Araq | 2019-06-19 | 1 | -1/+2 |
| | |||||
* | Replace countup(x, y-1) with x ..< y | Clyybber | 2019-05-07 | 1 | -1/+1 |
| | |||||
* | fixes a critical GC safety inference bug (#10615) | Andreas Rumpf | 2019-03-05 | 1 | -7/+8 |
| | | | | | | * fixes a critical GC safety inference bug * make nimsuggest compile again * make Nimble compile again | ||||
* | compiler/[msgs, suggest]: improve highlighter accuracy (#10496) | alaviss | 2019-02-07 | 1 | -1/+5 |
| | | | | | | | | | | Previously the compiler would generate suggestions based on the symbol identifier length, but that might not reflect the actual representation of it within the actual source code. This commit implements a simple source scanner for the suggest module to address the problem outlined above. Fixes nim-lang/nimsuggest#24 | ||||
* | fix #9556 (#10445) | Miran | 2019-01-24 | 1 | -1/+1 |
| | | | | | | | | | The old logic wasn't very useful because `relPath` is almost always shorter than `absPath`, e.g. `../../../../../` is shorter than `C:\Program Files`. This way allows the usage of a relative path for at most two levels deep, e.g. `../../relPath`, otherwise the absolute path is used. | ||||
* | Fixes #10263; [backport] | Ico Doornekamp | 2019-01-23 | 1 | -1/+1 |
| | |||||
* | [error messages, stacktraces] fix #8794 #9270 #9767 #9768 (#9766) | Timothee Cour | 2019-01-08 | 1 | -9/+15 |
| | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | fix off by 1 error in `col` shown by toFileLineCol (#10138) | Timothee Cour | 2018-12-31 | 1 | -1/+1 |
| | | | | | * fix off by 1 error in `col` shown by toFileLineCol * fix test failures | ||||
* | IC: further progress | Araq | 2018-11-22 | 1 | -1/+1 |
| | |||||
* | Fixes #9556 (#9604) [backport] | Neelesh Chandola | 2018-11-02 | 1 | -3/+6 |
| | |||||
* | compiler: show name of instantiating context in error traces (#6763) (#9207) | xzfc | 2018-10-11 | 1 | -11/+17 |
| | |||||
* | added a test for 'nim doc' | Andreas Rumpf | 2018-09-07 | 1 | -2/+2 |
| | |||||
* | compiler refactoring; use typesafe path handing; docgen: render symbols ↵ | Andreas Rumpf | 2018-09-07 | 1 | -27/+30 |
| | | | | between modules | ||||
* | fixes #5745 | Araq | 2018-09-03 | 1 | -3/+0 |
| | |||||
* | even more strict isNil handling for strings/seqs in order to detect bugs | Araq | 2018-08-22 | 1 | -1/+1 |
| | |||||
* | WIP: disallow 'nil' for strings and seqs | Andreas Rumpf | 2018-08-13 | 1 | -4/+4 |
| | |||||
* | make basic debugging possible | Arne Döring | 2018-06-26 | 1 | -2/+2 |
| | |||||
* | cleanup compiler/prettybase to not use redudant global variables | Andreas Rumpf | 2018-05-27 | 1 | -19/+18 |
| | |||||
* | remove more global variables in the Nim compiler | Andreas Rumpf | 2018-05-27 | 1 | -158/+81 |
| | |||||
* | make tests green again | Andreas Rumpf | 2018-05-18 | 1 | -0/+2 |
| | |||||
* | platform.nim doesn't use globals anymore; prepare msgs.nim for not using globals | Andreas Rumpf | 2018-05-18 | 1 | -1/+1 |
| | |||||
* | compiler/ropes.nim has no global error handler anymore | Andreas Rumpf | 2018-05-17 | 1 | -7/+0 |
| | |||||
* | preparations of making compiler/msgs.nim free of global variables | Andreas Rumpf | 2018-05-17 | 1 | -31/+24 |
| | |||||
* | make tests green on Unix | Andreas Rumpf | 2018-05-15 | 1 | -4/+0 |
| | |||||
* | options.nim: no global variables anymore | Andreas Rumpf | 2018-05-13 | 1 | -1/+1 |
| | |||||
* | move more globals into the config object | Andreas Rumpf | 2018-05-13 | 1 | -33/+32 |
| | |||||
* | move more global variables into ConfigRef | Andreas Rumpf | 2018-05-11 | 1 | -1/+1 |
| | |||||
* | avoid more global variables | Andreas Rumpf | 2018-05-11 | 1 | -6/+6 |
| | |||||
* | guards.nim does compile | Andreas Rumpf | 2018-05-11 | 1 | -2/+2 |
| | |||||
* | big refactoring: magicsys compiles again | Andreas Rumpf | 2018-05-10 | 1 | -2/+2 |
| | |||||
* | big refactoring: parser compiles again | Andreas Rumpf | 2018-05-10 | 1 | -586/+88 |
| | |||||
* | compiler/msgs.nim: minor code cleanup | Andreas Rumpf | 2018-05-05 | 1 | -105/+105 |
| | |||||
* | warn about inconsistent spacing around binary operators; fixes #7582 | Andreas Rumpf | 2018-05-05 | 1 | -2/+4 |
| |