summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-31 15:39:36 (GMT)
committerGitHub <noreply@github.com>2018-12-31 15:39:36 (GMT)
commitb55a9aba2c5b654af4ad94f62321e3afcff050f1 (patch)
tree33702b0801f7d9c60abb959b2cc23b541ff47fc7 /testing
parent36b69fbd6ada3764daad8c7c0b880b6bb3784a48 (diff)
parenteae1d579a33207dfd3e7521f886a411a0b247329 (diff)
downloadDoxygen-b55a9aba2c5b654af4ad94f62321e3afcff050f1.zip
Doxygen-b55a9aba2c5b654af4ad94f62321e3afcff050f1.tar.gz
Doxygen-b55a9aba2c5b654af4ad94f62321e3afcff050f1.tar.bz2
Merge pull request #6713 from mosra/testing
Test suite and developer-facing improvements
Diffstat (limited to 'testing')
-rw-r--r--testing/074/namespacens.xml81
-rw-r--r--testing/074/struct_foo.xml22
-rw-r--r--testing/074_ref.cpp25
-rwxr-xr-x[-rw-r--r--]testing/runtests.py0
4 files changed, 117 insertions, 11 deletions
diff --git a/testing/074/namespacens.xml b/testing/074/namespacens.xml
new file mode 100644
index 0000000..495e550
--- /dev/null
+++ b/testing/074/namespacens.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="">
+ <compounddef id="namespacens" kind="namespace" language="C++">
+ <compoundname>ns</compoundname>
+ <sectiondef kind="func">
+ <memberdef kind="function" id="namespacens_1afd2e8a8437eff630f52a452ea6dc6e82" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+ <type>int</type>
+ <definition>int ns::operator""_op</definition>
+ <argsstring>(unsigned long long)</argsstring>
+ <name>operator""_op</name>
+ <param>
+ <type>unsigned long long</type>
+ </param>
+ <briefdescription>
+ <para>An operator. </para>
+ </briefdescription>
+ <detaileddescription>
+ </detaileddescription>
+ <inbodydescription>
+ </inbodydescription>
+ <location file="074_ref.cpp" line="66" column="1"/>
+ </memberdef>
+ <memberdef kind="function" id="namespacens_1a47f70e51e66b81b8383a4e2da66f1e09" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+ <type>int</type>
+ <definition>int ns::operator""_oq</definition>
+ <argsstring>(unsigned long long)</argsstring>
+ <name>operator""_oq</name>
+ <param>
+ <type>unsigned long long</type>
+ </param>
+ <briefdescription>
+ <para>Another operator. </para>
+ </briefdescription>
+ <detaileddescription>
+ </detaileddescription>
+ <inbodydescription>
+ </inbodydescription>
+ <location file="074_ref.cpp" line="69" column="1"/>
+ </memberdef>
+ <memberdef kind="function" id="namespacens_1aaa9eb8a7b40d4ed0edbe5e163b4e6e8d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+ <type>void</type>
+ <definition>void ns::foo</definition>
+ <argsstring>(std::initializer_list&lt; int * &gt;)</argsstring>
+ <name>foo</name>
+ <param>
+ <type>std::initializer_list&lt; int * &gt;</type>
+ </param>
+ <briefdescription>
+ <para>Function. </para>
+ </briefdescription>
+ <detaileddescription>
+ </detaileddescription>
+ <inbodydescription>
+ </inbodydescription>
+ <location file="074_ref.cpp" line="72" column="1"/>
+ </memberdef>
+ </sectiondef>
+ <briefdescription>
+<para>A namespace. </para>
+ </briefdescription>
+ <detaileddescription>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>Link to an UDL w/o spaces: <ref refid="namespacens_1afd2e8a8437eff630f52a452ea6dc6e82" kindref="member">operator""_op</ref></para>
+ </listitem>
+ <listitem>
+ <para>Link to an UDL with spaces: <ref refid="namespacens_1a47f70e51e66b81b8383a4e2da66f1e09" kindref="member">operator""_oq</ref></para>
+ </listitem>
+ <listitem>
+ <para>Link to a function with spaces: <ref refid="namespacens_1aaa9eb8a7b40d4ed0edbe5e163b4e6e8d" kindref="member">foo(std::initializer_list&lt; int* &gt;)</ref></para>
+ </listitem>
+ <listitem>
+ <para>Link to a function w/o spaces: <ref refid="namespacens_1aaa9eb8a7b40d4ed0edbe5e163b4e6e8d" kindref="member">foo(std::initializer_list&lt;int*&gt;)</ref> </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </detaileddescription>
+ <location file="074_ref.cpp" line="63" column="1"/>
+ </compounddef>
+</doxygen>
diff --git a/testing/074/struct_foo.xml b/testing/074/struct_foo.xml
index 56a497a..c49fbaa 100644
--- a/testing/074/struct_foo.xml
+++ b/testing/074/struct_foo.xml
@@ -15,7 +15,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="16" column="1"/>
+ <location file="074_ref.cpp" line="20" column="1"/>
</memberdef>
<memberdef kind="function" id="struct_foo_1a279debd94d894223fa8468933e2d6188" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="struct_foo" kindref="compound">Foo</ref> &amp;</type>
@@ -33,7 +33,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="27" column="1"/>
+ <location file="074_ref.cpp" line="31" column="1"/>
</memberdef>
<memberdef kind="function" id="struct_foo_1a48bcc3de9b2f1ad09a3518a0c9f0da61" prot="public" static="no" const="yes" explicit="no" inline="no" virt="non-virtual">
<type>const <ref refid="struct_foo" kindref="compound">Foo</ref> &amp;</type>
@@ -51,7 +51,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="30" column="1"/>
+ <location file="074_ref.cpp" line="34" column="1"/>
</memberdef>
<memberdef kind="function" id="struct_foo_1a3a41dcf8c53f777d50676ea28400a640" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type>int</type>
@@ -69,7 +69,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="33" column="1"/>
+ <location file="074_ref.cpp" line="37" column="1"/>
</memberdef>
<memberdef kind="function" id="struct_foo_1ae3c9c1f33cdb8b932c6eb104660a262b" prot="public" static="no" const="yes" explicit="no" inline="no" virt="non-virtual">
<type>int</type>
@@ -87,7 +87,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="36" column="1"/>
+ <location file="074_ref.cpp" line="40" column="1"/>
</memberdef>
<memberdef kind="function" id="struct_foo_1aa20bd44b1bb87a652ac65170ddfa1a5a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="struct_foo" kindref="compound">Foo</ref> &amp;</type>
@@ -105,7 +105,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="39" column="1"/>
+ <location file="074_ref.cpp" line="43" column="1"/>
</memberdef>
<memberdef kind="function" id="struct_foo_1aa20bd44b1bb87a652ac65170ddfa1a5a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="struct_foo" kindref="compound">Foo</ref> &amp;</type>
@@ -123,7 +123,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="42" column="1"/>
+ <location file="074_ref.cpp" line="46" column="1"/>
</memberdef>
<memberdef kind="function" id="struct_foo_1a0514e1f5b30cbf77e1c39d7aba308656" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type>int *</type>
@@ -141,7 +141,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="45" column="1"/>
+ <location file="074_ref.cpp" line="49" column="1"/>
</memberdef>
<memberdef kind="function" id="struct_foo_1a978acd73e910ce56cc169ebec8736669" prot="public" static="no" const="yes" explicit="no" inline="no" virt="non-virtual">
<type>
@@ -157,7 +157,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="48" column="1"/>
+ <location file="074_ref.cpp" line="52" column="1"/>
</memberdef>
</sectiondef>
<sectiondef kind="public-static-func">
@@ -206,7 +206,7 @@
</detaileddescription>
<inbodydescription>
</inbodydescription>
- <location file="074_ref.cpp" line="24" column="1"/>
+ <location file="074_ref.cpp" line="28" column="1"/>
</memberdef>
</sectiondef>
<briefdescription>
@@ -240,7 +240,7 @@
</simplesect>
</para>
</detaileddescription>
- <location file="074_ref.cpp" line="14" column="1" bodyfile="074_ref.cpp" bodystart="14" bodyend="49"/>
+ <location file="074_ref.cpp" line="18" column="1" bodyfile="074_ref.cpp" bodystart="18" bodyend="53"/>
<listofallmembers>
<member refid="struct_foo_1a5c036d1b3561a0e1beffe8c6799a4276" prot="public" virt="non-virtual">
<scope>Foo</scope>
diff --git a/testing/074_ref.cpp b/testing/074_ref.cpp
index 141e2b4..d283907 100644
--- a/testing/074_ref.cpp
+++ b/testing/074_ref.cpp
@@ -1,5 +1,9 @@
// objective: test \ref command in combination with const
// check: struct_foo.xml
+// check: namespacens.xml
+
+#include <initializer_list>
+
/** @brief Foo class.
*
* @see @ref Foo::Foo() constructor for details.
@@ -47,3 +51,24 @@ struct Foo {
/** @brief Fun with itself */
Foo fun() const;
};
+
+/**
+@brief A namespace
+
+- Link to an UDL w/o spaces: @link operator""_op @endlink
+- Link to an UDL with spaces: @link operator""_oq @endlink
+- Link to a function with spaces: @ref foo(std::initializer_list< int* >)
+- Link to a function w/o spaces: @ref foo(std::initializer_list<int*>)
+*/
+namespace ns {
+
+/** @brief An operator */
+int operator""_op(unsigned long long);
+
+/** @brief Another operator */
+int operator "" _oq(unsigned long long);
+
+/** @brief Function */
+void foo(std::initializer_list<int*>);
+
+}
diff --git a/testing/runtests.py b/testing/runtests.py
index 452c36e..452c36e 100644..100755
--- a/testing/runtests.py
+++ b/testing/runtests.py