From 953ab8330c58d680fd4da4902f6a405b77963e42 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Thu, 14 Nov 2024 09:11:24 -0500 Subject: [PATCH] [FOLD] update tests --- test-files/golden-tests/requires-clause.adoc | 112 +++++++++++++-- test-files/golden-tests/requires-clause.html | 136 +++++++++++++++++-- test-files/golden-tests/requires-clause.xml | 29 +++- 3 files changed, 244 insertions(+), 33 deletions(-) diff --git a/test-files/golden-tests/requires-clause.adoc b/test-files/golden-tests/requires-clause.adoc index ba5f6254d..c22343359 100644 --- a/test-files/golden-tests/requires-clause.adoc +++ b/test-files/golden-tests/requires-clause.adoc @@ -9,7 +9,9 @@ [cols=2,separator=¦] |=== ¦Name ¦Description -¦xref:#A[`A`] ¦ +¦xref:#A-09[`A`] ¦ + +¦xref:#A-05[`A`] ¦ |=== === Functions @@ -34,14 +36,21 @@ ---- template void -xref:#f-05[pass:[f]]() requires (sizeof(T) == 4); +xref:#f-04[pass:[f]]() requires (sizeof(T) == 4); ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- template void -xref:#f-08[pass:[f]]() requires (sizeof(T) == 2); +xref:#f-0b[pass:[f]]() requires (sizeof(T) == 2); +---- + +[source,cpp,subs="verbatim,macros,-callouts"] +---- +template +void +xref:#f-02[pass:[f]]() requires (sizeof(U) == 2); ---- @@ -53,7 +62,7 @@ xref:#f-08[pass:[f]]() requires (sizeof(T) == 2); -[#f-05] +[#f-04] == f @@ -78,7 +87,7 @@ f() requires (sizeof(T) == 4); -[#f-08] +[#f-0b] == f @@ -102,6 +111,31 @@ f() requires (sizeof(T) == 2); + +[#f-02] +== f + + + +=== Synopsis + +Declared in `` + +[source,cpp,subs="verbatim,macros,-callouts"] +---- +template +void +f() requires (sizeof(U) == 2); +---- + + + + + + + + + [#g] == g @@ -115,14 +149,21 @@ f() requires (sizeof(T) == 2); ---- template requires (sizeof(T) == 4) void -xref:#g-0a[pass:[g]](); +xref:#g-00[pass:[g]](); ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- -template requires (sizeof(U) == 2) +template requires (sizeof(T) == 2) void -xref:#g-0c[pass:[g]](); +xref:#g-04[pass:[g]](); +---- + +[source,cpp,subs="verbatim,macros,-callouts"] +---- +template requires (sizeof(U) == 2) +void +xref:#g-03[pass:[g]](); ---- @@ -134,7 +175,7 @@ xref:#g-0c[pass:[g]](); -[#g-0a] +[#g-00] == g @@ -159,7 +200,32 @@ g(); -[#g-0c] +[#g-04] +== g + + + +=== Synopsis + +Declared in `` + +[source,cpp,subs="verbatim,macros,-callouts"] +---- +template requires (sizeof(T) == 2) +void +g(); +---- + + + + + + + + + + +[#g-03] == g @@ -170,7 +236,7 @@ Declared in `` [source,cpp,subs="verbatim,macros,-callouts"] ---- -template requires (sizeof(U) == 2) +template requires (sizeof(U) == 2) void g(); ---- @@ -184,7 +250,27 @@ g(); -[#A] +[#A-09] +== A + + + +=== Synopsis + +Declared in `` + +[source,cpp,subs="verbatim,macros,-callouts"] +---- +template requires (sizeof(T) == 2) +struct A; +---- + + + + + + +[#A-05] == A @@ -195,7 +281,7 @@ Declared in `` [source,cpp,subs="verbatim,macros,-callouts"] ---- -template requires (sizeof(U) == 2) +template requires (sizeof(U) == 2) struct A; ---- diff --git a/test-files/golden-tests/requires-clause.html b/test-files/golden-tests/requires-clause.html index 8798971f8..2fe2cd618 100644 --- a/test-files/golden-tests/requires-clause.html +++ b/test-files/golden-tests/requires-clause.html @@ -25,7 +25,14 @@

Types

- A + A + + + + + + + A @@ -77,7 +84,7 @@

Members

template
 void
 f();
-» more... +» more...

@@ -85,11 +92,19 @@

Members

template
 void
 f();
-» more... +» more... + + +

+ +
template
+void
+f();
+» more... -
+

Function f

@@ -118,7 +133,7 @@

Synopsis

-
+

Function f

@@ -146,6 +161,35 @@

Synopsis

+
+
+
+

Function f

+ +
+ +
+

Synopsis

+
+ +

+ + Declared in + +

+ +
+
+
+            template
+void
+f();
+        
+
+ + + +
@@ -160,19 +204,27 @@

Members

template requires (sizeof(T) == 4)
 void
 g();
-» more... +» more... + + +

+ +
template requires (sizeof(T) == 2)
+void
+g();
+» more...

-
template requires (sizeof(U) == 2)
+
template requires (sizeof(U) == 2)
 void
 g();
-» more... +» more...
-
+

Function g

@@ -201,7 +253,36 @@

Synopsis

-
+
+
+

Function g

+ +
+ +
+

Synopsis

+
+ +

+ + Declared in + +

+ +
+
+
+            template requires (sizeof(T) == 2)
+void
+g();
+        
+
+ + + + +
+

Function g

@@ -220,7 +301,7 @@

Synopsis

-            template requires (sizeof(U) == 2)
+            template requires (sizeof(U) == 2)
 void
 g();
         
@@ -230,7 +311,36 @@

Synopsis

-
+
+
+

Class A

+ +
+ +
+

Synopsis

+
+ +

+ + Declared in + +

+ +
+
+
+            template requires (sizeof(T) == 2)
+struct A;
+        
+
+ +
+
+ + +
+

Class A

@@ -249,7 +359,7 @@

Synopsis

-            template requires (sizeof(U) == 2)
+            template requires (sizeof(U) == 2)
 struct A;
         
diff --git a/test-files/golden-tests/requires-clause.xml b/test-files/golden-tests/requires-clause.xml index 2d3011f54..1cc086867 100644 --- a/test-files/golden-tests/requires-clause.xml +++ b/test-files/golden-tests/requires-clause.xml @@ -4,34 +4,49 @@ + -