[clang] [clang-format] Fix breaking enum braces when combined with export (PR #189128)

via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 27 22:13:34 PDT 2026


================
@@ -22143,6 +22159,11 @@ TEST_F(FormatTest, WhitesmithsBraceBreaking) {
                "  }",
                WhitesmithsBraceStyle);
   verifyFormat("enum X\n"
+               "  {\n"
+               "  Y = 0,\n"
+               "  Z = 1\n"
+               "  };\n"
+               "enum X\n"
----------------
owenca wrote:

Delete?

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


More information about the cfe-commits mailing list