summaryrefslogtreecommitdiffstats
path: root/clang/unittests
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-07-01 16:43:38 +0000
committerDaniel Jasper <djasper@google.com>2013-07-01 16:43:38 +0000
commitca7bd720eb64b80bbe07322be94a327a2823dd9f (patch)
tree969e321c3f53dc221782e85a3c7d0ce9ec28f158 /clang/unittests
parent4798a08df8c85aa3637bbb9662c895581a336711 (diff)
downloadbcm5719-llvm-ca7bd720eb64b80bbe07322be94a327a2823dd9f.tar.gz
bcm5719-llvm-ca7bd720eb64b80bbe07322be94a327a2823dd9f.zip
Fix incorrect token counting introduced by r185319.
This lead to weird formatting. Before: DoSomethingWithVector({ {} /* No data */ }, { { 1, 2 } }); After: DoSomethingWithVector({ {} /* No data */ }, { { 1, 2 } }); llvm-svn: 185346
Diffstat (limited to 'clang/unittests')
-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 affec471214..6df7e9b0e93 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -3683,6 +3683,7 @@ TEST_F(FormatTest, LayoutCxx11ConstructorBraceInitializers) {
" : vector<int>{ bbbbbbbbbbbbbbbbbbbbbbbbbbb,\n"
" bbbbbbbbbbbbbbbbbbbb, bbbbb };");
verifyFormat("DoSomethingWithVector({} /* No data */);");
+ verifyFormat("DoSomethingWithVector({ {} /* No data */ }, { { 1, 2 } });");
FormatStyle NoSpaces = getLLVMStyle();
NoSpaces.SpacesInBracedLists = false;
OpenPOWER on IntegriCloud