================
@@ -49,8 +58,16 @@ multiclass OptionalBoolField<string name, string help> {
multiclass EnumField<string name, string type, code default, string values,
list<code> enumerators, string help> {
def NAME : SeparateOrEq<["-", "--"], name>, Field<NAME, type, default>,
- Values<values>, NormalizedValues<enumerators>,
- MetaVarName<"<"#!subst(",", "|", values)#">">, HelpText<help>;
+ EnumValues<values, enumerators>, HelpText<help>;
+}
+
+// An EnumField also set to <bare> by -<name> without a value. It never
consumes
+// the next argument.
----------------
MaskRay wrote:
switched to
```
// An EnumField that -<name> alone sets to <bare>; <default> applies when the
// option is absent. -<name> doesn't consume the next argument.
```
https://github.com/llvm/llvm-project/pull/230220
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits