summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-01-08 15:41:13 +0000
committerDaniel Jasper <djasper@google.com>2014-01-08 15:41:13 +0000
commit7620b6628b5d99d8a0915c85814ba22b10cd305d (patch)
tree395c3d269b0097ca34ec2acbf93fadccad890cdc /clang/unittests/Format/FormatTest.cpp
parent95c864d9bd3a61305243c350d6875cb7f0f72dcb (diff)
downloadbcm5719-llvm-7620b6628b5d99d8a0915c85814ba22b10cd305d.tar.gz
bcm5719-llvm-7620b6628b5d99d8a0915c85814ba22b10cd305d.zip
clang-format: Fix spacing in Cpp11 braced lists:
Before: vector<int> foo{ ::SomeFunction()}; After: vector<int> foo{::SomeFunction()}; llvm-svn: 198769
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index a8a1ed8a868..756c71cf3c2 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -4826,6 +4826,7 @@ TEST_F(FormatTest, LayoutCxx11ConstructorBraceInitializers) {
" aaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaa + aaaaaaaaaaaaaaaaaaa,\n"
" aaaaaaa, a\n"
"};");
+ verifyFormat("vector<int> foo = { ::SomeGlobalFunction() };");
FormatStyle NoSpaces = getLLVMStyle();
NoSpaces.Cpp11BracedListStyle = true;
@@ -4846,6 +4847,7 @@ TEST_F(FormatTest, LayoutCxx11ConstructorBraceInitializers) {
" T member = {arg1, arg2};\n"
"};",
NoSpaces);
+ verifyFormat("vector<int> foo = {::SomeGlobalFunction()};", NoSpaces);
// FIXME: The alignment of these trailing comments might be bad. Then again,
// this might be utterly useless in real code.
OpenPOWER on IntegriCloud