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 | 13404dad0d53763b46fda1516fc82565940bb03f (patch) | |
tree | 4f98dcac3be50f34c854f7ba76d581e32fcdd1e6 /clang/unittests/Format/FormatTestJava.cpp | |
parent | d977985e43885e71c5c8d40ad2e216f722463936 (diff) | |
download | llvm-13404dad0d53763b46fda1516fc82565940bb03f.zip llvm-13404dad0d53763b46fda1516fc82565940bb03f.tar.gz llvm-13404dad0d53763b46fda1516fc82565940bb03f.tar.bz2 |
clang-format: Don't use column layout with AlignAfterOpenBrackets.
This fixes llvm.org/PR21676.
llvm-svn: 222886
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJava.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJava.cpp b/clang/unittests/Format/FormatTestJava.cpp index 829ced7..95d1961 100644 --- a/clang/unittests/Format/FormatTestJava.cpp +++ b/clang/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) { |