produce more helpful error messages when overloading resolution fails

This commit is contained in:
Andreas Rumpf 2018-11-03 15:56:13 +01:00
commit c739b9192f
4 changed files with 18 additions and 8 deletions

View file

@ -739,6 +739,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
of "hint": conf.globalOptions = conf.globalOptions + {optStyleHint}
of "error": conf.globalOptions = conf.globalOptions + {optStyleError}
else: localError(conf, info, errOffHintsError % arg)
of "showallmismatches":
processOnOffSwitchG(conf, {optShowAllMismatches}, arg, pass, info)
of "cppcompiletonamespace":
if arg.len > 0:
conf.cppCustomNamespace = arg