Removed explicit imports in compiler/nimfix/*.nim and added cfg path modification
This commit is contained in:
parent
6c6a52ff3a
commit
01e9c7d450
4 changed files with 6 additions and 10 deletions
|
|
@ -10,9 +10,8 @@
|
||||||
## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
|
## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
|
||||||
|
|
||||||
import strutils, os, parseopt
|
import strutils, os, parseopt
|
||||||
import compiler/options, compiler/commands, compiler/modules, compiler/sem,
|
import options, commands, modules, sem, passes, passaux, pretty, msgs, nimconf,
|
||||||
compiler/passes, compiler/passaux, pretty, compiler/msgs,
|
extccomp, condsyms, lists
|
||||||
compiler/nimconf, compiler/extccomp, compiler/condsyms, compiler/lists
|
|
||||||
|
|
||||||
const Usage = """
|
const Usage = """
|
||||||
Nimfix - Tool to patch Nim code
|
Nimfix - Tool to patch Nim code
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ hint[XDeclaredButNotUsed]:off
|
||||||
path:"$projectPath/../.."
|
path:"$projectPath/../.."
|
||||||
|
|
||||||
path:"$lib/packages/docutils"
|
path:"$lib/packages/docutils"
|
||||||
path:"$nim/compiler"
|
path:"../compiler"
|
||||||
|
|
||||||
define:useStdoutAsStdmsg
|
define:useStdoutAsStdmsg
|
||||||
symbol:nimfix
|
symbol:nimfix
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,8 @@
|
||||||
## to convert Nim code into a consistent style.
|
## to convert Nim code into a consistent style.
|
||||||
|
|
||||||
import
|
import
|
||||||
strutils, os, intsets, strtabs, ropes,
|
strutils, os, options, ast, astalgo, msgs, ropes, idents,
|
||||||
compiler/options, compiler/ast, compiler/astalgo,
|
intsets, strtabs, semdata, prettybase
|
||||||
compiler/msgs, compiler/idents, compiler/semdata,
|
|
||||||
prettybase
|
|
||||||
|
|
||||||
type
|
type
|
||||||
StyleCheck* {.pure.} = enum None, Warn, Auto
|
StyleCheck* {.pure.} = enum None, Warn, Auto
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,7 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
import strutils, lexbase, streams, compiler/ast, compiler/msgs,
|
import ast, msgs, strutils, idents, lexbase, streams
|
||||||
compiler/idents
|
|
||||||
from os import splitFile
|
from os import splitFile
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue