================
@@ -11450,6 +11450,11 @@ TEST_F(FormatTest, UnderstandsNewAndDelete) {
                "void new (link p);\n"
                "void delete (link p);");
 
+  verifyFormat("{ p->delete(); }\n"
+               "{ p->new(); }",
+               "{ p->delete (); }\n"
+               "{ p->new (); }");
----------------
owenca wrote:

```suggestion
  verifyFormat("p->new();\n"
               "p->delete();",
               "p->new ();\n"
               "p->delete ();");
```
I would drop the braces and reverse the delete/new order.

https://github.com/llvm/llvm-project/pull/85470
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to