summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-05-18 14:12:24 +0000
committerDaniel Jasper <djasper@google.com>2015-05-18 14:12:24 +0000
commitcec9ffd2a244d0001768f529da797bd141e9f214 (patch)
treedcfecffe79f6f3ff9cc482e20509275f17637d87 /clang/unittests/Format/FormatTest.cpp
parent47bbda093917d7e16f59df20ae409c07b4624e30 (diff)
downloadbcm5719-llvm-cec9ffd2a244d0001768f529da797bd141e9f214.tar.gz
bcm5719-llvm-cec9ffd2a244d0001768f529da797bd141e9f214.zip
clang-format: Fix regression introduced by r237565.
Before: class C : public D { SomeClass SC { 2 }; }; After: class C : public D { SomeClass SC{2}; }; llvm-svn: 237568
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 00c23b5bcc1..0bb1bc151a0 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -6192,6 +6192,9 @@ TEST_F(FormatTest, LayoutCxx11BraceInitializers) {
" aaaa,\n"
" },\n"
"};");
+ verifyFormat("class C : public D {\n"
+ " SomeClass SC{2};\n"
+ "};");
// In combination with BinPackParameters = false.
FormatStyle NoBinPacking = getLLVMStyle();
OpenPOWER on IntegriCloud