linter: refactorings
This commit is contained in:
parent
ff4a9a226f
commit
18182e4bfd
3 changed files with 40 additions and 55 deletions
|
|
@ -778,7 +778,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
|
|||
let k = whichKeyword(ident)
|
||||
if k in validPragmas:
|
||||
if {optStyleHint, optStyleError} * c.config.globalOptions != {}:
|
||||
checkPragmaUse(c.config, key.info, ident.s)
|
||||
checkPragmaUse(c.config, key.info, k, ident.s)
|
||||
case k
|
||||
of wExportc:
|
||||
makeExternExport(c, sym, getOptionalStr(c, it, "$1"), it.info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue