allRoutinePragmas = {wMagic..wThread, wEffectsOf, wConstructor, wDelegator,
wImportCpp, wImportObjC..wExportNims, wNodecl,
wSideEffect..wNosinks, wDynlib..wUsed, wError,
wStackTrace..wLineTrace, wDeprecated..wVarargs,
wNimcall..wNoconv, wNonReloadable, wRaises,
wTags..wEnsures, wNoDestroy, wCompileTime..wNoInit,
wBorrow..wDiscardable, wGensym..wInject, wAsmNoStackFrame,
wCodegenDecl, wLocks, wLiftLocals..wSystemRaisesDefect,
wQuirky..wExtern, wVirtual, wMember}constPragmas = {wMagic, wIntDefine..wBoolDefine, wImportCpp, wImportObjC,
wImportc..wExportNims, wNodecl, wHeader, wCompilerProc..wCore,
wUsed, wError, wDefine, wDeprecated, wGensym..wInject, wExtern}converterPragmas = {wMagic..wThread, wEffectsOf, wConstructor, wDelegator,
wImportCpp, wImportObjC..wExportNims, wNodecl,
wSideEffect..wNosinks, wDynlib..wProcVar, wUsed, wError,
wStackTrace..wLineTrace, wDeprecated..wVarargs,
wNimcall..wNoconv, wNonReloadable, wRaises, wTags..wEnsures,
wNoDestroy, wCompileTime..wNoInit, wBorrow..wDiscardable,
wGensym..wInject, wAsmNoStackFrame, wCodegenDecl, wLocks,
wLiftLocals..wSystemRaisesDefect, wQuirky..wExtern,
wVirtual, wMember}fieldPragmas = {wCursor..wNoalias, wImportCpp, wImportObjC,
wImportc..wExportCpp, wRequiresInit..wAlign, wUsed, wError,
wDeprecated, wNoInit, wGuard, wExtern, wBitsize}iteratorPragmas = {wMagic, wEffectsOf, wImportCpp, wImportObjC,
wImportc..wExportNims, wNodecl, wSideEffect,
wNoSideEffect..wGcSafe, wUsed, wError, wDeprecated,
wNimcall..wNoconv, wRaises, wTags..wEnsures,
wBorrow..wDiscardable, wGensym..wInject, wLocks, wExtern}lambdaPragmas = {wNimcall..wNoconv, wNoSideEffect, wSideEffect, wNoreturn,
wNosinks, wDynlib, wHeader, wThread, wAsmNoStackFrame, wRaises,
wLocks, wTags, wForbids, wRequires, wEnsures, wEffectsOf,
wGcSafe, wCodegenDecl, wNoInit, wCompileTime}letPragmas = {wMagic, wCursor..wNoalias, wImportCpp, wImportObjC,
wImportc..wExportNims, wAlign..wNodecl, wHeader, wDynlib..wCore,
wUsed, wError, wDeprecated, wCompileTime..wNoInit,
wGensym..wInject, wThreadVar, wGlobal..wCodegenDecl, wGuard,
wLiftLocals, wExtern..wRegister, wVolatile}macroPragmas = {wMagic, wDelegator, wImportCpp, wImportObjC,
wImportc..wExportNims, wNodecl, wNoSideEffect,
wCompilerProc..wCore, wUsed, wError, wDeprecated,
wNimcall..wNoconv, wNonReloadable, wDiscardable,
wGensym..wInject, wExtern}methodPragmas = {wMagic..wThread, wEffectsOf, wConstructor, wDelegator,
wImportObjC..wExportNims, wNodecl, wSideEffect..wNosinks,
wDynlib..wUsed, wError, wStackTrace..wLineTrace,
wDeprecated..wVarargs, wNimcall..wNoconv, wNonReloadable,
wRaises, wTags..wEnsures, wNoDestroy, wCompileTime..wNoInit,
wBorrow..wDiscardable, wGensym..wInject, wAsmNoStackFrame,
wCodegenDecl, wLocks, wLiftLocals..wSystemRaisesDefect,
wQuirky..wExtern, wVirtual, wMember}paramPragmas = {wNoalias, wInject, wGensym, wByRef, wByCopy, wCodegenDecl,
wExportc, wExportCpp}procPragmas = {wMagic..wThread, wEffectsOf, wConstructor, wDelegator,
wImportCpp, wImportObjC..wExportNims, wNodecl,
wSideEffect..wNosinks, wDynlib..wProcVar, wUsed, wError,
wStackTrace..wLineTrace, wDeprecated..wVarargs,
wNimcall..wNoconv, wNonReloadable, wRaises, wTags..wEnsures,
wNoDestroy, wCompileTime..wNoInit, wBorrow..wDiscardable,
wGensym..wInject, wAsmNoStackFrame, wCodegenDecl, wLocks,
wLiftLocals..wSystemRaisesDefect, wQuirky..wExtern, wVirtual,
wMember}procTypePragmas = {wNimcall..wNoconv, wVarargs, wNoSideEffect, wThread, wRaises,
wEffectsOf, wLocks, wTags, wForbids, wGcSafe, wRequires,
wEnsures}stmtPragmas = {wHint, wWarning, wError, wFatal, wDefine, wUndef, wCompile,
wLink, wLinksys, wPure, wPush, wPop, wPassl, wPassc, wLocalPassc,
wDeadCodeElimUnused, wDeprecated, wPragma, wEmit, wUnroll,
wLinearScanEnd, wPatterns, wTrMacros, wEffects, wNoForward,
wReorder, wComputedGoto, wExperimental, wDoctype, wThis, wUsed,
wInvariant, wAssume, wAssert}stmtPragmasTopLevel = {wChecks, wObjChecks, wFieldChecks, wRangeChecks,
wBoundChecks, wOverflowChecks, wNilChecks,
wStaticBoundchecks, wStyleChecks, wAssertions, wWarnings,
wHints, wLineDir, wStackTrace, wLineTrace, wOptimization,
wFloatChecks, wInfChecks, wNanChecks}templatePragmas = {wDeprecated, wError, wGensym, wInject, wDirty, wDelegator,
wExportNims, wUsed, wPragma, wRedefine, wCallsite}typePragmas = {wMagic, wFinal, wImportCpp..wImportObjC, wImportc..wRequiresInit,
wNodecl..wPure, wHeader, wGcSafe, wCompilerProc..wCore, wUsed,
wError, wDeprecated, wSize, wPackage, wNoInit, wBorrow,
wAcyclic..wShallow, wGensym..wInject, wInheritable,
wCodegenDecl..wUnchecked, wPartial..wExplain, wExtern,
wUnion..wPacked, wByCopy..wByRef, wSendable}proc implicitPragmas(c: PContext; sym: PSym; info: TLineInfo;
validPragmas: TSpecialWords) {....raises: [Exception,
ValueError, KeyError, OSError, IOError, ERecoverableError, EOFError], tags: [
RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect,
WriteDirEffect], forbids: [].}proc pragma(c: PContext; sym: PSym; n: PNode; validPragmas: TSpecialWords;
isStatement: bool = false) {....raises: [Exception, ValueError,
KeyError, OSError, IOError, ERecoverableError, EOFError], tags: [RootEffect,
ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, WriteDirEffect],
forbids: [].}proc pragmaCallable(c: PContext; sym: PSym; n: PNode;
validPragmas: TSpecialWords; isStatement: bool = false) {....raises: [
Exception, ValueError, KeyError, OSError, IOError, ERecoverableError,
EOFError], tags: [RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect,
ReadEnvEffect, WriteDirEffect], forbids: [].}
© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/pragmas.html