From 428f0b1430b6850492070d7c4803e698940c1ab3 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Sun, 4 Jan 2015 09:11:17 +0000 Subject: clang-format: Re-enable comment re-indentation for Java/JS. This was broken by r224120. llvm-svn: 225130 --- clang/unittests/Format/FormatTestJava.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'clang/unittests/Format/FormatTestJava.cpp') 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 -- cgit v1.1