diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-26 12:49:44 -0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-02-27 13:22:18 +0100 |
commit | 1056f9ecff60f624522f24e508d0976994bcef80 (patch) | |
tree | adc7f492f880d575a29457bf27d5824d253210b4 /compiler/pragmas.nim | |
parent | c1cbf94e2d41911fe11ea98e86000f9a851fc01a (diff) | |
download | Nim-1056f9ecff60f624522f24e508d0976994bcef80.tar.gz |
properly handle note override logic/verbosity/config/cmdline using modifiedyNotes, cmdlineNotes
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r-- | compiler/pragmas.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 029128086..559c1c064 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -328,6 +328,7 @@ proc processNote(c: PContext, n: PNode) = n[1] = x if x.kind == nkIntLit and x.intVal != 0: incl(c.config.notes, nk) else: excl(c.config.notes, nk) + # checkme: honor cmdlineNotes with: c.setNote(nk, x.kind == nkIntLit and x.intVal != 0) else: invalidPragma(c, n) |