diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-26 11:53:15 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-26 11:53:15 (GMT) |
commit | d03868616adf46369b0e208a093493f71b3f98b0 (patch) | |
tree | e471db0d12a248534a84609b96971cf23b71a806 /testing | |
parent | 1f4a3ab39a467b2e5e0159f95ed10cb9830d5011 (diff) | |
parent | f5ed5051c0754f9c7e0e5556114e173016d7f984 (diff) | |
download | Doxygen-d03868616adf46369b0e208a093493f71b3f98b0.zip Doxygen-d03868616adf46369b0e208a093493f71b3f98b0.tar.gz Doxygen-d03868616adf46369b0e208a093493f71b3f98b0.tar.bz2 |
Merge branch 'xml-namespace-members-in-file-scope' of https://github.com/mosra/doxygen into mosra-xml-namespace-members-in-file-scope
Diffstat (limited to 'testing')
4 files changed, 88 insertions, 0 deletions
diff --git a/testing/072/072__no__xml__namespace__members__in__file__scope_8h.xml b/testing/072/072__no__xml__namespace__members__in__file__scope_8h.xml new file mode 100644 index 0000000..0245802 --- /dev/null +++ b/testing/072/072__no__xml__namespace__members__in__file__scope_8h.xml @@ -0,0 +1,12 @@ +<?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="072__no__xml__namespace__members__in__file__scope_8h" kind="file" language="C++"> + <compoundname>072_no_xml_namespace_members_in_file_scope.h</compoundname> + <innernamespace refid="namespace_namespace">Namespace</innernamespace> + <briefdescription> + </briefdescription> + <detaileddescription> + </detaileddescription> + <location file="072_no_xml_namespace_members_in_file_scope.h"/> + </compounddef> +</doxygen> diff --git a/testing/072_no_xml_namespace_members_in_file_scope.h b/testing/072_no_xml_namespace_members_in_file_scope.h new file mode 100644 index 0000000..fb1afab --- /dev/null +++ b/testing/072_no_xml_namespace_members_in_file_scope.h @@ -0,0 +1,16 @@ +// objective: test that namespace members are not put to file docs by default +// check: 072__no__xml__namespace__members__in__file__scope_8h.xml + +namespace Namespace { + +/** +@brief A function + +Detailed documentation. +*/ +void foo(); + +/** @brief An enum */ +enum class Enum {}; + +} diff --git a/testing/073/073__xml__namespace__members__in__file__scope_8h.xml b/testing/073/073__xml__namespace__members__in__file__scope_8h.xml new file mode 100644 index 0000000..e8637a2 --- /dev/null +++ b/testing/073/073__xml__namespace__members__in__file__scope_8h.xml @@ -0,0 +1,43 @@ +<?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="073__xml__namespace__members__in__file__scope_8h" kind="file" language="C++"> + <compoundname>073_xml_namespace_members_in_file_scope.h</compoundname> + <innernamespace refid="namespace_namespace">Namespace</innernamespace> + <sectiondef kind="enum"> + <memberdef kind="enum" id="073__xml__namespace__members__in__file__scope_8h_1add172b93283b1ab7612c3ca6cc5dcfea" prot="public" static="no" strong="yes"> + <type/> + <name>Enum</name> + <briefdescription> + <para>An enum. </para> + </briefdescription> + <detaileddescription> + </detaileddescription> + <inbodydescription> + </inbodydescription> + <location file="073_xml_namespace_members_in_file_scope.h" line="15" column="1" bodyfile="073_xml_namespace_members_in_file_scope.h" bodystart="15" bodyend="15"/> + </memberdef> + </sectiondef> + <sectiondef kind="func"> + <memberdef kind="function" id="073__xml__namespace__members__in__file__scope_8h_1a0f1fe1a972c7c4196988a1bdde63ec77" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> + <type>void</type> + <definition>void Namespace::foo</definition> + <argsstring>()</argsstring> + <name>foo</name> + <briefdescription> + <para>A function. </para> + </briefdescription> + <detaileddescription> + <para>Detailed documentation. </para> + </detaileddescription> + <inbodydescription> + </inbodydescription> + <location file="073_xml_namespace_members_in_file_scope.h" line="12" column="1"/> + </memberdef> + </sectiondef> + <briefdescription> + </briefdescription> + <detaileddescription> + </detaileddescription> + <location file="073_xml_namespace_members_in_file_scope.h"/> + </compounddef> +</doxygen> diff --git a/testing/073_xml_namespace_members_in_file_scope.h b/testing/073_xml_namespace_members_in_file_scope.h new file mode 100644 index 0000000..3f37025 --- /dev/null +++ b/testing/073_xml_namespace_members_in_file_scope.h @@ -0,0 +1,17 @@ +// objective: test that namespace members are put to file docs when enabled +// check: 073__xml__namespace__members__in__file__scope_8h.xml +// config: XML_NAMESPACE_MEMBERS_IN_FILE_SCOPE = YES + +namespace Namespace { + +/** +@brief A function + +Detailed documentation. +*/ +void foo(); + +/** @brief An enum */ +enum class Enum {}; + +} |