diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-24 13:08:31 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-24 13:08:31 (GMT) |
commit | 0a384496099569c2a675a94c5af06ad83cccb247 (patch) | |
tree | ef37f86ee8e33679e152464bd34e92b97bcc6347 /testing/075_argmatch.cpp | |
parent | ba8e4ea594cea3554e6e6f75fa0af67deb85db47 (diff) | |
download | Doxygen-0a384496099569c2a675a94c5af06ad83cccb247.zip Doxygen-0a384496099569c2a675a94c5af06ad83cccb247.tar.gz Doxygen-0a384496099569c2a675a94c5af06ad83cccb247.tar.bz2 |
Changed implementation, added test case
Diffstat (limited to 'testing/075_argmatch.cpp')
-rw-r--r-- | testing/075_argmatch.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/075_argmatch.cpp b/testing/075_argmatch.cpp new file mode 100644 index 0000000..439cdca --- /dev/null +++ b/testing/075_argmatch.cpp @@ -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); + |