diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-26 12:31:19 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-26 12:31:19 +0000 |
commit | 375815d24b8b84e78781634c747125c3d3f5a9e0 (patch) | |
tree | a8187457276bf0b4a4a19fcd9fb5101af54371ef /clang/unittests/Format/FormatTestJava.cpp | |
parent | 2a783392d475a440d9282c31730e011057b13f18 (diff) | |
download | llvm-375815d24b8b84e78781634c747125c3d3f5a9e0.zip llvm-375815d24b8b84e78781634c747125c3d3f5a9e0.tar.gz llvm-375815d24b8b84e78781634c747125c3d3f5a9e0.tar.bz2 |
clang-format: [Java] Improve formatting of throws declarations.
Before:
public void doSoooooooooo() throws LoooooooooongException,
LooooooooooongException {}
After:
public void doSoooooooooo()
throws LoooooooooongException, LooooooooooongException {}
llvm-svn: 222829
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJava.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJava.cpp b/clang/unittests/Format/FormatTestJava.cpp index 674c13b..b99dec7 100644 --- a/clang/unittests/Format/FormatTestJava.cpp +++ b/clang/unittests/Format/FormatTestJava.cpp @@ -202,6 +202,8 @@ TEST_F(FormatTestJava, ArrayInitializers) { TEST_F(FormatTestJava, ThrowsDeclarations) { verifyFormat("public void doSooooooooooooooooooooooooooomething()\n" " throws LooooooooooooooooooooooooooooongException {}"); + verifyFormat("public void doSooooooooooooooooooooooooooomething()\n" + " throws LoooooooooongException, LooooooooooongException {}"); } TEST_F(FormatTestJava, Annotations) { |