diff options
author | Adam Strzelecki <ono@java.pl> | 2015-06-06 11:07:23 +0200 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-07-03 12:37:42 +0200 |
commit | 14e6ff678053c98a156d47f431c1f6c3c2cb1400 (patch) | |
tree | c3b6c05848bbc8efb5013bbea26742641eacfc5f /compiler/passaux.nim | |
parent | e43daf3d240207bab19c3014a8788717868d5897 (diff) | |
download | Nim-14e6ff678053c98a156d47f431c1f6c3c2cb1400.tar.gz |
Introduce NotesVerbosity defining verbosity levels
This solves two issues: 1. Some notes were enabled explicitly for some verbosity levels, so --hintName:on has no effect if verbosity level was too low. 2. Verbosity level for notes is not longer scattered across the source code, instead if now lives in msgs.nim NotesVerbosity array 3. Individual note settings have stronger effect than verbosity setting, so --hintName:off will disable hint regardless of high verbosity setting, and vice-versa --hintName:on will enable hint even on low verbosity setting.
Diffstat (limited to 'compiler/passaux.nim')
-rw-r--r-- | compiler/passaux.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/passaux.nim b/compiler/passaux.nim index f754c80e5..c3bafe7df 100644 --- a/compiler/passaux.nim +++ b/compiler/passaux.nim @@ -15,7 +15,7 @@ import proc verboseOpen(s: PSym): PPassContext = #MessageOut('compiling ' + s.name.s); result = nil # we don't need a context - if gVerbosity > 0: rawMessage(hintProcessing, s.name.s) + rawMessage(hintProcessing, s.name.s) proc verboseProcess(context: PPassContext, n: PNode): PNode = result = n |