@@ -1387,34 +1387,38 @@ TEST(DeclPrinter, TestTemplateArgumentList16) {
1387
1387
}
1388
1388
1389
1389
TEST (DeclPrinter, TestCXXRecordDecl17) {
1390
- ASSERT_TRUE (PrintedDeclCXX98Matches (" template<typename T> struct Z {};"
1391
- " struct X {};"
1392
- " Z<X> A;" ,
1393
- " A" , " Z<X> A" ));
1394
- (void )[](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1390
+ ASSERT_TRUE (PrintedDeclCXX98Matches (
1391
+ " template<typename T> struct Z {};"
1392
+ " struct X {};"
1393
+ " Z<X> A;" ,
1394
+ " A" , " Z<X> A" ,
1395
+ [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; }));
1395
1396
}
1396
1397
1397
1398
TEST (DeclPrinter, TestCXXRecordDecl18) {
1398
- ASSERT_TRUE (PrintedDeclCXX98Matches (" template<typename T> struct Z {};"
1399
- " struct X {};"
1400
- " Z<X> A;"
1401
- " template <typename T1, int>"
1402
- " struct Y{};"
1403
- " Y<Z<X>, 2> B;" ,
1404
- " B" , " Y<Z<X>, 2> B" ));
1405
- (void )[](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1399
+ ASSERT_TRUE (PrintedDeclCXX98Matches (
1400
+ " template<typename T> struct Z {};"
1401
+ " struct X {};"
1402
+ " Z<X> A;"
1403
+ " template <typename T1, int>"
1404
+ " struct Y{};"
1405
+ " Y<Z<X>, 2> B;" ,
1406
+ " B" , " Y<Z<X>, 2> B" ,
1407
+ [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; }));
1406
1408
}
1407
1409
1408
1410
TEST (DeclPrinter, TestCXXRecordDecl19) {
1409
- ASSERT_TRUE (PrintedDeclCXX98Matches (" template<typename T> struct Z {};"
1410
- " struct X {};"
1411
- " Z<X> A;"
1412
- " template <typename T1, int>"
1413
- " struct Y{};"
1414
- " Y<Z<X>, 2> B;" ,
1415
- " B" , " Y<Z<X>, 2> B" ));
1416
- (void )[](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = true ; };
1411
+ ASSERT_TRUE (PrintedDeclCXX98Matches (
1412
+ " template<typename T> struct Z {};"
1413
+ " struct X {};"
1414
+ " Z<X> A;"
1415
+ " template <typename T1, int>"
1416
+ " struct Y{};"
1417
+ " Y<Z<X>, 2> B;" ,
1418
+ " B" , " Y<Z<X>, 2> B" ,
1419
+ [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = true ; }));
1417
1420
}
1421
+
1418
1422
TEST (DeclPrinter, TestCXXRecordDecl20) {
1419
1423
ASSERT_TRUE (PrintedDeclCXX98Matches (
1420
1424
" template <typename T, int N> class Inner;"
@@ -1431,8 +1435,8 @@ TEST(DeclPrinter, TestCXXRecordDecl20) {
1431
1435
" };"
1432
1436
" Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100);" ,
1433
1437
" nestedInstance" ,
1434
- " Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100)" ));
1435
- ( void ) [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1438
+ " Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100)" ,
1439
+ [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; })) ;
1436
1440
}
1437
1441
1438
1442
TEST (DeclPrinter, TestCXXRecordDecl21) {
@@ -1451,8 +1455,8 @@ TEST(DeclPrinter, TestCXXRecordDecl21) {
1451
1455
" };"
1452
1456
" Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100);" ,
1453
1457
" nestedInstance" ,
1454
- " Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100)" ));
1455
- ( void ) [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = true ; };
1458
+ " Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100)" ,
1459
+ [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = true ; })) ;
1456
1460
}
1457
1461
1458
1462
TEST (DeclPrinter, TestFunctionParamUglified) {
0 commit comments