diff options
Diffstat (limited to 'unittests/Option/Opts.td')
-rw-r--r-- | unittests/Option/Opts.td | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/unittests/Option/Opts.td b/unittests/Option/Opts.td index 3d6242f..ccb377f 100644 --- a/unittests/Option/Opts.td +++ b/unittests/Option/Opts.td @@ -1,13 +1,18 @@ include "llvm/Option/OptParser.td" -def A : Flag<["-"], "A">, HelpText<"The A option">; -def B : Joined<["-"], "B">, HelpText<"The B option">, MetaVarName<"B">; -def C : Separate<["-"], "C">, HelpText<"The C option">, MetaVarName<"C">; +def OptFlag1 : OptionFlag; +def OptFlag2 : OptionFlag; +def OptFlag3 : OptionFlag; + +def A : Flag<["-"], "A">, HelpText<"The A option">, Flags<[OptFlag1]>; +def B : Joined<["-"], "B">, HelpText<"The B option">, MetaVarName<"B">, Flags<[OptFlag2]>; +def C : Separate<["-"], "C">, HelpText<"The C option">, MetaVarName<"C">, Flags<[OptFlag1]>; +def SLASH_C : Separate<["/", "-"], "C">, HelpText<"The C option">, MetaVarName<"C">, Flags<[OptFlag3]>; def D : CommaJoined<["-"], "D">, HelpText<"The D option">, MetaVarName<"D">; -def E : MultiArg<["-"], "E", 2>; +def E : MultiArg<["-"], "E", 2>, Flags<[OptFlag1, OptFlag2]>; def F : JoinedOrSeparate<["-"], "F">, HelpText<"The F option">, MetaVarName<"F">; def G : JoinedAndSeparate<["-"], "G">, HelpText<"The G option">, MetaVarName<"G">; -def Ceq : Joined<["-", "--"], "C=">, Alias<C>; +def Ceq : Joined<["-", "--"], "C=">, Alias<C>, Flags<[OptFlag1]>; def H : Flag<["-"], "H">, Flags<[HelpHidden]>; |