[clang] 09559bc - Avoid a vulgarism. NFC.

Marek Kurdej via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 13 13:01:48 PST 2022


Author: Marek Kurdej
Date: 2022-02-13T22:01:06+01:00
New Revision: 09559bc59a718e597725c7d9747350e9c649fd0e

URL: https://github.com/llvm/llvm-project/commit/09559bc59a718e597725c7d9747350e9c649fd0e
DIFF: https://github.com/llvm/llvm-project/commit/09559bc59a718e597725c7d9747350e9c649fd0e.diff

LOG: Avoid a vulgarism. NFC.

Added: 
    

Modified: 
    clang/unittests/Format/FormatTestComments.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Format/FormatTestComments.cpp b/clang/unittests/Format/FormatTestComments.cpp
index 282bc46cd048..dcfd219484fa 100644
--- a/clang/unittests/Format/FormatTestComments.cpp
+++ b/clang/unittests/Format/FormatTestComments.cpp
@@ -3660,17 +3660,17 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
             format(WrapCode, Style));
 
   Style = getLLVMStyleWithColumns(20);
-  StringRef AShitloadOfSpaces = "//                      This are more spaces "
-                                "than the ColumnLimit, what now?\n"
-                                "\n"
-                                "//   Comment\n"
-                                "\n"
-                                "// This is a text to split in multiple "
-                                "lines, please. Thank you very much!\n"
-                                "\n"
-                                "// A comment with\n"
-                                "//   some indentation that has to be split.\n"
-                                "// And now without";
+  StringRef LotsOfSpaces = "//                      This are more spaces "
+                           "than the ColumnLimit, what now?\n"
+                           "\n"
+                           "//   Comment\n"
+                           "\n"
+                           "// This is a text to split in multiple "
+                           "lines, please. Thank you very much!\n"
+                           "\n"
+                           "// A comment with\n"
+                           "//   some indentation that has to be split.\n"
+                           "// And now without";
   EXPECT_EQ("//                      This are more spaces "
             "than the ColumnLimit, what now?\n"
             "\n"
@@ -3688,7 +3688,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
             "//   that has to be\n"
             "//   split.\n"
             "// And now without",
-            format(AShitloadOfSpaces, Style));
+            format(LotsOfSpaces, Style));
 
   Style.SpacesInLineCommentPrefix = {0, 0};
   EXPECT_EQ("//This are more\n"
@@ -3709,7 +3709,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
             "//  that has to be\n"
             "//  split.\n"
             "//And now without",
-            format(AShitloadOfSpaces, Style));
+            format(LotsOfSpaces, Style));
 
   Style.SpacesInLineCommentPrefix = {3, 3};
   EXPECT_EQ("//   This are more\n"
@@ -3731,7 +3731,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
             "//     that has to\n"
             "//     be split.\n"
             "//   And now without",
-            format(AShitloadOfSpaces, Style));
+            format(LotsOfSpaces, Style));
 
   Style.SpacesInLineCommentPrefix = {30, -1u};
   EXPECT_EQ("//                              This are more spaces than the "
@@ -3746,7 +3746,7 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
             "//                                some indentation that has to be "
             "split.\n"
             "//                              And now without",
-            format(AShitloadOfSpaces, Style));
+            format(LotsOfSpaces, Style));
 
   Style.SpacesInLineCommentPrefix = {2, 4};
   EXPECT_EQ("//  A Comment to be\n"


        


More information about the cfe-commits mailing list