summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
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
commit6a3fd8361fcf385d1b85813cd2fc423417182030 (patch)
tree5dd9580c074fb1e4e09a99f971e14efc68174a01 /clang/unittests/Format/FormatTest.cpp
parentb412e529e209fe31d919902d4866c33e177b81e7 (diff)
downloadbcm5719-llvm-6a3fd8361fcf385d1b85813cd2fc423417182030.tar.gz
bcm5719-llvm-6a3fd8361fcf385d1b85813cd2fc423417182030.zip
clang-format: Fix regression introduced in r221609.
Before: void f() { f(a, c *d); } After: void f() { f(a, c * d); } llvm-svn: 222128
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 540dd03b42e..1fd95f04869 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/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;");
OpenPOWER on IntegriCloud