================
@@ -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.
----------------
aengelke wrote:

Add explanation of default vs bare in the comment as well.

https://github.com/llvm/llvm-project/pull/230220
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to