diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-26 11:20:43 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-26 11:20:43 +0000 |
commit | bd89313ce417c08e209f579a97b350f73a7b4102 (patch) | |
tree | c3b205d6c8f531e3f32ee13604a54bfe070e06a0 /unittests | |
parent | 6cb96e4663d8e61db5bb520e5946c314ff8354a1 (diff) |
clang-format: [Java] Fix breaking after annotations.
Before:
@Annotation1 // comment
@Annotation2 class C {}
After:
@Annotation1 // comment
@Annotation2
class C {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTestJava.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTestJava.cpp b/unittests/Format/FormatTestJava.cpp index 946ae32d87..5c80babf26 100644 --- a/unittests/Format/FormatTestJava.cpp +++ b/unittests/Format/FormatTestJava.cpp @@ -206,6 +206,9 @@ TEST_F(FormatTestJava, Annotations) { verifyFormat("@Override\n" "@Nullable\n" "public String getNameIfPresent() {}"); + verifyFormat("@Override // comment\n" + "@Nullable\n" + "public String getNameIfPresent() {}"); verifyFormat("@SuppressWarnings(value = \"unchecked\")\n" "public void doSomething() {}"); |