r366929 - clang-format: Add another test like r366926

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 24 10:15:47 PDT 2019


Author: nico
Date: Wed Jul 24 10:15:47 2019
New Revision: 366929

URL: http://llvm.org/viewvc/llvm-project?rev=366929&view=rev
Log:
clang-format: Add another test like r366926

Modified:
    cfe/trunk/unittests/Format/FormatTest.cpp

Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=366929&r1=366928&r2=366929&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Wed Jul 24 10:15:47 2019
@@ -6918,6 +6918,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStar
   verifyIndependentOfContext("if (*b[i])");
   verifyIndependentOfContext("if (int *a = (&b))");
   verifyIndependentOfContext("while (int *a = &b)");
+  verifyIndependentOfContext("while (a * (b * c))");
   verifyIndependentOfContext("size = sizeof *a;");
   verifyIndependentOfContext("if (a && (b = c))");
   verifyFormat("void f() {\n"




More information about the cfe-commits mailing list