styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
This commit is contained in:
parent
96523cdd3e
commit
c94647aeca
90 changed files with 680 additions and 652 deletions
|
|
@ -43,16 +43,16 @@ type
|
|||
wImportCpp, wImportObjC,
|
||||
wImportCompilerProc,
|
||||
wImportc, wExportc, wExportNims, wIncompleteStruct, wRequiresInit,
|
||||
wAlign, wNodecl, wPure, wSideeffect, wHeader,
|
||||
wAlign, wNodecl, wPure, wSideEffect, wHeader,
|
||||
wNoSideEffect, wGcSafe, wNoreturn, wMerge, wLib, wDynlib,
|
||||
wCompilerproc, wCore, wProcVar, wBase, wUsed,
|
||||
wCompilerProc, wCore, wProcVar, wBase, wUsed,
|
||||
wFatal, wError, wWarning, wHint, wLine, wPush, wPop, wDefine, wUndef,
|
||||
wLinedir, wStacktrace, wLinetrace, wLink, wCompile,
|
||||
wLineDir, wStackTrace, wLineTrace, wLink, wCompile,
|
||||
wLinksys, wDeprecated, wVarargs, wCallconv, wBreakpoint, wDebugger,
|
||||
wNimcall, wStdcall, wCdecl, wSafecall, wSyscall, wInline, wNoInline,
|
||||
wFastcall, wClosure, wNoconv, wOn, wOff, wChecks, wRangechecks,
|
||||
wBoundchecks, wOverflowchecks, wNilchecks,
|
||||
wFloatchecks, wNanChecks, wInfChecks, wMoveChecks,
|
||||
wFastcall, wClosure, wNoconv, wOn, wOff, wChecks, wRangeChecks,
|
||||
wBoundChecks, wOverflowChecks, wNilChecks,
|
||||
wFloatChecks, wNanChecks, wInfChecks, wStyleChecks,
|
||||
wNonReloadable, wExecuteOnReload,
|
||||
wAssertions, wPatterns, wTrMacros, wWarnings,
|
||||
wHints, wOptimization, wRaises, wWrites, wReads, wSize, wEffects, wTags,
|
||||
|
|
@ -142,7 +142,7 @@ const
|
|||
"cdecl", "safecall", "syscall", "inline", "noinline", "fastcall", "closure",
|
||||
"noconv", "on", "off", "checks", "rangechecks", "boundchecks",
|
||||
"overflowchecks", "nilchecks",
|
||||
"floatchecks", "nanchecks", "infchecks", "movechecks",
|
||||
"floatchecks", "nanchecks", "infchecks", "stylechecks",
|
||||
"nonreloadable", "executeonreload",
|
||||
|
||||
"assertions", "patterns", "trmacros", "warnings", "hints",
|
||||
|
|
@ -192,7 +192,6 @@ proc canonPragmaSpelling*(w: TSpecialWord): string =
|
|||
of wIncompleteStruct: "incompleteStruct"
|
||||
of wRequiresInit: "requiresInit"
|
||||
of wSideEffect: "sideEffect"
|
||||
of wCompilerProc: "compilerProc"
|
||||
of wLineDir: "lineDir"
|
||||
of wStackTrace: "stackTrace"
|
||||
of wLineTrace: "lineTrace"
|
||||
|
|
@ -203,12 +202,11 @@ proc canonPragmaSpelling*(w: TSpecialWord): string =
|
|||
of wFloatChecks: "floatChecks"
|
||||
of wNanChecks: "nanChecks"
|
||||
of wInfChecks: "infChecks"
|
||||
of wMoveChecks: "moveChecks"
|
||||
of wStyleChecks: "styleChecks"
|
||||
of wNonReloadable: "nonReloadable"
|
||||
of wExecuteOnReload: "executeOnReload"
|
||||
of wDeadCodeElimUnused: "deadCodeElim"
|
||||
of wCompileTime: "compileTime"
|
||||
of wNoInit: "noInit"
|
||||
of wFieldChecks: "fieldChecks"
|
||||
of wLinearScanEnd: "linearScanEnd"
|
||||
of wComputedGoto: "computedGoto"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue