clang-format: fix for \r\r\n produced in multiline block comments
Patch by Christopher Olsen. Thank you!
llvm-svn: 193678
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 991763c..2f6e06f 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -6984,6 +6984,17 @@
" b; \\\r\n"
" c; d; \r\n",
getGoogleStyle()));
+
+ EXPECT_EQ("/*\r\n"
+ "multi line block comments\r\n"
+ "should not introduce\r\n"
+ "an extra carriage return\r\n"
+ "*/\r\n",
+ format("/*\r\n"
+ "multi line block comments\r\n"
+ "should not introduce\r\n"
+ "an extra carriage return\r\n"
+ "*/\r\n"));
}
TEST_F(FormatTest, MunchSemicolonAfterBlocks) {