[clang] [clang-format] modified goto bool to enum (PR #65140)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 4 15:32:43 PDT 2023


================
@@ -1199,6 +1199,15 @@ template <> struct DocumentListTraits<std::vector<FormatStyle>> {
     return Seq[Index];
   }
 };
+
+template <> struct ScalarEnumerationTraits<FormatStyle::GotoLabelIndentation> {
+  static void enumeration(IO &IO, FormatStyle::GotoLabelIndentation &Value) {
+    IO.enumCase(Value, "None", FormatStyle::GLI_None);
+    IO.enumCase(Value, "Indent", FormatStyle::GLI_Indent);
+    IO.enumCase(Value, "HalfIndent", FormatStyle::GLI_HalfIndent);
+  }
+};
+
----------------
mydeveloperday wrote:

Ok this should have been in addition to what you had before not instead of

https://github.com/llvm/llvm-project/pull/65140


More information about the cfe-commits mailing list