diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-26 01:26:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 10:26:47 +0100 |
commit | bd90199a2fd37568a5f5a6c7c394b160b229e90c (patch) | |
tree | 99c1b0ba5bdc017df101794483435e9f18dcfd7a /compiler/options.nim | |
parent | 94b0d6bb63e354c71bf072953d27c097eb7b38ca (diff) | |
download | Nim-bd90199a2fd37568a5f5a6c7c394b160b229e90c.tar.gz |
fix #8312 --hints:off and --warnings:off now honored everywhere (#13489)
Diffstat (limited to 'compiler/options.nim')
-rw-r--r-- | compiler/options.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index c39ffa792..7a7ab0bcd 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -287,6 +287,12 @@ type severity: Severity) {.closure, gcsafe.} cppCustomNamespace*: string +proc hasHint*(conf: ConfigRef, note: TNoteKind): bool = + optHints in conf.options and note in conf.notes + +proc hasWarn*(conf: ConfigRef, note: TNoteKind): bool = + optWarns in conf.options and note in conf.notes + proc hcrOn*(conf: ConfigRef): bool = return optHotCodeReloading in conf.globalOptions template depConfigFields*(fn) {.dirty.} = |