diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-06-13 01:44:19 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-06-13 01:44:19 +0200 |
commit | 5348fef00326aabbb596b2ee7d0925fe10bbf7c6 (patch) | |
tree | 5476af33306aa2d20b1a009e63664d11b6cea9ca /compiler/commands.nim | |
parent | f555338ce8b4053bec48ee2ba8299a757db1ee67 (diff) | |
download | Nim-5348fef00326aabbb596b2ee7d0925fe10bbf7c6.tar.gz |
implements a --nep1:on switch to make the compiler enforce the naming conventions outlined in NEP-1
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index cd9ebbe7d..330504a76 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -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 |