Skip to content

Commit 09559bc

Browse files
committed
Avoid a vulgarism. NFC.
1 parent 25282bd commit 09559bc

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

clang/unittests/Format/FormatTestComments.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,17 +3660,17 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
36603660
format(WrapCode, Style));
36613661

36623662
Style = getLLVMStyleWithColumns(20);
3663-
StringRef AShitloadOfSpaces = "// This are more spaces "
3664-
"than the ColumnLimit, what now?\n"
3665-
"\n"
3666-
"// Comment\n"
3667-
"\n"
3668-
"// This is a text to split in multiple "
3669-
"lines, please. Thank you very much!\n"
3670-
"\n"
3671-
"// A comment with\n"
3672-
"// some indentation that has to be split.\n"
3673-
"// And now without";
3663+
StringRef LotsOfSpaces = "// This are more spaces "
3664+
"than the ColumnLimit, what now?\n"
3665+
"\n"
3666+
"// Comment\n"
3667+
"\n"
3668+
"// This is a text to split in multiple "
3669+
"lines, please. Thank you very much!\n"
3670+
"\n"
3671+
"// A comment with\n"
3672+
"// some indentation that has to be split.\n"
3673+
"// And now without";
36743674
EXPECT_EQ("// This are more spaces "
36753675
"than the ColumnLimit, what now?\n"
36763676
"\n"
@@ -3688,7 +3688,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
36883688
"// that has to be\n"
36893689
"// split.\n"
36903690
"// And now without",
3691-
format(AShitloadOfSpaces, Style));
3691+
format(LotsOfSpaces, Style));
36923692

36933693
Style.SpacesInLineCommentPrefix = {0, 0};
36943694
EXPECT_EQ("//This are more\n"
@@ -3709,7 +3709,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
37093709
"// that has to be\n"
37103710
"// split.\n"
37113711
"//And now without",
3712-
format(AShitloadOfSpaces, Style));
3712+
format(LotsOfSpaces, Style));
37133713

37143714
Style.SpacesInLineCommentPrefix = {3, 3};
37153715
EXPECT_EQ("// This are more\n"
@@ -3731,7 +3731,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
37313731
"// that has to\n"
37323732
"// be split.\n"
37333733
"// And now without",
3734-
format(AShitloadOfSpaces, Style));
3734+
format(LotsOfSpaces, Style));
37353735

37363736
Style.SpacesInLineCommentPrefix = {30, -1u};
37373737
EXPECT_EQ("// This are more spaces than the "
@@ -3746,7 +3746,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
37463746
"// some indentation that has to be "
37473747
"split.\n"
37483748
"// And now without",
3749-
format(AShitloadOfSpaces, Style));
3749+
format(LotsOfSpaces, Style));
37503750

37513751
Style.SpacesInLineCommentPrefix = {2, 4};
37523752
EXPECT_EQ("// A Comment to be\n"

0 commit comments

Comments
 (0)