Hide legacy cmdline options -dip<N>

This commit is contained in:
Martin Kinkelin 2019-02-21 23:39:59 +01:00
parent 88f571f89a
commit 0530f08e9a
2 changed files with 6 additions and 8 deletions

View file

@ -454,17 +454,18 @@ cl::opt<unsigned, true> nestedTemplateDepth(
cl::desc(
"Set maximum number of nested template instantiations (experimental)"));
// legacy options superseded by `-preview=dip<N>`
static cl::opt<bool, true>
useDIP25("dip25", cl::ZeroOrMore, cl::location(global.params.useDIP25),
cl::desc("Implement DIP25 (sealed references)"));
cl::desc("Implement DIP25 (sealed references)"), cl::ReallyHidden);
static cl::opt<bool, true>
useDIP1000("dip1000", cl::ZeroOrMore, cl::location(global.params.vsafe),
cl::desc("Implement DIP1000 (scoped pointers)"));
cl::desc("Implement DIP1000 (scoped pointers)"),
cl::ReallyHidden);
static cl::opt<bool, true>
useDIP1008("dip1008", cl::ZeroOrMore, cl::location(global.params.ehnogc),
cl::desc("Implement DIP1008 (@nogc Throwable)"));
cl::desc("Implement DIP1008 (@nogc Throwable)"),
cl::ReallyHidden);
cl::opt<bool, true> betterC(
"betterC", cl::ZeroOrMore, cl::location(global.params.betterC),

View file

@ -185,9 +185,6 @@ Where:\n\
-deps=<filename> write module dependencies to filename (only imports)\n\
-extern-std=<standard> set C++ name mangling compatibility with <standard>\n\
-fPIC generate position independent code\n\
-dip25 implement https://github.com/dlang/DIPs/blob/master/DIPs/archive/DIP25.md\n\
-dip1000 implement https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md\n\
-dip1008 implement https://github.com/dlang/DIPs/blob/master/DIPs/DIP1008.md\n\
-g add symbolic debug info\n\
-gf emit debug info for all referenced types\n\
-gs always emit stack frame\n"