summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-07-10 18:59:27 +0200
committerAraq <rumpf_a@web.de>2019-07-10 18:59:27 +0200
commit73cc029fec8ff52ace34cc94ccee0ff89e975862 (patch)
treecbb1b9529c7bbe1c90bc926b9ec686fcd52e60e6 /compiler
parentdc0bbba3faf9e9d76b34236d1e4a6b5df36bea66 (diff)
downloadNim-73cc029fec8ff52ace34cc94ccee0ff89e975862.tar.gz
fixes linter regressions
Diffstat (limited to 'compiler')
-rw-r--r--compiler/options.nim2
-rw-r--r--compiler/semstmts.nim1
-rw-r--r--compiler/semtypes.nim1
3 files changed, 3 insertions, 1 deletions
diff --git a/compiler/options.nim b/compiler/options.nim
index 1ff48840a..9688bdf73 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -590,7 +590,7 @@ proc rawFindFile2(conf: ConfigRef; f: RelativeFile): AbsoluteFile =
     result = it / f
     if fileExists(result):
       # bring to front
-      for j in countdown(i,1):
+      for j in countdown(i, 1):
         swap(conf.lazyPaths[j], conf.lazyPaths[j-1])
 
       return canonicalizePath(conf, result)
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index e26bcbed7..8d9e416ac 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -320,6 +320,7 @@ proc semIdentDef(c: PContext, n: PNode, kind: TSymKind): PSym =
     result = semIdentWithPragma(c, kind, n, {})
     if result.owner.kind == skModule:
       incl(result.flags, sfGlobal)
+  result.options = c.config.options
 
   proc getLineInfo(n: PNode): TLineInfo =
     case n.kind
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 632dc916c..9ff0b5c0c 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -720,6 +720,7 @@ proc semRecordNodeAux(c: PContext, n: PNode, check: var IntSet, pos: var int,
       suggestSym(c.config, n.sons[i].info, f, c.graph.usageSym)
       f.typ = typ
       f.position = pos
+      f.options = c.config.options
       if fieldOwner != nil and
          {sfImportc, sfExportc} * fieldOwner.flags != {} and
          not hasCaseFields and f.loc.r == nil: