From 16db1628451d189c88ea1fb72bd5a8cc95998cf8 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 24 Jul 2019 17:15:47 +0000 Subject: [PATCH] clang-format: Add another test like r366926 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366929 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Format/FormatTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index dba8dbc59a..078c502452 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -6918,6 +6918,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { 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" -- 2.40.0