-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed implementation, added test case
- Loading branch information
Showing
3 changed files
with
203 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
<?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="struct_foo" kind="struct" language="C++" prot="public"> | ||
<compoundname>Foo</compoundname> | ||
<sectiondef kind="public-func"> | ||
<memberdef kind="function" id="struct_foo_1a4f9767677227174b2a9684b92e36cba7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> | ||
<type>void</type> | ||
<definition>void Foo::foo</definition> | ||
<argsstring>(float value)</argsstring> | ||
<name>foo</name> | ||
<param> | ||
<type>float</type> | ||
<declname>value</declname> | ||
</param> | ||
<briefdescription> | ||
<para>Float. </para> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<inbodydescription> | ||
</inbodydescription> | ||
<location file="075_argmatch.cpp" line="5" column="1" bodyfile="075_argmatch.cpp" bodystart="14" bodyend="14"/> | ||
</memberdef> | ||
<memberdef kind="function" id="struct_foo_1a3b1460a8784e5cc8156899a04df08b94" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> | ||
<type>void</type> | ||
<definition>void Foo::foo</definition> | ||
<argsstring>(unsigned value)</argsstring> | ||
<name>foo</name> | ||
<param> | ||
<type>unsigned</type> | ||
<declname>value</declname> | ||
</param> | ||
<briefdescription> | ||
<para>Unsigned int. </para> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<inbodydescription> | ||
</inbodydescription> | ||
<location file="075_argmatch.cpp" line="6" column="1" bodyfile="075_argmatch.cpp" bodystart="17" bodyend="17"/> | ||
</memberdef> | ||
<memberdef kind="function" id="struct_foo_1a87f5be128245c4a16b25500fe6ae2fd1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> | ||
<type>void</type> | ||
<definition>void Foo::foo</definition> | ||
<argsstring>(unsigned long)</argsstring> | ||
<name>foo</name> | ||
<param> | ||
<type>unsigned long</type> | ||
</param> | ||
<briefdescription> | ||
<para>Unnamed unsigned long. </para> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<inbodydescription> | ||
</inbodydescription> | ||
<location file="075_argmatch.cpp" line="7" column="1" bodyfile="075_argmatch.cpp" bodystart="20" bodyend="20"/> | ||
</memberdef> | ||
<memberdef kind="function" id="struct_foo_1adc1cd4494f8a556d5bf6cb78409e3e68" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> | ||
<type>void</type> | ||
<definition>void Foo::foo</definition> | ||
<argsstring>(signed long)</argsstring> | ||
<name>foo</name> | ||
<param> | ||
<type>signed long</type> | ||
</param> | ||
<briefdescription> | ||
<para>Unnamed signed long. </para> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<inbodydescription> | ||
</inbodydescription> | ||
<location file="075_argmatch.cpp" line="8" column="1" bodyfile="075_argmatch.cpp" bodystart="23" bodyend="23"/> | ||
</memberdef> | ||
<memberdef kind="function" id="struct_foo_1a0baba36cdd24740c6e39d5641e30a0fe" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> | ||
<type>void</type> | ||
<definition>void Foo::foo</definition> | ||
<argsstring>(const struct Foo)</argsstring> | ||
<name>foo</name> | ||
<param> | ||
<type>const struct <ref refid="struct_foo" kindref="compound">Foo</ref></type> | ||
</param> | ||
<briefdescription> | ||
<para>Unnamed struct foo. </para> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<inbodydescription> | ||
</inbodydescription> | ||
<location file="075_argmatch.cpp" line="9" column="1" bodyfile="075_argmatch.cpp" bodystart="26" bodyend="26"/> | ||
</memberdef> | ||
<memberdef kind="function" id="struct_foo_1abeaaeb54ad61db26205c06927968845f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> | ||
<type>void</type> | ||
<definition>void Foo::foo</definition> | ||
<argsstring>(const char *const, const double param2)</argsstring> | ||
<name>foo</name> | ||
<param> | ||
<type>const char * const</type> | ||
</param> | ||
<param> | ||
<type>const double</type> | ||
<declname>param2</declname> | ||
</param> | ||
<briefdescription> | ||
<para>Unnamed const pointer. </para> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<inbodydescription> | ||
</inbodydescription> | ||
<location file="075_argmatch.cpp" line="10" column="1"/> | ||
</memberdef> | ||
</sectiondef> | ||
<briefdescription> | ||
<para><ref refid="struct_foo" kindref="compound">Foo</ref>. </para> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<location file="075_argmatch.cpp" line="4" column="1" bodyfile="075_argmatch.cpp" bodystart="4" bodyend="11"/> | ||
<listofallmembers> | ||
<member refid="struct_foo_1a4f9767677227174b2a9684b92e36cba7" prot="public" virt="non-virtual"> | ||
<scope>Foo</scope> | ||
<name>foo</name> | ||
</member> | ||
<member refid="struct_foo_1a3b1460a8784e5cc8156899a04df08b94" prot="public" virt="non-virtual"> | ||
<scope>Foo</scope> | ||
<name>foo</name> | ||
</member> | ||
<member refid="struct_foo_1a87f5be128245c4a16b25500fe6ae2fd1" prot="public" virt="non-virtual"> | ||
<scope>Foo</scope> | ||
<name>foo</name> | ||
</member> | ||
<member refid="struct_foo_1adc1cd4494f8a556d5bf6cb78409e3e68" prot="public" virt="non-virtual"> | ||
<scope>Foo</scope> | ||
<name>foo</name> | ||
</member> | ||
<member refid="struct_foo_1a0baba36cdd24740c6e39d5641e30a0fe" prot="public" virt="non-virtual"> | ||
<scope>Foo</scope> | ||
<name>foo</name> | ||
</member> | ||
<member refid="struct_foo_1abeaaeb54ad61db26205c06927968845f" prot="public" virt="non-virtual"> | ||
<scope>Foo</scope> | ||
<name>foo</name> | ||
</member> | ||
</listofallmembers> | ||
</compounddef> | ||
</doxygen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// objective: test argument matching in particular for unnamed types | ||
// check: struct_foo.xml | ||
/** @brief Foo */ | ||
struct Foo { | ||
void foo(float value); | ||
void foo(unsigned value); | ||
void foo(unsigned long); | ||
void foo(signed long); | ||
void foo(const struct Foo); | ||
void foo(const char * const, const double param2); | ||
}; | ||
|
||
/** @brief Float */ | ||
void Foo::foo(float) {} | ||
|
||
/** @brief Unsigned int */ | ||
void Foo::foo(unsigned value) {} | ||
|
||
/** @brief Unnamed unsigned long */ | ||
void Foo::foo(unsigned long) {} | ||
|
||
/** @brief Unnamed signed long */ | ||
void Foo::foo(signed long) {} | ||
|
||
/** @brief Unnamed struct foo */ | ||
void Foo::foo(const struct Foo) {} | ||
|
||
/** @brief Unnamed const pointer */ | ||
void Foo::foo(const char * const, const double param2); | ||
|