implements a --nep1:on switch to make the compiler enforce the naming conventions outlined in NEP-1

This commit is contained in:
Andreas Rumpf 2018-06-13 01:44:19 +02:00
commit 5348fef003
13 changed files with 58 additions and 46 deletions

View file

@ -717,6 +717,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
doAssert(conf != nil)
incl(conf.features, destructor)
defineSymbol(conf.symbols, "nimNewRuntime")
of "nep1":
processOnOffSwitchG(conf, {optCheckNep1}, arg, pass, info)
of "cppcompiletonamespace":
expectNoArg(conf, switch, arg, pass, info)
incl conf.globalOptions, optUseNimNamespace