[clang] cd3ab15 - [clang-format] Fix typos in test. NFC.

Marek Kurdej via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 14 04:32:26 PST 2022


Author: Marek Kurdej
Date: 2022-01-14T13:24:16+01:00
New Revision: cd3ab156a74b57432f6337f6e0405fa7f207604e

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

LOG: [clang-format] Fix typos in test. NFC.

Added: 
    

Modified: 
    clang/unittests/Format/FormatTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 9d1273184807c..a2470daeca03a 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -2157,7 +2157,7 @@ TEST_F(FormatTest, ForEachLoops) {
                "  foreach (Item *item, itemlist) {}\n"
                "  Q_FOREACH (Item *item, itemlist) {}\n"
                "  BOOST_FOREACH (Item *item, itemlist) {}\n"
-               "  UNKNOWN_FORACH(Item * item, itemlist) {}\n"
+               "  UNKNOWN_FOREACH(Item * item, itemlist) {}\n"
                "}");
 
   FormatStyle Style = getLLVMStyle();
@@ -2167,7 +2167,7 @@ TEST_F(FormatTest, ForEachLoops) {
                "  foreach(Item *item, itemlist) {}\n"
                "  Q_FOREACH(Item *item, itemlist) {}\n"
                "  BOOST_FOREACH(Item *item, itemlist) {}\n"
-               "  UNKNOWN_FORACH(Item * item, itemlist) {}\n"
+               "  UNKNOWN_FOREACH(Item * item, itemlist) {}\n"
                "}",
                Style);
 


        


More information about the cfe-commits mailing list