aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-01-04 09:11:17 +0000
committerDaniel Jasper <djasper@google.com>2015-01-04 09:11:17 +0000
commit428f0b1430b6850492070d7c4803e698940c1ab3 (patch)
tree289b7683b95e46e42de5c9e434e69ed40d959e2a /clang/unittests/Format/FormatTestJava.cpp
parent3ce01c34c051ab690151348ca633c42e6b4212ef (diff)
downloadllvm-428f0b1430b6850492070d7c4803e698940c1ab3.zip
llvm-428f0b1430b6850492070d7c4803e698940c1ab3.tar.gz
llvm-428f0b1430b6850492070d7c4803e698940c1ab3.tar.bz2
clang-format: Re-enable comment re-indentation for Java/JS.
This was broken by r224120. llvm-svn: 225130
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJava.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJava.cpp b/clang/unittests/Format/FormatTestJava.cpp
index d80cccd..b4f67af 100644
--- a/clang/unittests/Format/FormatTestJava.cpp
+++ b/clang/unittests/Format/FormatTestJava.cpp
@@ -425,5 +425,18 @@ TEST_F(FormatTestJava, BreaksStringLiterals) {
format("\"some text other\";", getStyleWithColumns(14)));
}
+TEST_F(FormatTestJava, AlignsBlockComments) {
+ EXPECT_EQ("/*\n"
+ " * Really multi-line\n"
+ " * comment.\n"
+ " */\n"
+ "void f() {}",
+ format(" /*\n"
+ " * Really multi-line\n"
+ " * comment.\n"
+ " */\n"
+ " void f() {}"));
+}
+
} // end namespace tooling
} // end namespace clang