[llvm-branch-commits] [clang] 10a5497 - Fix build error in StmtPrinterTest.cpp

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Sep 27 23:17:01 PDT 2022


Author: Nathan Ridge
Date: 2022-09-28T08:16:42+02:00
New Revision: 10a54971b0d34f3b68b3213bcf82079dc2d00ae9

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

LOG: Fix build error in StmtPrinterTest.cpp

(cherry picked from commit c933453858307d060a1b79e257feb99c9ac828d7)

Added: 
    

Modified: 
    clang/unittests/AST/StmtPrinterTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/AST/StmtPrinterTest.cpp b/clang/unittests/AST/StmtPrinterTest.cpp
index b6f340507164..ef80812886ae 100644
--- a/clang/unittests/AST/StmtPrinterTest.cpp
+++ b/clang/unittests/AST/StmtPrinterTest.cpp
@@ -232,15 +232,17 @@ TEST(StmtPrinter, TestCXXLamda) {
     "[](auto a, int b, auto c, int, auto) {\n"
     "}"));
 
-  ASSERT_TRUE(PrintedStmtCXXMatches(StdVer::CXX2a,
-    "void A() {"
-    "  auto l = []<typename T1, class T2, int I,"
-    "              template<class, typename> class T3>"
-    "           (int a, auto, int, auto d) { };"
-    "}",
-    lambdaExpr(anything()).bind("id"),
-    "[]<typename T1, class T2, int I, template <class, typename> class T3>(int a, auto, int, auto d) {\n"
-    "}"));
+  ASSERT_TRUE(
+      PrintedStmtCXXMatches(StdVer::CXX20,
+                            "void A() {"
+                            "  auto l = []<typename T1, class T2, int I,"
+                            "              template<class, typename> class T3>"
+                            "           (int a, auto, int, auto d) { };"
+                            "}",
+                            lambdaExpr(anything()).bind("id"),
+                            "[]<typename T1, class T2, int I, template <class, "
+                            "typename> class T3>(int a, auto, int, auto d) {\n"
+                            "}"));
 }
 
 TEST(StmtPrinter, TestNoImplicitBases) {


        


More information about the llvm-branch-commits mailing list