diff options
author | Daniel Jasper <djasper@google.com> | 2016-10-04 20:18:25 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-10-04 20:18:25 +0000 |
commit | 85d1f0b6104675ad46a0d2551ed11a8bc3467d61 (patch) | |
tree | 0d4cfbaf88d893d7f006af4309d7d80ab7086930 /clang/unittests/Format | |
parent | e84ee850d1f7fc2e8dac8d90c5856e8451ca3bbe (diff) | |
download | bcm5719-llvm-85d1f0b6104675ad46a0d2551ed11a8bc3467d61.tar.gz bcm5719-llvm-85d1f0b6104675ad46a0d2551ed11a8bc3467d61.zip |
clang-format: Fix bad multi-variable for-loop formatting.
Before:
for (int*p, *q; p != q; p = p->next) {
After:
for (int *p, *q; p != q; p = p->next) {
llvm-svn: 283246
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 06a7e7ee917..f04f5e5dc0d 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4803,6 +4803,7 @@ TEST_F(FormatTest, DeclarationsOfMultipleVariables) { " *b = bbbbbbbbbbbbbbbbbbb, *d = ddddddddddddddddddd;", Style); verifyFormat("vector<int*> a, b;", Style); + verifyFormat("for (int *p, *q; p != q; p = p->next) {\n}", Style); } TEST_F(FormatTest, ConditionalExpressionsInBrackets) { |