Removed explicit imports in compiler/nimfix/*.nim and added cfg path modification

This commit is contained in:
Joey Payne
2015-04-24 11:25:00 -06:00
parent 6c6a52ff3a
commit 01e9c7d450
4 changed files with 6 additions and 10 deletions

View File

@@ -10,9 +10,8 @@
## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
import strutils, os, parseopt
import compiler/options, compiler/commands, compiler/modules, compiler/sem,
compiler/passes, compiler/passaux, pretty, compiler/msgs,
compiler/nimconf, compiler/extccomp, compiler/condsyms, compiler/lists
import options, commands, modules, sem, passes, passaux, pretty, msgs, nimconf,
extccomp, condsyms, lists
const Usage = """
Nimfix - Tool to patch Nim code

View File

@@ -5,7 +5,7 @@ hint[XDeclaredButNotUsed]:off
path:"$projectPath/../.."
path:"$lib/packages/docutils"
path:"$nim/compiler"
path:"../compiler"
define:useStdoutAsStdmsg
symbol:nimfix

View File

@@ -11,10 +11,8 @@
## to convert Nim code into a consistent style.
import
strutils, os, intsets, strtabs, ropes,
compiler/options, compiler/ast, compiler/astalgo,
compiler/msgs, compiler/idents, compiler/semdata,
prettybase
strutils, os, options, ast, astalgo, msgs, ropes, idents,
intsets, strtabs, semdata, prettybase
type
StyleCheck* {.pure.} = enum None, Warn, Auto

View File

@@ -7,8 +7,7 @@
# distribution, for details about the copyright.
#
import strutils, lexbase, streams, compiler/ast, compiler/msgs,
compiler/idents
import ast, msgs, strutils, idents, lexbase, streams
from os import splitFile
type