Skip to content

Commit 4724562

Browse files
Last Review?
1 parent b4f2a6d commit 4724562

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

clang/unittests/Format/FormatTestComments.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2515,7 +2515,6 @@ TEST_F(FormatTestComments, BlockComments) {
25152515
"bool aaaaaaaaaaaaa = /* trailing comment */\n"
25162516
" aaaaaaaaaaaaaaaaaaaaaaaaaaa || aaaaaaaaaaaaaaaaaaaaaaaaa ||\n"
25172517
" aaaaaaaaaaaaaaaaaaaaaaaaaaaa || aaaaaaaaaaaaaaaaaaaaaaaaaa;",
2518-
25192518
"bool aaaaaaaaaaaaa = /* trailing comment */\n"
25202519
" aaaaaaaaaaaaaaaaaaaaaaaaaaa||aaaaaaaaaaaaaaaaaaaaaaaaa ||\n"
25212520
" aaaaaaaaaaaaaaaaaaaaaaaaaaaa || aaaaaaaaaaaaaaaaaaaaaaaaaa;");
@@ -3652,7 +3651,6 @@ TEST_F(FormatTestComments, NoCrash_Bug34236) {
36523651
"/* */ /*\n"
36533652
" * a\n"
36543653
" * b c d*/",
3655-
36563654
"/* */ /*\n"
36573655
" * a b\n"
36583656
" * c d*/");
@@ -3771,7 +3769,6 @@ TEST_F(FormatTestComments, ReflowBackslashCrash) {
37713769
"// bbbbb run \\\n"
37723770
"// rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr\n"
37733771
"// \\ <log_file> -- --output_directory=\"<output_directory>\"",
3774-
37753772
"// How to run:\n"
37763773
"// bbbbb run \\\n"
37773774
"// rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr \\\n"
@@ -4278,7 +4275,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
42784275
WrapCode, Style);
42794276

42804277
Style = getLLVMStyleWithColumns(20);
4281-
constexpr StringRef LotsOfSpaces =
4278+
constexpr StringRef LotsOfSpaces(
42824279
"// This are more spaces "
42834280
"than the ColumnLimit, what now?\n"
42844281
"\n"
@@ -4289,7 +4286,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
42894286
"\n"
42904287
"// A comment with\n"
42914288
"// some indentation that has to be split.\n"
4292-
"// And now without";
4289+
"// And now without");
42934290
verifyFormat("// This are more spaces "
42944291
"than the ColumnLimit, what now?\n"
42954292
"\n"
@@ -4481,8 +4478,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
44814478
TEST_F(FormatTestComments, SplitCommentIntroducers) {
44824479
verifyFormat("//\n"
44834480
"/\\\n"
4484-
"/\n"
4485-
"",
4481+
"/\n",
44864482
"//\n"
44874483
"/\\\n"
44884484
"/ \n"

0 commit comments

Comments
 (0)