summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-11-01 06:23:14 +0000
committerDaniel Jasper <djasper@google.com>2016-11-01 06:23:14 +0000
commitd0d27aa59b0e7e6851d71da24835597658ccaa8a (patch)
treec41857b6bb7be274a29c30eaf9fec18556c3ff8a /clang/unittests/Format
parentb559b43802d040888f5cf4931d05fc12a18c8e81 (diff)
downloadbcm5719-llvm-d0d27aa59b0e7e6851d71da24835597658ccaa8a.tar.gz
bcm5719-llvm-d0d27aa59b0e7e6851d71da24835597658ccaa8a.zip
clang-format: Fix incorrect pointer detection.
Before: void f() { f(float{1}, a *a); } After: void f() { f(float{1}, a * a); } llvm-svn: 285673
Diffstat (limited to 'clang/unittests/Format')
-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 8fe835e5793..6ab4a746290 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5870,6 +5870,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
verifyIndependentOfContext("MACRO(auto *a);");
verifyIndependentOfContext("MACRO(const A *a);");
verifyIndependentOfContext("MACRO('0' <= c && c <= '9');");
+ verifyFormat("void f() { f(float{1}, a * a); }");
// FIXME: Is there a way to make this work?
// verifyIndependentOfContext("MACRO(A *a);");
OpenPOWER on IntegriCloud