Skip to content

Commit 2b7b9d4

Browse files
committed
Merge branch 'master' of github.com:doxygen/doxygen
2 parents d0fb515 + d547539 commit 2b7b9d4

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

src/xmlgen.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,14 @@ static void generateXMLForMember(const MemberDef *md,TextStream &ti,TextStream &
749749
{
750750
argsStr += "=0";
751751
}
752+
if (stripKeyword(typeStr, "=default", false))
753+
{
754+
argsStr += "=default";
755+
}
756+
if (stripKeyword(typeStr, "=delete", false))
757+
{
758+
argsStr += "=delete";
759+
}
752760
i=defStr.find("auto ");
753761
if (i!=-1)
754762
{

testing/108/class_c.xml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,49 @@
6363
</inbodydescription>
6464
<location file="108_trailing_return_types.cpp" line="14" column="18"/>
6565
</memberdef>
66+
<memberdef kind="function" id="class_c_1af38c9dfcbee6ef5ee3d56fe3992f57b5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
67+
<type><ref refid="class_c" kindref="compound">C</ref> &amp;</type>
68+
<definition>C &amp; C::operator=</definition>
69+
<argsstring>(C const &amp;)=delete</argsstring>
70+
<name>operator=</name>
71+
<qualifiedname>C::operator=</qualifiedname>
72+
<param>
73+
<type><ref refid="class_c" kindref="compound">C</ref> const &amp;</type>
74+
</param>
75+
<briefdescription>
76+
<para>Deleted copy operator. </para>
77+
</briefdescription>
78+
<detaileddescription>
79+
</detaileddescription>
80+
<inbodydescription>
81+
</inbodydescription>
82+
<location file="108_trailing_return_types.cpp" line="17" column="10"/>
83+
</memberdef>
84+
<memberdef kind="function" id="class_c_1a5103c38b9ec827c03fe5f0b63071846b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
85+
<type><ref refid="class_c" kindref="compound">C</ref> &amp;</type>
86+
<definition>C &amp; C::operator=</definition>
87+
<argsstring>(C &amp;&amp;)=default</argsstring>
88+
<name>operator=</name>
89+
<qualifiedname>C::operator=</qualifiedname>
90+
<param>
91+
<type><ref refid="class_c" kindref="compound">C</ref> &amp;&amp;</type>
92+
</param>
93+
<briefdescription>
94+
<para>Defaulted move operator. </para>
95+
</briefdescription>
96+
<detaileddescription>
97+
</detaileddescription>
98+
<inbodydescription>
99+
</inbodydescription>
100+
<location file="108_trailing_return_types.cpp" line="19" column="10"/>
101+
</memberdef>
66102
</sectiondef>
67103
<briefdescription>
68104
<para>A structure. </para>
69105
</briefdescription>
70106
<detaileddescription>
71107
</detaileddescription>
72-
<location file="108_trailing_return_types.cpp" line="5" column="1" bodyfile="108_trailing_return_types.cpp" bodystart="5" bodyend="15"/>
108+
<location file="108_trailing_return_types.cpp" line="5" column="1" bodyfile="108_trailing_return_types.cpp" bodystart="5" bodyend="20"/>
73109
<listofallmembers>
74110
<member refid="class_c_1a04dd9ca5948792c146024e91dc007446" prot="public" virt="virtual">
75111
<scope>C</scope>
@@ -87,6 +123,14 @@
87123
<scope>C</scope>
88124
<name>f_pure</name>
89125
</member>
126+
<member refid="class_c_1af38c9dfcbee6ef5ee3d56fe3992f57b5" prot="public" virt="non-virtual">
127+
<scope>C</scope>
128+
<name>operator=</name>
129+
</member>
130+
<member refid="class_c_1a5103c38b9ec827c03fe5f0b63071846b" prot="public" virt="non-virtual">
131+
<scope>C</scope>
132+
<name>operator=</name>
133+
</member>
90134
</listofallmembers>
91135
</compounddef>
92136
</doxygen>

testing/108_trailing_return_types.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ class C {
1212
virtual auto f_final() -> int final;
1313
/** @brief Final and override. */
1414
virtual auto f_override_final() -> int override final;
15+
16+
/** @brief Deleted copy operator. */
17+
auto operator=(C const&) -> C& = delete;
18+
/** @brief Defaulted move operator. */
19+
auto operator=(C&&) -> C& = default;
1520
};

0 commit comments

Comments
 (0)