================
@@ -28918,6 +28918,18 @@ TEST_F(FormatTest, KeywordedFunctionLikeMacros) {
                Style);
 }
 
+TEST_F(FormatTest, BreakAfterJavaRecord) {
+  auto Style = getLLVMStyle();
+  Style.Language = FormatStyle::LK_Java;
+  Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Never;
+  Style.BreakBeforeBraces = FormatStyle::BS_Custom;
+  Style.BraceWrapping.AfterClass = true;
+  Style.BraceWrapping.SplitEmptyRecord = true;
+
+  verifyFormat("public record Foo(int i)\n{\n}", "public record Foo(int i) {}",
----------------
HazardyKnusperkeks wrote:

```suggestion
  verifyFormat("public record Foo(int i)\n"
  "{\n"
  "}", "public record Foo(int i) {}",
```

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

Reply via email to