This commit is contained in:
Araq 2014-09-03 19:45:04 +02:00
commit 201a08e9a5
10 changed files with 249 additions and 55 deletions

View file

@ -14,14 +14,20 @@ import
strutils, os, options, ast, astalgo, msgs, ropes, idents, passes,
intsets, strtabs, semdata, prettybase
type
StyleCheck* {.pure.} = enum None, Confirm, Auto
var
gOverWrite* = true
gStyleCheck*: StyleCheck
gCheckExtern*: bool
type
TGen = object of TPassContext
module*: PSym
PGen = ref TGen
var
gCheckExtern: bool
proc overwriteFiles*() =
let overWrite = options.getConfigVar("pretty.overwrite").normalize != "off"
let doStrip = options.getConfigVar("pretty.strip").normalize == "on"