[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:33 PDT 2026
================
@@ -2885,6 +2885,22 @@ TEST_F(FormatTest, ShortEnums) {
" C\n"
"} ShortEnum1, ShortEnum2;",
Style);
+
+ Style.AllowShortEnumsOnASingleLine = true;
+ verifyFormat("enum\n"
+ "{\n"
+ " A,\n"
+ " B,\n"
+ " C\n"
+ "} ShortEnum1, ShortEnum2;",
----------------
owenca wrote:
This is a separate issue unrelated to starting the line with `export`. I suggest that you file a separate issue if you think it's worthwhile to fix.
https://github.com/llvm/llvm-project/pull/189128
More information about the cfe-commits
mailing list