@@ -427,7 +427,7 @@ TEST_F(TargetDeclTest, Types) {
427
427
[[auto]] X = S{};
428
428
)cpp" ;
429
429
// FIXME: deduced type missing in AST. https://llvm.org/PR42914
430
- EXPECT_DECLS (" AutoTypeLoc" );
430
+ EXPECT_DECLS (" AutoTypeLoc" , );
431
431
432
432
Code = R"cpp(
433
433
template <typename... E>
@@ -727,13 +727,13 @@ TEST_F(TargetDeclTest, BuiltinTemplates) {
727
727
template <class T, int N>
728
728
using make_integer_sequence = [[__make_integer_seq]]<integer_sequence, T, N>;
729
729
)cpp" ;
730
- EXPECT_DECLS (" TemplateSpecializationTypeLoc" );
730
+ EXPECT_DECLS (" TemplateSpecializationTypeLoc" , );
731
731
732
732
Code = R"cpp(
733
733
template <int N, class... Pack>
734
734
using type_pack_element = [[__type_pack_element]]<N, Pack...>;
735
735
)cpp" ;
736
- EXPECT_DECLS (" TemplateSpecializationTypeLoc" );
736
+ EXPECT_DECLS (" TemplateSpecializationTypeLoc" , );
737
737
}
738
738
739
739
TEST_F (TargetDeclTest, MemberOfTemplate) {
@@ -1018,7 +1018,7 @@ TEST_F(TargetDeclTest, DependentTypes) {
1018
1018
typedef typename waldo<N - 1>::type::[[next]] type;
1019
1019
};
1020
1020
)cpp" ;
1021
- EXPECT_DECLS (" DependentNameTypeLoc" );
1021
+ EXPECT_DECLS (" DependentNameTypeLoc" , );
1022
1022
1023
1023
// Similar to above but using mutually recursive templates.
1024
1024
Code = R"cpp(
@@ -1035,7 +1035,7 @@ TEST_F(TargetDeclTest, DependentTypes) {
1035
1035
using type = typename even<N - 1>::type::[[next]];
1036
1036
};
1037
1037
)cpp" ;
1038
- EXPECT_DECLS (" DependentNameTypeLoc" );
1038
+ EXPECT_DECLS (" DependentNameTypeLoc" , );
1039
1039
}
1040
1040
1041
1041
TEST_F (TargetDeclTest, TypedefCascade) {
@@ -1263,14 +1263,14 @@ TEST_F(TargetDeclTest, ObjC) {
1263
1263
+ ([[id]])sharedInstance;
1264
1264
@end
1265
1265
)cpp" ;
1266
- EXPECT_DECLS (" TypedefTypeLoc" );
1266
+ EXPECT_DECLS (" TypedefTypeLoc" , );
1267
1267
1268
1268
Code = R"cpp(
1269
1269
@interface Foo
1270
1270
+ ([[instancetype]])sharedInstance;
1271
1271
@end
1272
1272
)cpp" ;
1273
- EXPECT_DECLS (" TypedefTypeLoc" );
1273
+ EXPECT_DECLS (" TypedefTypeLoc" , );
1274
1274
}
1275
1275
1276
1276
class FindExplicitReferencesTest : public ::testing::Test {
0 commit comments