diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-27 14:40:48 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-27 14:40:48 +0000 |
commit | e89a0fd73e9b3733f97d89e9ca397b519f149ea8 (patch) | |
tree | 6d9f765de87feee99d559ec44d515b8513b5601c /unittests/Format/FormatTestJava.cpp | |
parent | a379fcb01c6a0a0be996e0fe156de107d70e9927 (diff) |
clang-format: Don't use column layout with AlignAfterOpenBrackets.
This fixes llvm.org/PR21676.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTestJava.cpp')
-rw-r--r-- | unittests/Format/FormatTestJava.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unittests/Format/FormatTestJava.cpp b/unittests/Format/FormatTestJava.cpp index 829ced7b02..95d1961804 100644 --- a/unittests/Format/FormatTestJava.cpp +++ b/unittests/Format/FormatTestJava.cpp @@ -212,6 +212,13 @@ TEST_F(FormatTestJava, ArrayInitializers) { verifyFormat("new int[] {\n" " 1, 2, 3, 4,\n" "};"); + + FormatStyle Style = getStyleWithColumns(65); + Style.Cpp11BracedListStyle = false; + verifyFormat( + "expected = new int[] { 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,\n" + " 100, 100, 100, 100, 100, 100, 100, 100, 100, 100 };", + Style); } TEST_F(FormatTestJava, ThrowsDeclarations) { |