compiler/cmdlinehelper

  Source   Edit

Helpers for binaries that use compiler passes, e.g.: nim, nimsuggest, nimfix

Types

NimProg = ref object
  suggestMode*: bool
  supportsStdinFile*: bool
  processCmdLine*: proc (pass: TCmdLinePass; cmd: string; config: ConfigRef)
  Source   Edit

Procs

proc addCmdPrefix(result: var string; kind: CmdLineKind) {....raises: [], tags: [].}
  Source   Edit
proc initDefinesProg(self: NimProg; conf: ConfigRef; name: string) {....raises: [],
    tags: [].}
  Source   Edit
proc loadConfigsAndProcessCmdLine(self: NimProg; cache: IdentCache;
                                  conf: ConfigRef; graph: ModuleGraph): bool {....raises: [
    OSError, IOError, Exception, KeyError, ValueError, ERecoverableError,
    EOFError], tags: [ReadIOEffect, ReadDirEffect, ReadEnvEffect, RootEffect,
                      WriteIOEffect, WriteEnvEffect, WriteDirEffect].}
  Source   Edit
proc loadConfigsAndRunMainCommand(self: NimProg; cache: IdentCache;
                                  conf: ConfigRef; graph: ModuleGraph): bool {....raises: [
    OSError, IOError, Exception, KeyError, ValueError, ERecoverableError,
    EOFError], tags: [ReadIOEffect, ReadDirEffect, ReadEnvEffect, RootEffect,
                      WriteIOEffect, WriteEnvEffect, WriteDirEffect].}
Alias for loadConfigsAndProcessCmdLine, here for backwards compatibility   Source   Edit
proc prependCurDir(f: AbsoluteFile): AbsoluteFile {....raises: [], tags: [].}
  Source   Edit
proc processCmdLineAndProjectPath(self: NimProg; conf: ConfigRef) {.
    ...raises: [Exception, OSError],
    tags: [RootEffect, ReadEnvEffect, ReadIOEffect, ReadDirEffect].}
  Source   Edit