@@ -825,7 +825,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
825
825
{
826
826
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
827
827
" $s1a2f42usyx_q_txQp_tq_Rhzr0_lF" , *m_swift_ts);
828
- ASSERT_TRUE (maybe_signature.hasValue ());
828
+ ASSERT_TRUE (maybe_signature.has_value ());
829
829
auto s = *maybe_signature;
830
830
ASSERT_EQ (s.generic_params .size (), 2 );
831
831
ASSERT_EQ (s.generic_params [0 ].depth , 0 );
@@ -838,7 +838,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
838
838
{
839
839
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
840
840
" $s1a1SV1f2ts1vqd_1_qd__qd__Qp_qd_0_tr1_lF" , *m_swift_ts);
841
- ASSERT_TRUE (maybe_signature.hasValue ());
841
+ ASSERT_TRUE (maybe_signature.has_value ());
842
842
auto s = *maybe_signature;
843
843
ASSERT_EQ (s.generic_params .size (), 3 );
844
844
ASSERT_EQ (s.generic_params [0 ].depth , 1 );
@@ -859,7 +859,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
859
859
// define swiftcc void @"$s1a2f12tsyxxQp_tlF"(%swift.opaque** noalias nocapture %0, i64 %1, %swift.type** %T)
860
860
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
861
861
" $s1a2f12tsyxxQp_tlF" , *m_swift_ts);
862
- ASSERT_TRUE (maybe_signature.hasValue ());
862
+ ASSERT_TRUE (maybe_signature.has_value ());
863
863
auto s = *maybe_signature;
864
864
ASSERT_EQ (s.generic_params .size (), 1 );
865
865
ASSERT_EQ (s.pack_expansions .size (), 1 );
@@ -873,7 +873,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
873
873
// define swiftcc void @"$s1a2f22us2vsyxxQp_q_q_Qptr0_lF"(%swift.opaque** noalias nocapture %0, %swift.opaque** noalias nocapture %1, i64 %2, i64 %3, %swift.type** %U, %swift.type** %V)
874
874
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
875
875
" $s1a2f22us2vsyxxQp_q_q_Qptr0_lF" , *m_swift_ts);
876
- ASSERT_TRUE (maybe_signature.hasValue ());
876
+ ASSERT_TRUE (maybe_signature.has_value ());
877
877
auto s = *maybe_signature;
878
878
ASSERT_EQ (s.generic_params .size (), 2 );
879
879
ASSERT_EQ (s.pack_expansions .size (), 2 );
@@ -890,7 +890,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
890
890
891
891
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
892
892
" $s1a2f32ts05more_B0yxxQp_xxQptlF" , *m_swift_ts);
893
- ASSERT_TRUE (maybe_signature.hasValue ());
893
+ ASSERT_TRUE (maybe_signature.has_value ());
894
894
auto s = *maybe_signature;
895
895
ASSERT_EQ (s.generic_params .size (), 1 );
896
896
ASSERT_EQ (s.pack_expansions .size (), 2 );
@@ -906,7 +906,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
906
906
907
907
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
908
908
" $s1a2f42usyx_q_txQp_tq_Rhzr0_lF" , *m_swift_ts);
909
- ASSERT_TRUE (maybe_signature.hasValue ());
909
+ ASSERT_TRUE (maybe_signature.has_value ());
910
910
auto s = *maybe_signature;
911
911
ASSERT_EQ (s.generic_params .size (), 2 );
912
912
ASSERT_EQ (s.pack_expansions .size (), 1 );
@@ -922,7 +922,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
922
922
923
923
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
924
924
" $s1a2f52tsyx_q_txQp_tr0_lF" , *m_swift_ts);
925
- ASSERT_TRUE (maybe_signature.hasValue ());
925
+ ASSERT_TRUE (maybe_signature.has_value ());
926
926
auto s = *maybe_signature;
927
927
ASSERT_EQ (s.generic_params .size (), 2 );
928
928
ASSERT_EQ (s.pack_expansions .size (), 1 );
@@ -939,7 +939,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
939
939
940
940
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
941
941
" $s1a2f62us05more_B02vsyxxQp_xxQpq_q_Qptr0_lF" , *m_swift_ts);
942
- ASSERT_TRUE (maybe_signature.hasValue ());
942
+ ASSERT_TRUE (maybe_signature.has_value ());
943
943
auto s = *maybe_signature;
944
944
ASSERT_EQ (s.generic_params .size (), 2 );
945
945
ASSERT_EQ (s.pack_expansions .size (), 3 );
@@ -959,7 +959,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
959
959
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
960
960
" $s1a2f72us2vs05more_B00d1_C0yxxQp_q_q_QpxxQpq_q_Qptr0_lF" ,
961
961
*m_swift_ts);
962
- ASSERT_TRUE (maybe_signature.hasValue ());
962
+ ASSERT_TRUE (maybe_signature.has_value ());
963
963
auto s = *maybe_signature;
964
964
ASSERT_EQ (s.generic_params .size (), 2 );
965
965
ASSERT_EQ (s.pack_expansions .size (), 4 );
@@ -981,7 +981,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
981
981
// }
982
982
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
983
983
" $s1t1CC1fyyqd__lF" , *m_swift_ts);
984
- ASSERT_TRUE (maybe_signature.hasValue ());
984
+ ASSERT_TRUE (maybe_signature.has_value ());
985
985
auto s = *maybe_signature;
986
986
// "U" does not count.
987
987
ASSERT_EQ (s.dependent_generic_param_count , 1 );
@@ -997,7 +997,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
997
997
// }
998
998
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
999
999
" $s1t1CC1fyyx_qd__tlF" , *m_swift_ts);
1000
- ASSERT_TRUE (maybe_signature.hasValue ());
1000
+ ASSERT_TRUE (maybe_signature.has_value ());
1001
1001
auto s = *maybe_signature;
1002
1002
ASSERT_EQ (s.dependent_generic_param_count , 1 );
1003
1003
ASSERT_EQ (s.generic_params .size (), 2 );
@@ -1010,6 +1010,6 @@ TEST_F(TestTypeSystemSwiftTypeRef, GenericSignature) {
1010
1010
// public func f() {}
1011
1011
auto maybe_signature = SwiftLanguageRuntime::GetGenericSignature (
1012
1012
" $s1t1fyyF" , *m_swift_ts);
1013
- ASSERT_FALSE (maybe_signature.hasValue ());
1013
+ ASSERT_FALSE (maybe_signature.has_value ());
1014
1014
}
1015
1015
}
0 commit comments