diff options
author | Daniel Jasper <djasper@google.com> | 2015-05-18 14:12:24 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-05-18 14:12:24 +0000 |
commit | cec9ffd2a244d0001768f529da797bd141e9f214 (patch) | |
tree | dcfecffe79f6f3ff9cc482e20509275f17637d87 /clang/unittests/Format/FormatTest.cpp | |
parent | 47bbda093917d7e16f59df20ae409c07b4624e30 (diff) | |
download | bcm5719-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.cpp | 3 |
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(); |