[clang] c933453 - Fix build error in StmtPrinterTest.cpp

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 5 00:48:57 PDT 2022


Author: Nathan Ridge
Date: 2022-09-05T03:48:46-04:00
New Revision: c933453858307d060a1b79e257feb99c9ac828d7

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

LOG: Fix build error in StmtPrinterTest.cpp

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 cfe-commits mailing list