[clang] [clang-format] Fix clang-format issue with 'new' and 'delete' keywords in C files (PR #85470)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 18 20:24:12 PDT 2024


================
@@ -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:

My bad. Fixed in a2527e06d777.

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


More information about the cfe-commits mailing list