summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-04-20 12:54:29 +0000
committerDaniel Jasper <djasper@google.com>2015-04-20 12:54:29 +0000
commite4ab49e8d3cfd1556b61d4af79fede0e477ebfb0 (patch)
treed73fa6c819d4d8b731237e590deeda47a906db48 /clang/unittests/Format/FormatTest.cpp
parent29c8270916547beeec7c3ba94fd58118a771b29a (diff)
downloadbcm5719-llvm-e4ab49e8d3cfd1556b61d4af79fede0e477ebfb0.tar.gz
bcm5719-llvm-e4ab49e8d3cfd1556b61d4af79fede0e477ebfb0.zip
clang-format: Fix incorrect multi-var declstmt detection.
This is now obvious as the pointer alignment behavior was changed. Before (even with pointer alignment "Left"): MACRO Constructor(const int &i) : a(a), b(b) {} After: MACRO Constructor(const int& i) : a(a), b(b) {} llvm-svn: 235301
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 9791e2a5fb9..bec7a9cfb50 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5336,6 +5336,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
verifyIndependentOfContext("int x = ~*p;");
verifyFormat("Constructor() : a(a), area(width * height) {}");
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); }");
verifyIndependentOfContext("InvalidRegions[*R] = 0;");
OpenPOWER on IntegriCloud