Fixed #46 — added missing option -wi

This commit is contained in:
Alexey Prokhin
2012-01-10 21:36:19 +04:00
parent 04ef3ee901
commit 875ebcf757
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ struct Param
bool useSwitchError; // check for switches without a default
bool useUnitTests; // generate unittest code
bool useInline; // inline expand functions
bool warnings; // enable warnings
ubyte warnings; // enable warnings
ubyte Dversion; // D version number
char enforcePropertySyntax;
+8 -3
View File
@@ -57,10 +57,15 @@ static cl::opt<bool, true> verbose_cg("v-cg",
cl::ZeroOrMore,
cl::location(global.params.verbose_cg));
static cl::opt<bool, true> warnings("w",
cl::desc("Enable warnings"),
static cl::opt<ubyte, true> warnings(
cl::desc("Warnings:"),
cl::ZeroOrMore,
cl::location(global.params.warnings));
cl::values(
clEnumValN(1, "w", "Enable warnings"),
clEnumValN(2, "wi", "Enable informational warnings"),
clEnumValEnd),
cl::location(global.params.warnings),
cl::init(0));
static cl::opt<ubyte, true> debugInfo(
cl::desc("Generating debug information:"),