diff options
author | Daniel Jasper <djasper@google.com> | 2015-05-18 14:49:19 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-05-18 14:49:19 +0000 |
commit | 3c883d1dccd9e81fd28b7cffd7c4dc29b4685910 (patch) | |
tree | 3c6cc4ef1a135dc3222529d2c2a429d882e430c1 /clang/unittests/Format/FormatTest.cpp | |
parent | cec9ffd2a244d0001768f529da797bd141e9f214 (diff) | |
download | bcm5719-llvm-3c883d1dccd9e81fd28b7cffd7c4dc29b4685910.tar.gz bcm5719-llvm-3c883d1dccd9e81fd28b7cffd7c4dc29b4685910.zip |
clang-format: Fix another regression caused by r237565.
Before:
class C : test {
class D : test{void f(){int i{2};
}
}
;
}
;
After:
class C : test {
class D : test {
void f() { int i{2}; }
};
};
llvm-svn: 237569
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 0bb1bc151a0..ab09e0075d6 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -6195,6 +6195,11 @@ TEST_F(FormatTest, LayoutCxx11BraceInitializers) { verifyFormat("class C : public D {\n" " SomeClass SC{2};\n" "};"); + verifyFormat("class C : public A {\n" + " class D : public B {\n" + " void f() { int i{2}; }\n" + " };\n" + "};"); // In combination with BinPackParameters = false. FormatStyle NoBinPacking = getLLVMStyle(); |