@@ -1391,7 +1391,7 @@ TEST(DeclPrinter, TestCXXRecordDecl17) {
1391
1391
" struct X {};"
1392
1392
" Z<X> A;" ,
1393
1393
" A" , " Z<X> A" ));
1394
- [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1394
+ ( void ) [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1395
1395
}
1396
1396
1397
1397
TEST (DeclPrinter, TestCXXRecordDecl18) {
@@ -1402,7 +1402,7 @@ TEST(DeclPrinter, TestCXXRecordDecl18) {
1402
1402
" struct Y{};"
1403
1403
" Y<Z<X>, 2> B;" ,
1404
1404
" B" , " Y<Z<X>, 2> B" ));
1405
- [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1405
+ ( void ) [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1406
1406
}
1407
1407
1408
1408
TEST (DeclPrinter, TestCXXRecordDecl19) {
@@ -1413,7 +1413,7 @@ TEST(DeclPrinter, TestCXXRecordDecl19) {
1413
1413
" struct Y{};"
1414
1414
" Y<Z<X>, 2> B;" ,
1415
1415
" B" , " Y<Z<X>, 2> B" ));
1416
- [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = true ; };
1416
+ ( void ) [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = true ; };
1417
1417
}
1418
1418
TEST (DeclPrinter, TestCXXRecordDecl20) {
1419
1419
ASSERT_TRUE (PrintedDeclCXX98Matches (
@@ -1432,7 +1432,7 @@ TEST(DeclPrinter, TestCXXRecordDecl20) {
1432
1432
" Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100);" ,
1433
1433
" nestedInstance" ,
1434
1434
" Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100)" ));
1435
- [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1435
+ ( void ) [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false ; };
1436
1436
}
1437
1437
1438
1438
TEST (DeclPrinter, TestCXXRecordDecl21) {
@@ -1452,7 +1452,7 @@ TEST(DeclPrinter, TestCXXRecordDecl21) {
1452
1452
" Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100);" ,
1453
1453
" nestedInstance" ,
1454
1454
" Outer<Inner<int, 10>, 5>::NestedStruct nestedInstance(100)" ));
1455
- [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = true ; };
1455
+ ( void ) [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = true ; };
1456
1456
}
1457
1457
1458
1458
TEST (DeclPrinter, TestFunctionParamUglified) {
0 commit comments