--hint:processing (+friends) is now supported and means --hint:processing:on, like all other bool flags (#14271)

This commit is contained in:
Timothee Cour 2020-05-08 09:54:16 -07:00 • committed by GitHub
commit 411be506a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 6 deletions

View file

@ -1,5 +1,5 @@
discard """
cmd: "nim default $file"
cmd: "nim default --hint:cc:off --hint:cc $file"
output: '''hello world! 0.5'''
nimout: '''[NimScript] exec: gcc -v'''
"""

View file

@ -7,7 +7,26 @@ exec "gcc -v"
--path: "../friends"
warning("uninit", off)
hint("processing", off)
block: # supported syntaxes for hint,warning,switch
--hint:processing
hint("processing", on)
hint("processing", off)
switch("hint", "processing")
switch("hint", "processing:on")
switch("hint", "processing:off")
switch("hint", "[processing]")
switch("hint", "[processing]:on")
switch("hint", "[processing]:off") # leave it off
--warning:UnusedImport
switch("warning", "UnusedImport:off")
switch("warning", "UnusedImport:on")
switch("warning", "[UnusedImport]:off")
switch("warning", "[UnusedImport]:on")
switch("warning", "[UnusedImport]")
switch("warning", "UnusedImport") # leave it on
#--verbosity:2
patchFile("stdlib", "math", "mymath")