summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-11-17 13:55:04 +0000
committerDaniel Jasper <djasper@google.com>2014-11-17 13:55:04 +0000
commitc9c4ae5add6d888c381377e4a29587cbaf6239e2 (patch)
tree5bdddde8546e4a0db835da78c19117f2bb35f44d /unittests
parented7b4fa2b6932aefbfdf6a635aa9c85e03fa82a6 (diff)
clang-format: Fix regression introduced in r221609.
Before: void f() { f(a, c *d); } After: void f() { f(a, c * d); } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index 540dd03b42..1fd95f0486 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -5009,6 +5009,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
verifyIndependentOfContext("aaa && aaa->f();");
verifyIndependentOfContext("int x = ~*p;");
verifyFormat("Constructor() : a(a), area(width * height) {}");
+ verifyFormat("void f() { f(a, c * d); }");
verifyIndependentOfContext("InvalidRegions[*R] = 0;");