From 0d046cb042149ef19830b19dc241614127573d5f Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Wed, 15 Jan 2025 16:06:32 -0300 Subject: [PATCH] support private aliases in public context #test fix #794 --- .../metadata/class-private-alias.adoc | 59 ++++++++++++++ .../metadata/class-private-alias.cpp | 6 ++ .../metadata/class-private-alias.html | 76 +++++++++++++++++++ .../metadata/class-private-alias.xml | 15 ++++ 4 files changed, 156 insertions(+) create mode 100644 test-files/golden-tests/metadata/class-private-alias.adoc create mode 100644 test-files/golden-tests/metadata/class-private-alias.cpp create mode 100644 test-files/golden-tests/metadata/class-private-alias.html create mode 100644 test-files/golden-tests/metadata/class-private-alias.xml diff --git a/test-files/golden-tests/metadata/class-private-alias.adoc b/test-files/golden-tests/metadata/class-private-alias.adoc new file mode 100644 index 000000000..dd662d67a --- /dev/null +++ b/test-files/golden-tests/metadata/class-private-alias.adoc @@ -0,0 +1,59 @@ += Reference +:mrdocs: + +[#index] +== Global namespace + + +=== Types + +[cols=1] +|=== +| Name + +| <> +|=== + +[#S] +== S + + +=== Synopsis + + +Declared in `<class‐private‐alias.cpp>` + +[source,cpp,subs="verbatim,replacements,macros,-callouts"] +---- +class S; +---- + +=== Member Functions + +[cols=1] +|=== +| Name + +| <> +|=== + + + +[#S-f] +== <>::f + + +=== Synopsis + + +Declared in `<class‐private‐alias.cpp>` + +[source,cpp,subs="verbatim,replacements,macros,-callouts"] +---- +void +f(type); +---- + + + +[.small]#Created with https://www.mrdocs.com[MrDocs]# diff --git a/test-files/golden-tests/metadata/class-private-alias.cpp b/test-files/golden-tests/metadata/class-private-alias.cpp new file mode 100644 index 000000000..f2e5d9eb0 --- /dev/null +++ b/test-files/golden-tests/metadata/class-private-alias.cpp @@ -0,0 +1,6 @@ +class S +{ + using type = int; +public: + void f(type) {} +}; diff --git a/test-files/golden-tests/metadata/class-private-alias.html b/test-files/golden-tests/metadata/class-private-alias.html new file mode 100644 index 000000000..ca7a760f5 --- /dev/null +++ b/test-files/golden-tests/metadata/class-private-alias.html @@ -0,0 +1,76 @@ + + +Reference + + +
+

Reference

+
+
+

Global namespace

+
+

Types

+ + + + + + + + + + +
Name
S
+
+
+
+

S

+
+
+

Synopsis

+
+Declared in <class-private-alias.cpp>
+
+
+class S;
+
+
+
+

Member Functions

+ + + + + + + + + + +
Name
f
+ + +
+
+
+

S::f

+
+
+

Synopsis

+
+Declared in <class-private-alias.cpp>
+
+
+void
+f(type);
+
+
+
+
+ +
+
+

Created with MrDocs

+
+ + \ No newline at end of file diff --git a/test-files/golden-tests/metadata/class-private-alias.xml b/test-files/golden-tests/metadata/class-private-alias.xml new file mode 100644 index 000000000..983b772af --- /dev/null +++ b/test-files/golden-tests/metadata/class-private-alias.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + +