--hint:processing (+friends) is now supported and means --hint:processing:on, like all other bool flags (#14271)
This commit is contained in:
parent
ce16115e79
commit
411be506a3
5 changed files with 30 additions and 6 deletions
|
|
@ -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'''
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue