summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-05-13 12:54:30 +0000
committerDaniel Jasper <djasper@google.com>2015-05-13 12:54:30 +0000
commit3a26a8db5d712337809fc1c7c1aad95c6d6d31e5 (patch)
treef5ec2962c633acda38f10881ebc28e6640b6dee2 /clang/unittests/Format/FormatTest.cpp
parent0e919bca7f3748a304430e163fadcefd2dfcbb03 (diff)
downloadbcm5719-llvm-3a26a8db5d712337809fc1c7c1aad95c6d6d31e5.tar.gz
bcm5719-llvm-3a26a8db5d712337809fc1c7c1aad95c6d6d31e5.zip
clang-format: Fix incorrect */& classification.
Before: void f() { f(new a(), c *d); } After: void f() { f(new a(), c * d); } llvm-svn: 237249
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 d6f0c08bf0a..c44708fbf6c 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5486,6 +5486,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
verifyFormat("Constructor() : a(a), area(a, width * height) {}");
verifyGoogleFormat("MACRO Constructor(const int& i) : a(a), b(b) {}");
verifyFormat("void f() { f(a, c * d); }");
+ verifyFormat("void f() { f(new a(), c * d); }");
verifyIndependentOfContext("InvalidRegions[*R] = 0;");
OpenPOWER on IntegriCloud