Author: Owen Pan
Date: 2024-03-17T21:37:32-07:00
New Revision: 55a02d10d9819b485f67546c6c1aee856a3cd62c

URL: 
https://github.com/llvm/llvm-project/commit/55a02d10d9819b485f67546c6c1aee856a3cd62c
DIFF: 
https://github.com/llvm/llvm-project/commit/55a02d10d9819b485f67546c6c1aee856a3cd62c.diff

LOG: [clang-format][NFC] Minor changes to a unit test in 8e5de66af3da

See https://github.com/llvm/llvm-project/pull/85470#discussion_r1527297517

Added: 
    

Modified: 
    clang/unittests/Format/FormatTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Format/FormatTest.cpp 
b/clang/unittests/Format/FormatTest.cpp
index 7318ac37e47091..a14b002c37c631 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -11475,10 +11475,10 @@ TEST_F(FormatTest, UnderstandsNewAndDelete) {
                "void new (link p);\n"
                "void delete (link p);");
 
-  verifyFormat("{ p->delete(); }\n"
-               "{ p->new(); }",
-               "{ p->delete (); }\n"
-               "{ p->new (); }");
+  verifyFormat("p->new();\n"
+               "p->delete();",
+               "p->new ();\n"
+               "p->delete ();");
 
   FormatStyle AfterPlacementOperator = getLLVMStyle();
   AfterPlacementOperator.SpaceBeforeParens = FormatStyle::SBPO_Custom;


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to