diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-17 18:42:22 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-17 18:42:22 +0000 |
commit | 31a3bde4cb55d3e7880291284bc3a33e73a37980 (patch) | |
tree | 8109ee4f715653ecf376e9802c3154bd93ae926b /unittests | |
parent | 9cc5c0a814773e0b85d02b13c392fdab1d930cbb (diff) |
clang-format: Fix more incorrect pointer detection.
Before:
Constructor() : a(a), b(c, d *e) {}
After:
Constructor() : a(a), b(c, d * e) {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 1fd95f0486..cada2bf6d7 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("Constructor() : a(a), area(a, width * height) {}"); verifyFormat("void f() { f(a, c * d); }"); verifyIndependentOfContext("InvalidRegions[*R] = 0;"); |